forked from backup/30dayMakeOS
51 lines
933 B
Makefile
51 lines
933 B
Makefile
TOOLPATH = ../z_tools/
|
|
MAKE = $(TOOLPATH)make.exe -r
|
|
NASK = $(TOOLPATH)nask.exe
|
|
EDIMG = $(TOOLPATH)edimg.exe
|
|
IMGTOL = $(TOOLPATH)imgtol.com
|
|
COPY = copy
|
|
DEL = del
|
|
|
|
# 默认动作
|
|
|
|
default :
|
|
$(MAKE) img
|
|
|
|
# 镜像文件生成
|
|
|
|
ipl10.bin : ipl10.nas Makefile
|
|
$(NASK) ipl10.nas ipl10.bin ipl10.lst
|
|
|
|
haribote.sys : haribote.nas Makefile
|
|
$(NASK) haribote.nas haribote.sys haribote.lst
|
|
|
|
haribote.img : ipl10.bin haribote.sys Makefile
|
|
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
|
|
wbinimg src:ipl10.bin len:512 from:0 to:0 \
|
|
copy from:haribote.sys to:@: \
|
|
imgout:haribote.img
|
|
|
|
# 其他指令
|
|
|
|
img :
|
|
$(MAKE) haribote.img
|
|
|
|
run :
|
|
$(MAKE) img
|
|
$(COPY) haribote.img ..\z_tools\qemu\fdimage0.bin
|
|
$(MAKE) -C ../z_tools/qemu
|
|
|
|
install :
|
|
$(MAKE) img
|
|
$(IMGTOL) w a: haribote.img
|
|
|
|
clean :
|
|
-$(DEL) ipl10.bin
|
|
-$(DEL) ipl10.lst
|
|
-$(DEL) haribote.sys
|
|
-$(DEL) haribote.lst
|
|
|
|
src_only :
|
|
$(MAKE) clean
|
|
-$(DEL) haribote.img
|