1
我們準備創建有關ucore.img目標文件的Makefile:當功能被稱爲
$(kernel):
@echo test
$(call create_target,kernel)
# -------------------------------------------------------------------
bootblock = $(call totarget,bootblock)
$(bootblock): $(call toobj,boot/bootasm.S) $(call toobj,$(bootfiles))
@echo + ld [email protected]
$(call create_target,bootblock)
# -------------------------------------------------------------------
$(call create_target_host,sign,sign)
# -------------------------------------------------------------------
# create ucore.img
UCOREIMG := $(call totarget,ucore.img)
$(UCOREIMG): $(kernel) $(bootblock)
$(V)dd if=/dev/zero [email protected] count=10000
$(call create_target,ucore.img)
但我不能看到當這些功能有關call
將被稱爲
$(call create_target,kernel)
$(call create_target,bootblock)
$(call create_target,ucore.img)