Makefile: refactor subdirectory makefiles
This commit is contained in:
19
kernel/kernel.mk
Normal file
19
kernel/kernel.mk
Normal file
@ -0,0 +1,19 @@
|
||||
DIRNAME := kernel
|
||||
SUBDIRS :=
|
||||
|
||||
include $(BASEDIR)/header.mk
|
||||
|
||||
OBJS_$(d) := $(d)/atags.o \
|
||||
$(d)/console.o \
|
||||
$(d)/font.o \
|
||||
$(d)/framebuffer.o \
|
||||
$(d)/kmalloc.o \
|
||||
$(d)/list.o \
|
||||
$(d)/mm.o \
|
||||
$(d)/mmu.o \
|
||||
$(d)/print.o \
|
||||
$(d)/start_kernel.o
|
||||
|
||||
KOBJS += $(OBJS_$(d))
|
||||
|
||||
include $(BASEDIR)/footer.mk
|
Reference in New Issue
Block a user