BIN = main$(BIN_SUFFIX) SRC = main.cpp OBJ = $(SRC:.cpp=.o) override CXXFLAGS = $(CXXWARNFLAGS) -g -fexpensive-optimizations -O3 .PHONY: all clean all: $(BIN) clean: $(RM) $(BIN) $(RM) $(OBJ) $(BIN): $(OBJ) $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)