summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 003e871..cd9559f 100644
--- a/makefile
+++ b/makefile
@@ -19,7 +19,7 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LDLIBS)
-%.o: %.c
+%.o: %.c $(MAKEFILE_LIST)
$(CC) $(CFLAGS) -MMD -c $< -o $@
-include $(DEPS)
@@ -36,7 +36,7 @@ TEST_DEPS := $(TEST_OBJS:.test.o=.test.d)
-include $(TEST_DEPS)
-%.test.o: %.c
+%.test.o: %.c $(MAKEFILE_LIST)
$(CC) $(CFLAGS) $(TEST_CFLAGS) -MMD -c $< -o $@
$(TEST_TARGET): $(TEST_SRCS) $(TEST_OBJS)