2036
|
1 #
|
|
2 #bootfiles/makefile
|
|
3 #
|
|
4 # 2005-04-24, P.Harvey-Smith.
|
|
5 # Added kernels for both DS40 and DS80 disks for Dragon 64
|
|
6 # Added kernels for both SS80 and DS80 disks for Dragon Alpha
|
|
7 #
|
|
8 #
|
|
9 # 2005-12-31, P.Harvey-Smith,
|
|
10 # Fixed up for renamed video drivers.
|
|
11 #
|
|
12 # 2006-01-08, P.Harvey-Smith,
|
|
13 # Added bootrack for original Dargon Data SS40 drives.
|
|
14 #
|
|
15 # 2006-01-18, P.Harvey-Smith,
|
|
16 # Added ability to build for the Tano Dragon 64, using an RS-DOS
|
|
17 # disk controler and a 60Hz clock.
|
|
18 #
|
|
19
|
|
20 include $(NITROS9DIR)/rules.mak
|
|
21
|
|
22 # Module directory
|
|
23 MD = ../modules
|
|
24 # Commands directory
|
|
25 CD = ../cmds
|
|
26
|
|
27 DEPENDS = ./makefile
|
|
28
|
|
29 KERNEL_D64 = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init \
|
|
30 $(MD)/boot_d64
|
|
31
|
|
32 KERNEL_D64TANO = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init \
|
|
33 $(MD)/boot_1773_tano
|
|
34
|
|
35 KERNEL_DALPHA = $(MD)/rel_dalpha $(MD)/krn $(MD)/krnp2 $(MD)/init \
|
|
36 $(MD)/boot_dalpha
|
|
37
|
|
38 IDE = $(3PD)/ide
|
|
39 SCSI = $(3PD)/scsisys
|
|
40
|
|
41
|
|
42 #Dragon 32+/64 bootfiles.
|
|
43
|
|
44 BOOTFILE_D64_DS40_32 = $(MD)/ioman \
|
|
45 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
46 $(MD)/rbf.mn $(MD)/ddisk.dr \
|
|
47 $(MD)/ddd0_40d_d64.dd \
|
|
48 $(MD)/d0_40d_d64.dd $(MD)/d1_40d_d64.dd \
|
|
49 $(MD)/d2_40d_d64.dd $(MD)/d3_40d_d64.dd \
|
|
50 $(MD)/scf.mn \
|
|
51 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
52 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
53 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
54 $(MD)/sysgo_dd
|
|
55
|
|
56 BOOTFILE_D64_DS40_51 = $(MD)/ioman \
|
|
57 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
58 $(MD)/rbf.mn $(MD)/ddisk.dr \
|
|
59 $(MD)/ddd0_40d_d64.dd \
|
|
60 $(MD)/d0_40d_d64.dd $(MD)/d1_40d_d64.dd \
|
|
61 $(MD)/d2_40d_d64.dd $(MD)/d3_40d_d64.dd \
|
|
62 $(MD)/scf.mn \
|
|
63 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
64 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
65 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
66 $(MD)/sysgo_dd
|
|
67
|
|
68 BOOTFILE_D64_SS40_32 = $(MD)/ioman \
|
|
69 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
70 $(MD)/rbf.mn $(MD)/ddisk.dr \
|
|
71 $(MD)/ddd0_40s_d64.dd \
|
|
72 $(MD)/d0_40s_d64.dd $(MD)/d1_40s_d64.dd \
|
|
73 $(MD)/d2_40s_d64.dd $(MD)/d3_40s_d64.dd \
|
|
74 $(MD)/scf.mn \
|
|
75 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
76 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
77 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
78 $(MD)/sysgo_dd
|
|
79
|
|
80 BOOTFILE_D64_SS40_51 = $(MD)/ioman \
|
|
81 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
82 $(MD)/rbf.mn $(MD)/ddisk.dr \
|
|
83 $(MD)/ddd0_40s_d64.dd \
|
|
84 $(MD)/d0_40s_d64.dd $(MD)/d1_40s_d64.dd \
|
|
85 $(MD)/d2_40s_d64.dd $(MD)/d3_40s_d64.dd \
|
|
86 $(MD)/scf.mn \
|
|
87 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
88 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
89 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
90 $(MD)/sysgo_dd
|
|
91
|
|
92 BOOTFILE_D64_DS80_32 = $(MD)/ioman \
|
|
93 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
94 $(MD)/rbf.mn $(MD)/ddisk.dr \
|
|
95 $(MD)/ddd0_80_d64.dd \
|
|
96 $(MD)/d0_80_d64.dd $(MD)/d1_80_d64.dd \
|
|
97 $(MD)/d2_80_d64.dd $(MD)/d3_80_d64.dd \
|
|
98 $(MD)/scf.mn \
|
|
99 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
100 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
101 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
102 $(MD)/sysgo_dd
|
|
103
|
|
104 BOOTFILE_D64_DS80_51 = $(MD)/ioman \
|
|
105 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
106 $(MD)/rbf.mn $(MD)/ddisk.dr \
|
|
107 $(MD)/ddd0_80_d64.dd \
|
|
108 $(MD)/d0_80_d64.dd $(MD)/d1_80_d64.dd \
|
|
109 $(MD)/d2_80_d64.dd $(MD)/d3_80_d64.dd \
|
|
110 $(MD)/scf.mn \
|
|
111 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
112 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
113 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
114 $(MD)/sysgo_dd
|
|
115
|
|
116 #Tano Dragon 64, using RS-Dos cartrage and 60Hz clock (NTSC)
|
|
117
|
|
118 BOOTFILE_D64TANO_DS40_32 = $(MD)/ioman \
|
|
119 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
120 $(MD)/rbf.mn $(MD)/rb1773.dr \
|
|
121 $(MD)/ddd0_40d_d64tano.dd \
|
|
122 $(MD)/d0_40d_d64tano.dd $(MD)/d1_40d_d64tano.dd \
|
|
123 $(MD)/d2_40d_d64tano.dd $(MD)/d3_40d_d64tano.dd \
|
|
124 $(MD)/scf.mn \
|
|
125 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
126 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
127 $(MD)/clock_60hz $(MD)/clock2_soft \
|
|
128 $(MD)/sysgo_dd
|
|
129
|
|
130 BOOTFILE_D64TANO_DS40_51 = $(MD)/ioman \
|
|
131 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
132 $(MD)/rbf.mn $(MD)/rb1773.dr \
|
|
133 $(MD)/ddd0_40d_d64tano.dd \
|
|
134 $(MD)/d0_40d_d64tano.dd $(MD)/d1_40d_d64tano.dd \
|
|
135 $(MD)/d2_40d_d64tano.dd $(MD)/d3_40d_d64tano.dd \
|
|
136 $(MD)/scf.mn \
|
|
137 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
138 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
139 $(MD)/clock_60hz $(MD)/clock2_soft \
|
|
140
|
|
141 BOOTFILE_D64TANO_DS80_32 = $(MD)/ioman \
|
|
142 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
143 $(MD)/rbf.mn $(MD)/rb1773.dr \
|
|
144 $(MD)/ddd0_80_d64tano.dd \
|
|
145 $(MD)/d0_80_d64tano.dd $(MD)/d1_80_d64tano.dd \
|
|
146 $(MD)/d2_80_d64tano.dd $(MD)/d3_80_d64tano.dd \
|
|
147 $(MD)/scf.mn \
|
|
148 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
149 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
150 $(MD)/clock_60hz $(MD)/clock2_soft \
|
|
151 $(MD)/sysgo_dd
|
|
152
|
|
153 BOOTFILE_D64TANO_DS80_51 = $(MD)/ioman \
|
|
154 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
155 $(MD)/rbf.mn $(MD)/rb1773.dr \
|
|
156 $(MD)/ddd0_80_d64tano.dd \
|
|
157 $(MD)/d0_80_d64tano.dd $(MD)/d1_80_d64tano.dd \
|
|
158 $(MD)/d2_80_d64tano.dd $(MD)/d3_80_d64tano.dd \
|
|
159 $(MD)/scf.mn \
|
|
160 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
161 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
162 $(MD)/clock_60hz $(MD)/clock2_soft \
|
|
163 $(MD)/sysgo_dd
|
|
164
|
|
165 #Dragon Alpha Bootfiles
|
|
166
|
|
167 BOOTFILE_DALPHA_SS80_32 = $(MD)/ioman \
|
|
168 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
169 $(MD)/rbf.mn $(MD)/adisk.dr \
|
|
170 $(MD)/ddd0_dalpha.dd\
|
|
171 $(MD)/d0_dalpha.dd $(MD)/d1_dalpha.dd \
|
|
172 $(MD)/d2_dalpha.dd $(MD)/d3_dalpha.dd \
|
|
173 $(MD)/scf.mn \
|
|
174 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
175 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
176 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
177 $(MD)/sysgo_dd
|
|
178
|
|
179 BOOTFILE_DALPHA_SS80_51 = $(MD)/ioman \
|
|
180 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
181 $(MD)/rbf.mn $(MD)/adisk.dr \
|
|
182 $(MD)/ddd0_dalpha.dd\
|
|
183 $(MD)/d0_dalpha.dd $(MD)/d1_dalpha.dd \
|
|
184 $(MD)/d2_dalpha.dd $(MD)/d3_dalpha.dd \
|
|
185 $(MD)/scf.mn \
|
|
186 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
187 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
188 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
189 $(MD)/sysgo_dd
|
|
190
|
|
191 BOOTFILE_DALPHA_DS80_32 = $(MD)/ioman \
|
|
192 $(MD)/vtio.dr $(MD)/covdg.io $(MD)/term32.dt \
|
|
193 $(MD)/rbf.mn $(MD)/adisk.dr \
|
|
194 $(MD)/ddd0_80_d64.dd \
|
|
195 $(MD)/d0_80_d64.dd $(MD)/d1_80_d64.dd \
|
|
196 $(MD)/d2_80_d64.dd $(MD)/d3_80_d64.dd \
|
|
197 $(MD)/scf.mn \
|
|
198 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
199 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
200 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
201 $(MD)/sysgo_dd
|
|
202
|
|
203 BOOTFILE_DALPHA_DS80_51 = $(MD)/ioman \
|
|
204 $(MD)/vtio.dr $(MD)/cohr.io $(MD)/term51.dt \
|
|
205 $(MD)/rbf.mn $(MD)/adisk.dr \
|
|
206 $(MD)/ddd0_80_d64.dd \
|
|
207 $(MD)/d0_80_d64.dd $(MD)/d1_80_d64.dd \
|
|
208 $(MD)/d2_80_d64.dd $(MD)/d3_80_d64.dd \
|
|
209 $(MD)/scf.mn \
|
|
210 $(MD)/printer_d64.dr $(MD)/p_d64.dd \
|
|
211 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
212 $(MD)/clock_50hz $(MD)/clock2_soft \
|
|
213 $(MD)/sysgo_dd
|
|
214
|
|
215 BOOTFILES = bootfile_d64_DS40_51 bootfile_d64_DS40_32 \
|
|
216 bootfile_d64_SS40_51 bootfile_d64_SS40_32 \
|
|
217 bootfile_d64_DS80_51 bootfile_d64_DS80_32 \
|
|
218 bootfile_d64tano_DS40_51 bootfile_d64tano_DS40_32 \
|
|
219 bootfile_d64tano_DS80_51 bootfile_d64tano_DS80_32 \
|
|
220 bootfile_dalpha_SS80_32 bootfile_dalpha_SS80_51 \
|
|
221 bootfile_dalpha_DS80_32 bootfile_dalpha_DS80_51
|
|
222
|
|
223 KERNELS = kernel_d64 kernel_d64tano kernel_dalpha
|
|
224
|
|
225 ALLOBJS = $(BOOTFILES) $(KERNELS)
|
|
226
|
|
227 all: $(ALLOBJS)
|
|
228
|
|
229 echo:
|
|
230 @$(ECHO) $(BOOTFILE_D64_DS40_32)
|
|
231
|
|
232 # Dragon64 Disk boot
|
|
233 bootfile_d64_DS40_32: $(BOOTFILE_D64_DS40_32) $(DEPENDS)
|
|
234 $(MERGE) $(BOOTFILE_D64_DS40_32)>$@
|
|
235
|
|
236 bootfile_d64_DS40_51: $(BOOTFILE_D64_DS40_51) $(DEPENDS)
|
|
237 $(MERGE) $(BOOTFILE_D64_DS40_51)>$@
|
|
238
|
|
239 bootfile_d64_SS40_32: $(BOOTFILE_D64_DS40_32) $(DEPENDS)
|
|
240 $(MERGE) $(BOOTFILE_D64_DS40_32)>$@
|
|
241
|
|
242 bootfile_d64_SS40_51: $(BOOTFILE_D64_DS40_51) $(DEPENDS)
|
|
243 $(MERGE) $(BOOTFILE_D64_DS40_51)>$@
|
|
244
|
|
245 bootfile_d64_DS80_32: $(BOOTFILE_D64_DS80_32) $(DEPENDS)
|
|
246 $(MERGE) $(BOOTFILE_D64_DS80_32)>$@
|
|
247
|
|
248 bootfile_d64_DS80_51: $(BOOTFILE_D64_DS80_51) $(DEPENDS)
|
|
249 $(MERGE) $(BOOTFILE_D64_DS80_51)>$@
|
|
250
|
|
251 #Tano bootfiles
|
|
252 bootfile_d64tano_DS40_32: $(BOOTFILE_D64TANO_DS40_32) $(DEPENDS)
|
|
253 $(MERGE) $(BOOTFILE_D64TANO_DS40_32)>$@
|
|
254
|
|
255 bootfile_d64tano_DS40_51: $(BOOTFILE_D64TANO_DS40_51) $(DEPENDS)
|
|
256 $(MERGE) $(BOOTFILE_D64TANO_DS40_51)>$@
|
|
257
|
|
258 bootfile_d64tano_DS80_32: $(BOOTFILE_D64TANO_DS80_32) $(DEPENDS)
|
|
259 $(MERGE) $(BOOTFILE_D64TANO_DS80_32)>$@
|
|
260
|
|
261 bootfile_d64tano_DS80_51: $(BOOTFILE_D64TANO_DS80_51) $(DEPENDS)
|
|
262 $(MERGE) $(BOOTFILE_D64TANO_DS80_51)>$@
|
|
263
|
|
264 # Dragon Alpha Disk boot
|
|
265 bootfile_dalpha_SS80_32: $(BOOTFILE_DALPHA_SS80_32) $(DEPENDS)
|
|
266 $(MERGE) $(BOOTFILE_DALPHA_SS80_32)>$@
|
|
267
|
|
268 bootfile_dalpha_SS80_51: $(BOOTFILE_DALPHA_SS80_51) $(DEPENDS)
|
|
269 $(MERGE) $(BOOTFILE_DALPHA_SS80_51)>$@
|
|
270
|
|
271 bootfile_dalpha_DS80_32: $(BOOTFILE_DALPHA_DS80_32) $(DEPENDS)
|
|
272 $(MERGE) $(BOOTFILE_DALPHA_DS80_32)>$@
|
|
273
|
|
274 bootfile_dalpha_DS80_51: $(BOOTFILE_DALPHA_DS80_51) $(DEPENDS)
|
|
275 $(MERGE) $(BOOTFILE_DALPHA_DS80_51)>$@
|
|
276
|
|
277 # Dragon 64 WD2797 Kernel
|
|
278 kernel_d64: $(KERNEL_D64) $(DEPENDS)
|
|
279 $(MERGE) $(KERNEL_D64)>$@
|
|
280 $(PADROM) 4096 $@
|
|
281
|
|
282 # Tano Dragon 64 WD1773 Kernel
|
|
283 kernel_d64tano: $(KERNEL_D64TANO) $(DEPENDS)
|
|
284 $(MERGE) $(KERNEL_D64TANO)>$@
|
|
285 $(PADROM) 4096 $@
|
|
286
|
|
287 # Dragon Alpha WD2797 Kernel
|
|
288 kernel_dalpha: $(KERNEL_D64) $(DEPENDS)
|
|
289 $(MERGE) $(KERNEL_DALPHA)>$@
|
|
290 $(PADROM) 4096 $@
|
|
291
|
|
292 clean:
|
|
293 $(RM) $(ALLOBJS)
|
|
294
|