3 SOURCES
= $(shell ls src
/*.
cpp)
4 OBJECTS
= $(SOURCES
:.
cpp=.o
)
5 EXECUTABLE
= purplehaze
9 all: $(SOURCES
) $(EXECUTABLE
)
11 $(EXECUTABLE
): $(OBJECTS
)
12 $(CXX
) $(CXXFLAGS
) -o
$@
$(OBJECTS
)
15 $(CXX
) $(CXXFLAGS
) -c
-o
$@
$<
18 $(MAKE
) -C .
/test/unit
19 $(MAKE
) -C .
/test/unit
test
22 $(RM
) $(OBJECTS
) $(EXECUTABLE
)
23 $(MAKE
) -C .
/test/unit
clean