Reorder README
[purplehaze.git] / Makefile
blob3582235b85a2d729e636dd37a105d8c2b9f88237
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