mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
More generic and maintainable makefile. Fixes #348
- implicit recipes - wildcard glob of C++ files in directory
This commit is contained in:
parent
81fc6d7111
commit
aaa1970a06
@ -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 \
|
|
||||||
|
|
||||||
OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
|
EXEC=CatchSelfTest
|
||||||
|
SOURCES = $(wildcard *.cpp)
|
||||||
|
OBJECTS = $(SOURCES:.cpp=.o)
|
||||||
|
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CXXFLAGS = -I../../include
|
CXXFLAGS = -I../../include -I../../include/internal
|
||||||
|
|
||||||
CatchSelfTest: $(OBJECTS)
|
$(EXEC): $(OBJECTS)
|
||||||
$(CXX) -o $@ $^
|
$(CXX) -o $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJECTS)
|
$(RM) $(OBJECTS)
|
||||||
|
$(RM) $(EXEC)
|
||||||
|
Loading…
Reference in New Issue
Block a user