aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-01-03 23:35:54 +0100
committerThomas Schmucker <ts@its1.de>2024-01-03 23:35:54 +0100
commit56e890cec0a28c0a485212ccebfaf774235a79a2 (patch)
treed9c6241a1aa247e06ab5ba2f6f11967b77d458ec /makefile
parente9a1cb0441d137d7a26cb303b7e72d3424b7392d (diff)
downloadadvent-of-code-56e890cec0a28c0a485212ccebfaf774235a79a2.tar.gz
advent-of-code-56e890cec0a28c0a485212ccebfaf774235a79a2.tar.bz2
advent-of-code-56e890cec0a28c0a485212ccebfaf774235a79a2.zip
prepare for more puzzles ... :)
Diffstat (limited to 'makefile')
-rw-r--r--makefile42
1 files changed, 12 insertions, 30 deletions
diff --git a/makefile b/makefile
index 1849790..e1318c1 100644
--- a/makefile
+++ b/makefile
@@ -1,41 +1,23 @@
1include config.mk 1include config.mk
2 2
3all: bin/day01 \ 3all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \
4 bin/day02 \ 4 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp))
5 bin/day03 \
6 bin/day04 \
7 bin/day05 \
8 bin/day06 \
9 bin/day07 \
10 bin/day08 \
11 bin/day09 \
12 bin/day10 \
13 bin/day11 \
14 bin/day12 \
15 bin/day13 \
16 bin/day14 \
17 bin/day15 \
18 bin/day16 \
19 bin/day17 \
20 bin/day18 \
21 bin/day19 \
22 bin/day20 \
23 bin/day21 \
24 bin/day22 \
25 bin/day23 \
26 bin/day24 \
27 bin/day25
28 5
29bin: 6%/bin:
30 mkdir $@ 7 mkdir -p $@
31 8
32bin/%: src/%.cpp | bin 9# 2020
102020/bin/%: 2020/src/%.cpp | 2020/bin
33 c++ $(CPPFLAGS) $^ -o $@ 11 c++ $(CPPFLAGS) $^ -o $@
34 12
35bin/day24: src/day24.cpp | bin 13# 2023
142023/bin/%: 2023/src/%.cpp | 2023/bin
15 c++ $(CPPFLAGS) $^ -o $@
16
172023/bin/day24: 2023/src/day24.cpp | 2023/bin
36 c++ $(CPPFLAGS) -Wno-sign-conversion -I/usr/local/include $^ -L/usr/local/lib -lz3 -o $@ 18 c++ $(CPPFLAGS) -Wno-sign-conversion -I/usr/local/include $^ -L/usr/local/lib -lz3 -o $@
37 19
38clean: 20clean:
39 rm -rf bin 21 rm -rf 2020/bin 2023/bin
40 22
41.PHONY: all clean 23.PHONY: all clean