2015-02-22 06:05:51 +08:00
|
|
|
PROJECT_BASE = $(shell pwd)
|
|
|
|
ARCH?=x86
|
|
|
|
|
|
|
|
export ARCH CFLAGS LDFLAGS KBUILD_DEFCONFIG
|
|
|
|
|
|
|
|
all: FORCE
|
|
|
|
$(Q)$(MAKE) -C $(TIMO_BASE) O=$(PROJECT_BASE) \
|
|
|
|
PROJECT=$(PROJECT_BASE) VPFILE=$(VPFILE)
|
|
|
|
|
|
|
|
rm-files:= final-linker.cmd linker.cmd modules.order \
|
2015-05-01 06:19:04 +08:00
|
|
|
staticIdt.o System.map *kernel.lnk \
|
|
|
|
*kernel.map *kernel.elf
|
2015-02-22 06:05:51 +08:00
|
|
|
rm-dirs := arch drivers include kernel lib misc \
|
|
|
|
scripts source
|
|
|
|
|
|
|
|
clean: FORCE
|
2015-05-01 06:19:04 +08:00
|
|
|
$(shell rm $(rm-files) -f)
|
2015-02-22 06:05:51 +08:00
|
|
|
$(shell rm $(rm-dirs) -r)
|
|
|
|
|
|
|
|
mrproper: clean
|
|
|
|
$(Q)$(MAKE) -C $(TIMO_BASE) \
|
|
|
|
PROJECT=$(PROJECT_BASE) VPFILE=$(VPFILE) mrproper
|
|
|
|
|
|
|
|
%config: FORCE
|
|
|
|
$(Q)$(MAKE) -C $(TIMO_BASE) O=$(PROJECT_BASE) \
|
|
|
|
PROJECT=$(PROJECT_BASE) VPFILE=$(VPFILE) $@
|
|
|
|
|
|
|
|
PHONY += FORCE
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
.PHONY: $(PHONY)
|