summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-12-14 21:43:12 +0100
committerFedja Beader <fedja@protonmail.ch>2024-01-28 17:25:09 +0100
commitb8108eaa34bddf41e3788f11430eba9004d7d482 (patch)
tree2680a35c0be4231394b3ef6de9e4888ac6883b5e
parentaa3a2125c697a31fb640fd9c9f72d63eff58c72c (diff)
downloadtmwa-b8108eaa34bddf41e3788f11430eba9004d7d482.tar.gz
tmwa-b8108eaa34bddf41e3788f11430eba9004d7d482.tar.bz2
tmwa-b8108eaa34bddf41e3788f11430eba9004d7d482.tar.xz
tmwa-b8108eaa34bddf41e3788f11430eba9004d7d482.zip
Add more rules to Makefile.in for the testing system.
-rw-r--r--Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 506d0d9..e5dcd48 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -493,7 +493,9 @@ lib/%.a:
${GTEST_BINARIES}: obj/gtest_main.pdc.o obj/gtest-all.pdc.o
# This isn't perfect.
-#$(filter %_test.pdc.o,${PDC_OBJECTS}) obj/gtest_main.pdc.o obj/gtest-all.pdc.o: override CXXFLAGS += -DGTEST_HAS_PTHREAD=0 -I${GTEST_DIR}
+$(filter %_test.pdc.o,${PDC_OBJECTS}) obj/gtest_main.pdc.o obj/gtest-all.pdc.o: override CXXFLAGS += -DGTEST_HAS_PTHREAD=0 -I${GTEST_DIR}/include
+# Special rule for src/gtest-all.cc
+obj/gtest-all.pdc.o: override CXXFLAGS += -DGTEST_HAS_PTHREAD=0 -I${GTEST_DIR}
$(filter %_test.d,${DEPENDS}): override CXXFLAGS += -DGTEST_HAS_PTHREAD=0 -I${GTEST_DIR}/include
obj/gtest-all.pdc.o obj/gtest_main.pdc.o: override WARNINGS :=
obj/gtest%.pdc.o: ${GTEST_DIR}/src/gtest%.cc