diff options
author | Federico Igne <undyamon@disroot.org> | 2023-12-20 00:54:49 +0100 |
---|---|---|
committer | Federico Igne <undyamon@disroot.org> | 2023-12-20 00:54:49 +0100 |
commit | 95afbe5174be402b681cd98ea83cc063cd23f5c0 (patch) | |
tree | fe7790f346e99e4e661723b568ff2be3ba6f8891 /2023/19/Makefile | |
parent | e3c9f0c73077de51167491ca1ba4d5ccba005435 (diff) | |
download | aoc-95afbe5174be402b681cd98ea83cc063cd23f5c0.tar.gz aoc-95afbe5174be402b681cd98ea83cc063cd23f5c0.zip |
Diffstat (limited to '2023/19/Makefile')
-rw-r--r-- | 2023/19/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2023/19/Makefile b/2023/19/Makefile new file mode 100644 index 0000000..af6a294 --- /dev/null +++ b/2023/19/Makefile | |||
@@ -0,0 +1,19 @@ | |||
1 | CXXFLAGS := -std=c++17 | ||
2 | CPPFLAGS := -I../include | ||
3 | EXE := part1 part2 | ||
4 | |||
5 | .PHONY: all clean configure | ||
6 | |||
7 | all: $(EXE) | ||
8 | |||
9 | configure: | ||
10 | bear -- $(MAKE) all | ||
11 | |||
12 | %.o: %.cpp | ||
13 | $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@ | ||
14 | |||
15 | clean: | ||
16 | rm -rf $(EXE) src/*.o compile_commands.json | ||
17 | |||
18 | %: src/%.o | ||
19 | $(CXX) $^ -o $@ | ||