summaryrefslogtreecommitdiff
path: root/src/sys/os/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-18 15:31:56 -0400
committerIan Moffett <ian@osmora.org>2025-09-18 15:31:56 -0400
commita84c4e18ed47d015d2abbaa2a4411a64a0ade18f (patch)
treed9e0f792c817465ef72a7e2627f911fa8a925ac1 /src/sys/os/Makefile
parente633b7ef95c91ded3e849af0e622a4a98470ef0d (diff)
build: Allow each subsystem to have their own conf
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os/Makefile')
-rw-r--r--src/sys/os/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/os/Makefile b/src/sys/os/Makefile
index 693c008..ed8ac6e 100644
--- a/src/sys/os/Makefile
+++ b/src/sys/os/Makefile
@@ -3,6 +3,7 @@ include ../conf/sys.mk
.SILENT:
override PROMPT := printf "%s\t\t%s\n"
+CONF := $(shell cat ../conf/GENERIC | $(TOOLS)/kconf/kconf)
TARGET_LIB = ../target/libkern.a
CFLAGS = -I../include/ -I../include/lib/ -I../target/header/ $(MI_CFLAGS) -O0 $(CONF)
CFILES = $(shell find . -name "*.c")
@@ -22,7 +23,7 @@ all: $(OBJECTS)
-include $(DEPS)
%.o: %.c
$(PROMPT) " MI.CC " $<
- $(CC) -c $(CFLAGS) $< -o $@
+ $(CC) -c $(CFLAGS) $(CONF) $< -o $@
.PHONY: clean
clean: