shithub: openh264

ref: e306888d0c4a2a8c7c3aea7a752d9930ef5fb70e
dir: /build/gtest-targets.mk/

View raw version
GTEST_SRCDIR=gtest
GTEST_CPP_SRCS=\
	$(GTEST_SRCDIR)/./src/gtest-all.cc\

GTEST_OBJS += $(GTEST_CPP_SRCS:.cc=.o)
OBJS += $(GTEST_OBJS)
$(GTEST_SRCDIR)/%.o: $(GTEST_SRCDIR)/%.cc
	$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(GTEST_CFLAGS) $(GTEST_INCLUDES) -c $(CXX_O) $<

$(LIBPREFIX)gtest.$(LIBSUFFIX): $(GTEST_OBJS)
	rm -f $@
	$(AR) $(AR_OPTS) $+

libraries: $(LIBPREFIX)gtest.$(LIBSUFFIX)
LIBRARIES += $(LIBPREFIX)gtest.$(LIBSUFFIX)