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