# this was called from the Makefile in /, # and we just tell it what objects that he should make. asm = boot/boot32.S boot/setup32.S asmobj = boot/boot32.S.o boot/setup32.S.o obj-i += target: ifeq ($(D), ) @echo "this should call from the Makefile in directory /, but not typing make in kernel/. :-(" >&2 @exit 1 endif # $(PWD) is the / directory of kernel, e.g. /root/evx/ @$(MAKE) -C $(PWD) D=$(shell pwd) obj-i="$(obj-i)" vmevx.o: $(PWD)/.objlist @cat $(PWD)/.objlist | xargs $(LD) -o vmevx.o -T vmevx.lds @echo "LD vmevx.o" vmevx.bin: vmevx.o @objcopy -S -R ".comment" -R ".eh_frame" -O binary vmevx.o vmevx.bin boot: vmevx.bin @$(MAKE) -C boot/ .PHONY clean: @$(MAKE) -C boot/ clean @$(MAKE) -C init/ clean