-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
108 lines (94 loc) · 2.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
TOOLPATH = ../z_tools/
INCPATH = ../z_tools/fkjs/
MAKE = $(TOOLPATH)make.exe -r
EDIMG = $(TOOLPATH)edimg.exe
IMGTOL = $(TOOLPATH)imgtol.com
COPY = copy
DEL = del
default :
$(MAKE) fkjs.img
fkjs.img : fkjs/ipl20.bin fkjs/fkjs.sys Makefile \
color/color.hrb color2/color2.hrb sosu3/sosu3.hrb \
sosu2/sosu2.hrb typeipl/typeipl.hrb type/type.hrb \
notrec/notrec.hrb bball/bball.hrb invader/invader.hrb \
calc/calc.hrb tview/tview.hrb mmlplay/mmlplay.hrb \
gview/gview.hrb
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
wbinimg src:fkjs/ipl20.bin len:512 from:0 to:0 \
copy from:fkjs/fkjs.sys to:@: \
copy from:fkjs/ipl20.nas to:@: \
copy from:make.bat to:@: \
copy from:color/color.hrb to:@: \
copy from:color2/color2.hrb to:@: \
copy from:sosu3/sosu3.hrb to:@: \
copy from:invader/invader.hrb to:@: \
copy from:sosu2/sosu2.hrb to:@: \
copy from:typeipl/typeipl.hrb to:@: \
copy from:type/type.hrb to:@: \
copy from:bball/bball.hrb to:@: \
copy from:notrec/notrec.hrb to:@: \
copy from:calc/calc.hrb to:@: \
copy from:tview/tview.hrb to:@: \
copy from:mmlplay/mmlplay.hrb to:@: \
copy from:mmldata/kirakira.mml to:@: \
copy from:mmldata/fujisan.mml to:@: \
copy from:mmldata/daigo.mml to:@: \
copy from:mmldata/daiku.mml to:@: \
copy from:gview/gview.hrb to:@: \
copy from:pictdata/fujisan.jpg to:@: \
copy from:pictdata/jaime.jpg to:@: \
copy from:pictdata/night.bmp to:@: \
copy from:vow.txt to:@: \
imgout:fkjs.img
# 一般规则
img :
$(MAKE) fkjs.img
run :
$(MAKE) fkjs.img
$(COPY) fkjs.img ..\z_tools\qemu\fdimage0.bin
$(MAKE) -C ../z_tools/qemu
install :
$(MAKE) fkjs.img
$(IMGTOL) w a: fkjs.img
cls :
-$(DEL) *.bin
-$(DEL) *.lst
-$(DEL) *.gas
-$(DEL) *.obj
-$(DEL) *.map
-$(DEL) *.bim
-$(DEL) *.hrb
-$(DEL) bootpack.nas
-$(DEL) bootpack.map
-$(DEL) bootpack.bim
-$(DEL) bootpack.hrb
-$(DEL) fkjs.sys
del fkjs.img
full :
$(MAKE) -C fkjs
$(MAKE) -C apilib
$(MAKE) -C a
$(MAKE) -C color
$(MAKE) -C color2
$(MAKE) -C sosu3
$(MAKE) -C sosu2
$(MAKE) -C typeipl
$(MAKE) -C type
$(MAKE) -C notrec
$(MAKE) -C invader
$(MAKE) -C bball
$(MAKE) -C calc
$(MAKE) -C tview
$(MAKE) -C mmlplay
$(MAKE) -C gview
$(MAKE) fkjs.img
run_full :
$(MAKE) full
$(COPY) fkjs.img ..\z_tools\qemu\fdimage0.bin
$(MAKE) -C ../z_tools/qemu
install_full :
$(MAKE) full
$(IMGTOL) w a: fkjs.img
run_os :
$(MAKE) -C fkjs
$(MAKE) run