diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-04-23 23:30:00 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-04-23 23:30:00 +0200 |
| commit | 5b9d1245f073f858e81b5a476463a948111a8a73 (patch) | |
| tree | d7d707a0f5a72ece8967a2d40600a02c38483959 /makefile | |
| parent | fd8bd06069ff4b461de131f07b72316e7955f37d (diff) | |
| download | advent-of-code-5b9d1245f073f858e81b5a476463a948111a8a73.tar.gz advent-of-code-5b9d1245f073f858e81b5a476463a948111a8a73.tar.bz2 advent-of-code-5b9d1245f073f858e81b5a476463a948111a8a73.zip | |
day01, advent of code 2022
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -1,6 +1,7 @@ | |||
| 1 | include config.mk | 1 | include config.mk |
| 2 | 2 | ||
| 3 | all: $(patsubst 2020/src/%.cpp,2020/bin/%,$(wildcard 2020/src/*.cpp)) \ | 3 | all: $(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)) \ | |||
| 10 | 2020/bin/%: 2020/src/%.cpp | 2020/bin | 11 | 2020/bin/%: 2020/src/%.cpp | 2020/bin |
| 11 | c++ $(CPPFLAGS) $^ -o $@ | 12 | c++ $(CPPFLAGS) $^ -o $@ |
| 12 | 13 | ||
| 14 | # 2022 | ||
| 15 | 2022/bin/%: 2022/src/%.cpp | 2022/bin | ||
| 16 | c++ $(CPPFLAGS) $^ -o $@ | ||
| 17 | |||
| 13 | # 2023 | 18 | # 2023 |
| 14 | 2023/bin/%: 2023/src/%.cpp | 2023/bin | 19 | 2023/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 | ||
| 20 | clean: | 25 | clean: |
| 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 |
