Added Makefile

This commit is contained in:
Brandon Scott 2019-12-14 04:12:19 -06:00
parent f9413dd68d
commit 9d8d1dfa86
1 changed files with 15 additions and 0 deletions

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
CC=g++
CFLAGS=-Wall
SRC_DIR=src
OUTPUT_DIR=output
all: day1 day2
day1:
$(CC) $(CFLAGS) $(SRC_DIR)/day1.cpp -o $(OUTPUT_DIR)/$@
day2:
$(CC) $(CFLAGS) $(SRC_DIR)/day2.cpp -o $(OUTPUT_DIR)/$@
clean:
rm $(OUTPUT_DIR)/*