1 2 3 4 5 6 7 8 9
CC=g++ BUILD=build/ FLAGS=-Wall -Werror -g all: build-dir $(CC) main.cpp $(FLAGS) -o $(BUILD)/main build-dir: mkdir -p $(BUILD)