summaryrefslogtreecommitdiff
path: root/2023/06/Makefile
diff options
context:
space:
mode:
authorFederico Igne <undyamon@disroot.org>2023-12-06 14:28:33 +0100
committerFederico Igne <undyamon@disroot.org>2023-12-06 14:28:33 +0100
commit325117d6949f7bf2900d5f4d6a118f3e3b6b2501 (patch)
tree80f7d4b7d4f6909f8d795d67c0f1e64da9bebd62 /2023/06/Makefile
parent8ed68d64a9f49635209c7d6e231c6cc4d3443172 (diff)
downloadaoc-325117d6949f7bf2900d5f4d6a118f3e3b6b2501.tar.gz
aoc-325117d6949f7bf2900d5f4d6a118f3e3b6b2501.zip
aoc(2306): Wait For It
Diffstat (limited to '2023/06/Makefile')
-rw-r--r--2023/06/Makefile18
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 @@
1CXXFLAGS := -std=c++17
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 $@