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