3 SOURCES
= $(shell ls src
/*.
cpp)
4 OBJECTS
= $(SOURCES
:.
cpp=.o
)
5 EXECUTABLE
= purplehaze
7 all: $(SOURCES
) $(EXECUTABLE
)
9 $(EXECUTABLE
): $(OBJECTS
)
10 $(CXX
) $(CXXFLAGS
) -o
$@
$(OBJECTS
)
13 rm -f
$(OBJECTS
) $(EXECUTABLE
)
16 $(CXX
) $(CXXFLAGS
) -c
-o
$@
$<