-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
160 lines (140 loc) · 3.53 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
TOOLPATH = ../z_tools/
INCPATH = ../z_tools/CHNOSProject/
MAKE = $(TOOLPATH)make.exe -r
EDIMG = $(TOOLPATH)edimg.exe
IMGTOL = $(TOOLPATH)imgtol.com
COPY = copy
DEL = del
# デフォルト動作
default :
$(MAKE) chnos.img
# ファイル生成規則
chnos.img : chnos/chnipl.bin chnos/chnos.sys chnos/chnipl.nas \
a/a.hrb \
bug1/bug1.hrb \
bug2/bug2.hrb \
bug3/bug3.hrb \
crack1/crack1.hrb \
crack2/crack2.hrb \
crack3/crack3.hrb \
crack4/crack4.hrb \
hello/hello.hrb \
lines/lines.hrb \
star1/star1.hrb \
stars/stars.hrb \
walk/walk.hrb \
winhelo/winhelo.hrb \
winhelo2/winhelo2.hrb \
winhelo3/winhelo3.hrb
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
wbinimg src:chnos/chnipl.bin len:512 from:0 to:0 \
copy from:chnos/chnos.sys to:@: \
copy from:chnos/chnipl.nas to:@: \
copy from:a/a.hrb to:@: \
copy from:bug1/bug1.hrb to:@: \
copy from:bug2/bug2.hrb to:@: \
copy from:bug3/bug3.hrb to:@: \
copy from:crack1/crack1.hrb to:@: \
copy from:crack2/crack2.hrb to:@: \
copy from:crack3/crack3.hrb to:@: \
copy from:crack4/crack4.hrb to:@: \
copy from:hello/hello.hrb to:@: \
copy from:lines/lines.hrb to:@: \
copy from:star1/star1.hrb to:@: \
copy from:stars/stars.hrb to:@: \
copy from:walk/walk.hrb to:@: \
copy from:winhelo/winhelo.hrb to:@: \
copy from:winhelo2/winhelo2.hrb to:@: \
copy from:winhelo3/winhelo3.hrb to:@: \
imgout:chnos.img
# コマンド
run :
$(MAKE) chnos.img
$(COPY) chnos.img ..\z_tools\qemu\fdimage0.bin
$(MAKE) -C ../z_tools/qemu
run_b :
$(MAKE) chnos.img
$(COPY) chnos.img ..\z_tools\bochs\fdimage0.bin
$(MAKE) -C ../z_tools/bochs
iso :
$(MAKE) chnos.img
..\z_tools\mkisofs.exe -v -iso-level 1 -b chnos.img -o ..\z_tools\qemu_iso\chnos.iso .
run_cd :
$(MAKE) iso
$(MAKE) -C ../z_tools/qemu_iso
install :
$(MAKE) chnos.img
$(IMGTOL) w a: chnos.img
full :
$(MAKE) -C chnos
$(MAKE) -C a
$(MAKE) -C bug1
$(MAKE) -C bug2
$(MAKE) -C bug3
$(MAKE) -C crack1
$(MAKE) -C crack2
$(MAKE) -C crack3
$(MAKE) -C crack4
$(MAKE) -C hello
$(MAKE) -C lines
$(MAKE) -C star1
$(MAKE) -C stars
$(MAKE) -C walk
$(MAKE) -C winhelo
$(MAKE) -C winhelo2
$(MAKE) -C winhelo3
$(MAKE) chnos.img
run_full :
$(MAKE) full
$(COPY) chnos.img ..\z_tools\qemu\fdimage0.bin
$(MAKE) -C ../z_tools/qemu
install_full :
$(MAKE) full
$(IMGTOL) w a: chnos.img
run_os :
$(MAKE) -C chnos
$(MAKE) run
clean :
# 何もしない
src_only :
$(MAKE) clean
-$(DEL) chnos.img
clean_full :
$(MAKE) -C chnos clean
$(MAKE) -C bug1 clean
$(MAKE) -C bug2 clean
$(MAKE) -C bug3 clean
$(MAKE) -C crack1 clean
$(MAKE) -C crack2 clean
$(MAKE) -C crack3 clean
$(MAKE) -C crack4 clean
$(MAKE) -C hello clean
$(MAKE) -C lines clean
$(MAKE) -C star1 clean
$(MAKE) -C stars clean
$(MAKE) -C walk clean
$(MAKE) -C winhelo clean
$(MAKE) -C winhelo2 clean
$(MAKE) -C winhelo3 clean
src_only_full :
$(MAKE) -C chnos src_only
$(MAKE) -C bug1 src_only
$(MAKE) -C bug2 src_only
$(MAKE) -C bug3 src_only
$(MAKE) -C crack1 src_only
$(MAKE) -C crack2 src_only
$(MAKE) -C crack3 src_only
$(MAKE) -C crack4 src_only
$(MAKE) -C hello src_only
$(MAKE) -C lines src_only
$(MAKE) -C star1 src_only
$(MAKE) -C stars src_only
$(MAKE) -C walk src_only
$(MAKE) -C winhelo src_only
$(MAKE) -C winhelo2 src_only
$(MAKE) -C winhelo3 src_only
-$(DEL) chnos.img
refresh :
$(MAKE) full
$(MAKE) clean_full
-$(DEL) chnos.img