mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-07-17 03:51:24 +08:00
Add day3 code
This commit is contained in:
46
03_day/Makefile
Normal file
46
03_day/Makefile
Normal file
@@ -0,0 +1,46 @@
|
||||
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
|
||||
|
||||
# ファイル生成規則
|
||||
|
||||
ipl.bin : ipl.nas Makefile
|
||||
$(NASK) ipl.nas ipl.bin ipl.lst
|
||||
|
||||
haribote.img : ipl.bin Makefile
|
||||
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
|
||||
wbinimg src:ipl.bin len:512 from:0 to:0 imgout:haribote.img
|
||||
|
||||
# コマンド
|
||||
|
||||
asm :
|
||||
$(MAKE) ipl.bin
|
||||
|
||||
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) ipl.bin
|
||||
-$(DEL) ipl.lst
|
||||
|
||||
src_only :
|
||||
$(MAKE) clean
|
||||
-$(DEL) haribote.img
|
||||
Reference in New Issue
Block a user