diff options
Diffstat (limited to '2023/06/Makefile')
-rw-r--r-- | 2023/06/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2023/06/Makefile b/2023/06/Makefile new file mode 100644 index 0000000..a3c2cea --- /dev/null +++ b/2023/06/Makefile | |||
@@ -0,0 +1,18 @@ | |||
1 | CXXFLAGS := -std=c++17 | ||
2 | EXE := part1 part2 | ||
3 | |||
4 | .PHONY: all clean configure | ||
5 | |||
6 | all: $(EXE) | ||
7 | |||
8 | configure: | ||
9 | bear -- $(MAKE) all | ||
10 | |||
11 | %.o: %.cpp | ||
12 | $(CXX) -c $(CXXFLAGS) $< -o $@ | ||
13 | |||
14 | clean: | ||
15 | rm -rf $(EXE) src/*.o compile_commands.json | ||
16 | |||
17 | %: src/%.o | ||
18 | $(CXX) $^ -o $@ | ||