|
|
@ -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 = |
|
|
|
|
|
|
|
include boot/Makefile.inc |
|
|
|
include kernel/Makefile.inc |
|
|
|
include devices/Makefile.inc |
|
|
|
# Define KOBJS as a 'simply expanded' variable
|
|
|
|
KOBJS := |
|
|
|
|
|
|
|
# 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 |
|
|
|
|
|
|
|