make
12345678910111213141516
CC = g++ BIN_DIR=./BIN OBJ_DIR=./OBJ/ .DEFAULT_GOAL := $(BIN_DIR)/$(PROJECT) ifeq ($(BUILD), DEBUG) CFLAGS = -g -W -Wall -Wunused -pedantic $(INCLUDES) $(CPPFLAGS) else ifeq ($(BUILD), RELEASE) CFLAGS = -D NDEBUG -O3 -march=pentium4m -ffast-math -funroll-loops $(INCLUDES) $(CPPFLAGS) endif COMPILE_OBJ = $(CC) $(CFLAGS) -c $< -o $@ clean: rm -f $(OBJ_DIR)*.o $(BIN_DIR)/$(PROJECT)