shithub: openh264

ref: 07cb68d0a6e0a4dd71787021e57bc59fd3fcc543
dir: /build/gtest-targets.mk/

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

GTEST_OBJS += $(GTEST_CPP_SRCS:.cc=.$(OBJ))

OBJS += $(GTEST_OBJS)

$(GTEST_SRCDIR)/%.$(OBJ): $(GTEST_SRCDIR)/%.cc
	$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(GTEST_CFLAGS) $(GTEST_INCLUDES) -c $(CXX_O) $<

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

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