summaryrefslogtreecommitdiff
path: root/src/sys/os/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-28 19:58:03 -0400
committerIan Moffett <ian@osmora.org>2025-09-28 19:59:06 -0400
commit3447909caaca06c65cb17f9d16e4471478f67376 (patch)
treef6fc0acca9191e877f7ecad7288981440596c719 /src/sys/os/Makefile
parente1a6b42fa552f541a69498157fcdf79686243428 (diff)
build: Use clang during early state
Use clang during early state until we configure our own cross compiler for L5 Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os/Makefile')
-rw-r--r--src/sys/os/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sys/os/Makefile b/src/sys/os/Makefile
index da481ec..0cd7817 100644
--- a/src/sys/os/Makefile
+++ b/src/sys/os/Makefile
@@ -4,8 +4,8 @@ include ../conf/sys.mk
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)
+CFLAGS = -I../include/ -I../include/lib/ -I../target/header/ $(MI_CFLAGS) -O0 $(CONF) \
+ -target x86_64-elf
CFILES = $(shell find . -name "*.c")
CFILES += $(shell find ../vm -name "*.c")
CFILES += $(shell find ../lib -name "*.c")
@@ -20,7 +20,6 @@ OBJECTS = $(CFILES:%.c=%.o)
.PHONY: all
all: $(OBJECTS)
$(PROMPT) " MI.AR " $<
- ar rcs $(TARGET_LIB) $(OBJECTS)
-include $(DEPS)
%.o: %.c