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

@ -22,11 +22,15 @@ KCFLAGS = -g -Wall -Wextra -Werror -nostdlib -nostartfiles -fno-builtin -std=gnu
KLDFLAGS = -T link.ld -L /usr/lib/gcc/arm-elf/4.7.0/
EXTRA_LIBS = -lgcc
KOBJS =
# Define KOBJS as a 'simply expanded' variable
KOBJS :=
include boot/Makefile.inc
include kernel/Makefile.inc
include devices/Makefile.inc
# Initialize sub-directory Makefile inclusion
BASEDIR = $(shell pwd)
SUBDIRS := boot kernel devices
ifneq (,$(SUBDIRS))
include $(patsubst %,%/kernel.mk,$(SUBDIRS))
endif
.PHONY: all clean boot boot-gdb