Update NEWS
[purplehaze.git] / Makefile
blobd0bc67686678a48f8a11ee524c741eb08baf435b
1 include configure.mk
3 SOURCES = $(shell ls src/*.cpp)
4 OBJECTS = $(SOURCES:.cpp=.o)
5 EXECUTABLE = purplehaze
7 .PHONY: all test clean
9 all: $(SOURCES) $(EXECUTABLE)
11 $(EXECUTABLE): $(OBJECTS)
12 $(CXX) $(CXXFLAGS) -o $@ $(OBJECTS)
14 .cpp.o:
15 $(CXX) $(CXXFLAGS) -c -o $@ $<
17 test:
18 $(MAKE) -C ./test/unit
19 $(MAKE) -C ./test/unit test
21 clean:
22 $(RM) $(OBJECTS) $(EXECUTABLE)
23 $(MAKE) -C ./test/unit clean