CXX = g++ CXXFLAGS = -Wall -Wextra -std=c++11 -fwrapv -O2 CXXTARGETS = solve solve2 .PHONY: all clean remake all: $(CXXTARGETS) clean: rm -rf $(CXXTARGETS) *.o *.dSYM $(CXXTARGETS): %: %.cpp $(CXX) $(CXXFLAGS) -o $@ $^