Use makefile includes

This commit is contained in:
Imbus 2025-09-02 04:03:19 +02:00
parent 056ff77c55
commit bd29521b09

View file

@ -51,19 +51,11 @@ all: kern/kernel.elf
quickstart: quickstart:
make get_toolchain && bear -- make -j$(nproc) && make qemu make get_toolchain && bear -- make -j$(nproc) && make qemu
KERNEL_OBJ := \ SUBDIRS := kern
kern/entry.o \
kern/start.o \ include $(patsubst %, %/include.mk, $(SUBDIRS))
kern/kalloc.o \
kern/libkern/string.o \ KERNEL_OBJ := $(KERN_OBJ)
kern/libkern/proc.o \
kern/libkern/uart.o \
kern/libkern/panic.o \
kern/libkern/memory.o \
kern/libkern/spinlock.o \
kern/libkern/mini-printf.o \
kern/libkern/stdio.o \
kern/libkern/badrand.o
kern/kernel.elf: $(KERNEL_OBJ) kern/kernel.elf: $(KERNEL_OBJ)
@echo LD $@ @echo LD $@