catch2/projects/SelfTest/makefile
Jamie Bullock aaa1970a06 More generic and maintainable makefile. Fixes #348
- implicit recipes
- wildcard glob of C++ files in directory
2014-11-08 18:57:03 +00:00

15 lines
220 B
Makefile

EXEC=CatchSelfTest
SOURCES = $(wildcard *.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
CXX = g++
CXXFLAGS = -I../../include -I../../include/internal
$(EXEC): $(OBJECTS)
$(CXX) -o $@ $^
clean:
$(RM) $(OBJECTS)
$(RM) $(EXEC)