summaryrefslogtreecommitdiff
path: root/2023/13/Makefile
diff options
context:
space:
mode:
authorFederico Igne <undyamon@disroot.org>2023-12-13 16:23:51 +0100
committerFederico Igne <undyamon@disroot.org>2023-12-13 16:23:51 +0100
commita388690e255427aa28a2fd4364e094a10bde3382 (patch)
tree1d84a0262f1480cba28b504ff7cd7d2224eb7b38 /2023/13/Makefile
parentba6089f4eefcbd6c482d2f774b8ce016bd0a4441 (diff)
downloadaoc-a388690e255427aa28a2fd4364e094a10bde3382.tar.gz
aoc-a388690e255427aa28a2fd4364e094a10bde3382.zip
aoc(2313): Point of Incidence
Diffstat (limited to '2023/13/Makefile')
-rw-r--r--2023/13/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/2023/13/Makefile b/2023/13/Makefile
new file mode 100644
index 0000000..af6a294
--- /dev/null
+++ b/2023/13/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 $@