2013-12-12 04:20:23 +01:00
|
|
|
GTEST_SRCDIR=gtest
|
|
|
|
GTEST_CPP_SRCS=\
|
2014-01-17 08:55:21 +01:00
|
|
|
$(GTEST_SRCDIR)/./src/gtest-all.cc\
|
2013-12-12 04:20:23 +01:00
|
|
|
|
|
|
|
GTEST_OBJS += $(GTEST_CPP_SRCS:.cc=.o)
|
|
|
|
OBJS += $(GTEST_OBJS)
|
2014-01-17 08:55:21 +01:00
|
|
|
$(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)
|
2014-01-27 13:45:18 +01:00
|
|
|
rm -f $@
|
|
|
|
$(AR) $(AR_OPTS) $+
|
2013-12-12 04:20:23 +01:00
|
|
|
|
|
|
|
libraries: $(LIBPREFIX)gtest.$(LIBSUFFIX)
|
|
|
|
LIBRARIES += $(LIBPREFIX)gtest.$(LIBSUFFIX)
|