This commit is contained in:
2025-12-15 23:58:42 +01:00
commit 04d59fd6d2
14 changed files with 182 additions and 0 deletions

26
kernel/Makefile Normal file
View File

@@ -0,0 +1,26 @@
cc := clang
o :=
c :=
ldflags :=
cflags :=
buildtype ?= release
include $(platform)/src.mk
include $(platform)/flags.mk
include generic/flags.mk
all: build/kernel.elf
build/kernel.elf: $(o)
$(cc) -o $@ $(ldflags) -T $(platform)/link.ld $^
%.o: %.c
$(cc) -c -o $@ $(cflags) $<
%.o: %.S
$(cc) -c -o $@ $(cflags) $<
clean:
rm -f $(o) build/kernel.elf
.PHONY: all clean