1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
CXX = g++ SRCS = library/preprocessor.cpp OUT = bin/preprocessor all: $(OUT) help: @echo "Targets:" @echo " all - build preprocessor" @echo " clean - clear generated binaries" @echo " help - show this message\n" clean: rm -f $(OUT) $(OUT): $(SRCS) $(CXX) -o $(OUT) -O2 -s $(SRCS) .PHONY: all help clean