diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-28 19:58:03 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-28 19:59:06 -0400 |
commit | 3447909caaca06c65cb17f9d16e4471478f67376 (patch) | |
tree | f6fc0acca9191e877f7ecad7288981440596c719 /src/sys/arch/amd64 | |
parent | e1a6b42fa552f541a69498157fcdf79686243428 (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/arch/amd64')
-rw-r--r-- | src/sys/arch/amd64/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/arch/amd64/Makefile b/src/sys/arch/amd64/Makefile index 5f3722a..0113b47 100644 --- a/src/sys/arch/amd64/Makefile +++ b/src/sys/arch/amd64/Makefile @@ -5,7 +5,8 @@ override PROMPT := printf "%s\t\t%s\n" CONF := $(shell cat conf/GENERIC | $(TOOLS)/kconf/kconf) TARGET_BIN = ../../l5 TARGET_INC = -I../../target/header/ -CFLAGS = -I../../include/ -I../../include/lib/ $(TARGET_INC) $(MI_CFLAGS) $(MD_CFLAGS) $(CONF) +CFLAGS = -I../../include/ -I../../include/lib/ $(TARGET_INC) $(MI_CFLAGS) $(MD_CFLAGS) $(CONF) \ + -target x86_64-elf CFILES = $(shell find . -name "*.c") ASMFILES = $(shell find . -name "*.S") @@ -14,11 +15,10 @@ ASMOBJECTS = $(ASMFILES:.S=.S.o) DEPS = $(CFILES:.c=.d) ASMDEPS = $(ASMFILES:.S=.S.d) OBJECTS = $(CFILES:%.c=%.o) -LD_FLAGS = -Tconf/sys.ld -L../../target --whole-archive -l:libkern.a --no-whole-archive +LD_FLAGS = -Tconf/sys.ld .PHONY: all all: $(OBJECTS) $(ASMOBJECTS) - $(LD) $(OBJECTS) $(ASMOBJECTS) -o $(TARGET_BIN) $(LD_FLAGS) -include $(DEPS) %.o: %.c |