summaryrefslogtreecommitdiff
path: root/sys/kern/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-15 21:53:39 -0500
committerIan Moffett <ian@osmora.org>2025-11-15 21:53:39 -0500
commitb746033b91844e819a9879fae2ad90438c7b634a (patch)
tree56c8feef3610ec47007b681504658ac3e22e41d8 /sys/kern/Makefile
parent9662bbf485a7318000d5b03de2909d609d6e5015 (diff)
build: Add header deps
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/Makefile')
-rw-r--r--sys/kern/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/Makefile b/sys/kern/Makefile
index 251bb8e..39260ca 100644
--- a/sys/kern/Makefile
+++ b/sys/kern/Makefile
@@ -6,12 +6,14 @@ CFILES += $(shell find ../lib -name "*.c")
CFILES += $(shell find ../os -name "*.c")
CFILES += $(shell find ../vm -name "*.c")
OFILES = $(CFILES:.c=.o)
+DFILES = $(CFILES:.c=.d)
CC =
SYS_CFLAGS =
.PHONY: all
all: $(OFILES)
+-include $(DFILES)
%.o: %.c
$(PROMPT) " [CC] " $<
- $(CC) -c $< $(SYS_CFLAGS) -I../inc/ -I../inc/lib -o $@
+ $(CC) -c $< $(SYS_CFLAGS) -MMD -I../inc/ -I../inc/lib -o $@