aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-11-11 18:16:20 +0100
committerThomas Schmucker <ts@its1.de>2024-11-11 18:16:20 +0100
commitd28cd15ecccea5e123905de524858dea18008ba4 (patch)
tree75dea768925ce05ef150caf3c7fbc4f6cc1a9d10 /makefile
parent7c1b63888bcc82f9d49e25726359d5c73c3e92a4 (diff)
downloadadvent-of-code-d28cd15ecccea5e123905de524858dea18008ba4.tar.gz
advent-of-code-d28cd15ecccea5e123905de524858dea18008ba4.tar.bz2
advent-of-code-d28cd15ecccea5e123905de524858dea18008ba4.zip
aoc 2015, day01
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index 494ced4..d88478f 100644
--- a/makefile
+++ b/makefile
@@ -1,12 +1,17 @@
1include config.mk 1include config.mk
2 2
3all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \ 3all: $(patsubst 2015/src/%.cpp,2015/bin/%,$(wildcard 2015/src/*.cpp)) \
4 $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \
4 $(patsubst 2022/src/%.cpp,2022/bin/%,$(wildcard 2022/src/*.cpp)) \ 5 $(patsubst 2022/src/%.cpp,2022/bin/%,$(wildcard 2022/src/*.cpp)) \
5 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp)) 6 $(patsubst 2023/src/%.cpp,2023/bin/%,$(wildcard 2023/src/*.cpp))
6 7
7%/bin: 8%/bin:
8 mkdir -p $@ 9 mkdir -p $@
9 10
11# 2015
122015/bin/%: 2015/src/%.cpp | 2015/bin
13 c++ $(CPPFLAGS) $^ -o $@
14
10# 2020 15# 2020
112020/bin/%: 2020/src/%.cpp | 2020/bin 162020/bin/%: 2020/src/%.cpp | 2020/bin
12 c++ $(CPPFLAGS) $^ -o $@ 17 c++ $(CPPFLAGS) $^ -o $@