openh264/build/gtest-targets.mk

16 lines
433 B
Makefile
Raw Normal View History

2013-12-12 04:20:23 +01:00
GTEST_SRCDIR=gtest
GTEST_CPP_SRCS=\
$(GTEST_SRCDIR)/./src/gtest-all.cc\
2013-12-12 04:20:23 +01:00
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) $<
2013-12-12 04:20:23 +01:00
$(LIBPREFIX)gtest.$(LIBSUFFIX): $(GTEST_OBJS)
rm -f $@
$(AR) $(AR_OPTS) $+
2013-12-12 04:20:23 +01:00
libraries: $(LIBPREFIX)gtest.$(LIBSUFFIX)
LIBRARIES += $(LIBPREFIX)gtest.$(LIBSUFFIX)