Merge pull request #350 from jamiebullock/master

More generic and maintainable makefile for SelfTest
This commit is contained in:
Phil Nash 2014-12-12 08:19:06 +00:00
commit 694c4d7a59
1 changed files with 10 additions and 17 deletions

View File

@ -1,21 +1,14 @@
SOURCES = ApproxTests.cpp \
ClassTests.cpp \
ConditionTests.cpp \
ExceptionTests.cpp \
GeneratorTests.cpp \
MessageTests.cpp \
MiscTests.cpp \
TestMain.cpp \
TrickyTests.cpp \
BDDTests.cpp \
VariadicMacrosTests.cpp \
catch_self_test.cpp
OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
CXX = g++
CXXFLAGS = -I../../include
CatchSelfTest: $(OBJECTS)
EXEC=CatchSelfTest
SOURCES = $(wildcard *.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
CXX = g++
CXXFLAGS = -I../../include -I../../include/internal
$(EXEC): $(OBJECTS)
$(CXX) -o $@ $^
clean:
rm -f $(OBJECTS)
$(RM) $(OBJECTS)
$(RM) $(EXEC)