ref: a00b0ca79bbb83e8654a595434d3c3eed1634757
parent: b1fc94e31448c40f750f1e0026da34afc51ef961
author: Varun B Patil <[email protected]>
date: Thu Jan 16 18:33:20 EST 2014
simplify gtest makefile
--- a/build/gtest-targets.mk
+++ b/build/gtest-targets.mk
@@ -9,7 +9,7 @@
GTEST_INCLUDES += -Igtest
$(GTEST_SRCDIR)/src/gtest-all.o: $(GTEST_SRCDIR)/src/gtest-all.cc
- $(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(GTEST_CFLAGS) $(GTEST_INCLUDES) -c -o $(GTEST_SRCDIR)/src/gtest-all.o $(GTEST_SRCDIR)/src/gtest-all.cc
+ $(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(GTEST_CFLAGS) $(GTEST_INCLUDES) -c -o $@ $<
$(LIBPREFIX)gtest.$(LIBSUFFIX): $(GTEST_OBJS)
rm -f $(LIBPREFIX)gtest.$(LIBSUFFIX)