aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index 928c1bb..5ce2c9a 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,7 @@
1include config.mk 1include config.mk
2 2
3all: $(patsubst 2015/src/%.cpp,2015/bin/%,$(wildcard 2015/src/*.cpp)) \ 3all: $(patsubst 2015/src/%.cpp,2015/bin/%,$(wildcard 2015/src/*.cpp)) \
4 $(patsubst 2016/src/%.cpp,2016/bin/%,$(wildcard 2016/src/*.cpp)) \
4 $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \ 5 $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \
5 $(patsubst 2022/src/%.cpp,2022/bin/%,$(wildcard 2022/src/*.cpp)) \ 6 $(patsubst 2022/src/%.cpp,2022/bin/%,$(wildcard 2022/src/*.cpp)) \
6 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp)) \ 7 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp)) \
@@ -16,6 +17,10 @@ all: $(patsubst 2015/src/%.cpp,2015/bin/%,$(wildcard 2015/src/*.cpp)) \
162015/bin/day04: 2015/src/day04.cpp | 2015/bin 172015/bin/day04: 2015/src/day04.cpp | 2015/bin
17 c++ $(CPPFLAGS) $^ -lmd -o $@ 18 c++ $(CPPFLAGS) $^ -lmd -o $@
18 19
20# 2016
212016/bin/%: 2016/src/%.cpp | 2016/bin
22 c++ $(CPPFLAGS) $^ -o $@
23
19# 2020 24# 2020
202020/bin/%: 2020/src/%.cpp | 2020/bin 252020/bin/%: 2020/src/%.cpp | 2020/bin
21 c++ $(CPPFLAGS) $^ -o $@ 26 c++ $(CPPFLAGS) $^ -o $@
@@ -39,6 +44,6 @@ all: $(patsubst 2015/src/%.cpp,2015/bin/%,$(wildcard 2015/src/*.cpp)) \
39 c++ $(CPPFLAGS) $^ -L/usr/local/lib -lz3 -o $@ 44 c++ $(CPPFLAGS) $^ -L/usr/local/lib -lz3 -o $@
40 45
41clean: 46clean:
42 rm -rf 2015/bin 2020/bin 2022/bin 2023/bin 2024/bin 47 rm -rf 2015/bin 2016/bin 2020/bin 2022/bin 2023/bin 2024/bin
43 48
44.PHONY: all clean 49.PHONY: all clean