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