advent_of_code/2020/Makefile

23 lines
583 B
Makefile
Raw Normal View History

2020-12-05 05:15:42 +00:00
day1.out: out/types.o day1.cpp
g++-10 -std=c++2a $(flags) day1.cpp out/types.o -o $@
2020-12-01 08:00:04 +00:00
2020-12-05 05:15:42 +00:00
day2.out: out/types.o day2.cpp
g++-10 -std=c++2a $(flags) day2.cpp out/types.o -o $@
2020-12-02 06:24:15 +00:00
2020-12-05 05:15:42 +00:00
day3.out: out/types.o day3.cpp
g++-10 -std=c++2a $(flags) day3.cpp out/types.o -o $@
day4.out: out/types.o day4.cpp
g++-10 -std=c++2a $(flags) day4.cpp out/types.o -o $@
day5.out: out/types.o day5.cpp
g++-10 -std=c++2a $(flags) day5.cpp out/types.o -o $@
2020-12-03 06:03:52 +00:00
2020-12-01 08:00:04 +00:00
out/types.o: types.hpp types.cpp
mkdir -p out/
2020-12-05 05:15:42 +00:00
g++-10 -std=c++2a $(flags) -c types.cpp -o $@
2020-12-01 08:00:04 +00:00
.PHONY: clean
clean:
2020-12-05 05:15:42 +00:00
rm out/* day*.out day*.output