summaryrefslogtreecommitdiffstats
path: root/2021/day2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '2021/day2/Makefile')
-rw-r--r--2021/day2/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/2021/day2/Makefile b/2021/day2/Makefile
new file mode 100644
index 0000000..6718c4c
--- /dev/null
+++ b/2021/day2/Makefile
@@ -0,0 +1,11 @@
1src = $(wildcard *.c)
2obj = $(src:.c=.o)
3
4LDFLAGS = -Wall -g
5
6pilot: $(obj)
7 $(CC) -o $@ $^ $(LDFLAGS)
8
9.PHONY: clean
10clean:
11 rm -f $(obj) pilot