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