aboutsummaryrefslogtreecommitdiff
path: root/advent-of-code/2022/10/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'advent-of-code/2022/10/Makefile')
-rw-r--r--advent-of-code/2022/10/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/advent-of-code/2022/10/Makefile b/advent-of-code/2022/10/Makefile
new file mode 100644
index 0000000..baa0901
--- /dev/null
+++ b/advent-of-code/2022/10/Makefile
@@ -0,0 +1,12 @@
+all: 1.out 2.out
+LIB=../lib/str.c
+
+1.out: 1.c
+ cc -g -I../lib/ $< $(LIB) -o $@
+
+2.out: 2.c
+ cc -g -I../lib/ $< $(LIB) -o $@
+
+.PHONY: clean
+clean:
+ -rm *.out