aboutsummaryrefslogtreecommitdiff
path: root/6.5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '6.5/Makefile')
-rw-r--r--6.5/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/6.5/Makefile b/6.5/Makefile
new file mode 100644
index 0000000..c99e8b9
--- /dev/null
+++ b/6.5/Makefile
@@ -0,0 +1,13 @@
+objects = main.o hash.o word.o getch.o
+CC = gcc
+CFLAGS = -Wvla -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -fsanitize=address
+
+hash : $(objects)
+ $(CC) $(CFLAGS) -o hash $(objects)
+
+main.o : word.h hash.h
+word.o : getch.h
+
+.PHONY : clean
+clean:
+ rm hash $(objects)