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 e1318c1..494ced4 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,7 @@
1include config.mk 1include config.mk
2 2
3all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \ 3all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \
4 $(patsubst 2022/src/%.cpp,2022/bin/%,$(wildcard 2022/src/*.cpp)) \
4 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp)) 5 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp))
5 6
6%/bin: 7%/bin:
@@ -10,6 +11,10 @@ all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \
102020/bin/%: 2020/src/%.cpp | 2020/bin 112020/bin/%: 2020/src/%.cpp | 2020/bin
11 c++ $(CPPFLAGS) $^ -o $@ 12 c++ $(CPPFLAGS) $^ -o $@
12 13
14# 2022
152022/bin/%: 2022/src/%.cpp | 2022/bin
16 c++ $(CPPFLAGS) $^ -o $@
17
13# 2023 18# 2023
142023/bin/%: 2023/src/%.cpp | 2023/bin 192023/bin/%: 2023/src/%.cpp | 2023/bin
15 c++ $(CPPFLAGS) $^ -o $@ 20 c++ $(CPPFLAGS) $^ -o $@
@@ -18,6 +23,6 @@ all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \
18 c++ $(CPPFLAGS) -Wno-sign-conversion -I/usr/local/include $^ -L/usr/local/lib -lz3 -o $@ 23 c++ $(CPPFLAGS) -Wno-sign-conversion -I/usr/local/include $^ -L/usr/local/lib -lz3 -o $@
19 24
20clean: 25clean:
21 rm -rf 2020/bin 2023/bin 26 rm -rf 2020/bin 2022/bin 2023/bin
22 27
23.PHONY: all clean 28.PHONY: all clean