From a77c882bbc2f1b4a0440e59428c574fd1bbcd5a1 Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Sat, 29 Jun 2013 00:18:48 +0100 Subject: [PATCH] Update Makefile for SelfTest This is update to Makefile submitted in PR #141 --- projects/SelfTest/Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/projects/SelfTest/Makefile b/projects/SelfTest/Makefile index 01e21634..ce8503e1 100644 --- a/projects/SelfTest/Makefile +++ b/projects/SelfTest/Makefile @@ -1,15 +1,19 @@ -SOURCES = ApproxTests.cpp ClassTests.cpp ConditionTests.cpp \ - ExceptionTests.cpp GeneratorTests.cpp MessageTests.cpp \ - MiscTests.cpp TestMain.cpp TrickyTests.cpp \ - catch_self_test.cpp +SOURCES = ApproxTests.cpp BDDTests.cpp catch_self_test.cpp ClassTests.cpp \ + CmdLineTests.cpp ConditionTests.cpp ExceptionTests.cpp GeneratorTests.cpp \ + MessageTests.cpp MiscTests.cpp TestMain.cpp TrickyTests.cpp \ + VariadicMacrosTests.cpp + OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES)) CXXFLAGS = -I../../include -main: $(OBJECTS) +catch_self_test: $(OBJECTS) $(CXX) -o $@ $^ clean: - rm -f $(OBJECTS) main + rm -f $(OBJECTS) catch_self_test -.PHONY: main clean +check: catch_self_test + ./catch_self_test + +.PHONY: catch_self_test clean check