commit 1a346fdd90a4f37f26cd50a160ba8214b0512b03
parent ba7e5a3e9562ba1df4047996c14c8f425d43ede5
Author: Naveen Narayanan <zerous@nocebo.space>
Date: Sat, 9 Oct 2021 19:17:43 +0200
Fix Makefile
Add headers as a dependency to objects
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,14 @@
include config.mk
+H = \
+ attack.h\
+ config.h\
+ fw.h\
+ ip.h\
+ parser.h\
+ queue.h\
+ util.h\
+
OBJ = \
attack.o\
fw.o\
@@ -29,7 +38,7 @@ uninstall:
.SUFFIXES: .c .o
-.c.o:
+.c.o: $(H)
$(CC) $(CFLAGS) -c $<
sdog: $(OBJ)