1
0

Makefile: refactor subdirectory makefiles

This commit is contained in:
2012-09-26 15:35:52 -04:00
parent f9244836e1
commit c455b1eeb3
9 changed files with 74 additions and 23 deletions

View File

@ -1,11 +0,0 @@
KERNEL_PREFIX = kernel
KOBJS += $(KERNEL_PREFIX)/atags.o
KOBJS += $(KERNEL_PREFIX)/console.o
KOBJS += $(KERNEL_PREFIX)/font.o
KOBJS += $(KERNEL_PREFIX)/framebuffer.o
KOBJS += $(KERNEL_PREFIX)/list.o
KOBJS += $(KERNEL_PREFIX)/mm.o
KOBJS += $(KERNEL_PREFIX)/mmu.o
KOBJS += $(KERNEL_PREFIX)/print.o
KOBJS += $(KERNEL_PREFIX)/start_kernel.o

19
kernel/kernel.mk Normal file
View 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