advent_of_code/2020/Makefile
2020-12-01 22:24:15 -08:00

13 lines
290 B
Makefile

day1.out: out/types.o day1.cpp day1.input
g++ $(flags) day1.cpp out/types.o -o $@
day2.out: out/types.o day2.cpp day2.input
g++ $(flags) day2.cpp out/types.o -o $@
out/types.o: types.hpp types.cpp
mkdir -p out/
g++ $(flags) -c types.cpp -o $@
.PHONY: clean
clean:
rm out/* day*.out