Mercurial > hg > Members > kono > nitros9-code
annotate level2/coco3/modules/makefile @ 2293:cf5bdb01a497
No more DW server specific stuf
author | boisy |
---|---|
date | Wed, 30 Dec 2009 20:05:52 +0000 |
parents | 22e14df528e8 |
children | 3584407fea59 |
rev | line source |
---|---|
2048 | 1 PORT = coco3 |
2 include $(NITROS9DIR)/rules.mak | |
3 | |
2050 | 4 vpath %.asm kernel:$(LEVEL2)/modules:$(LEVEL1)/modules |
5 | |
6 AFLAGS += -I$(LEVEL1)/modules | |
2048 | 7 |
8 CLOCKELIM = -aRTCElim=1 | |
9 CLOCKDISTO2 = -aRTCDsto2=1 | |
10 CLOCKDISTO4 = -aRTCDsto4=1 | |
11 CLOCKBNB = -aRTCBB=1 | |
12 CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1 | |
13 CLOCKHARRIS = -aRTCHarrs=1 | |
14 CLOCKCLOUD9 = -aRTCCloud9=1 | |
15 CLOCKSOFT = -aRTCSoft=1 | |
16 CLOCKMESSEMU = -aRTCMessEmu=1 | |
17 CLOCKJVEMU = -aRTCJVEmu=1 | |
18 | |
19 DEPENDS = ./makefile | |
20 TPB = ../../3rdparty/booters | |
21 | |
22 BOOTERS = boot_1773_6ms boot_1773_30ms \ | |
2180 | 23 boot_burke boot_rampak boot_wd1002 boot_dw3 |
2048 | 24 BOOTTRACK = rel_32 rel_40 rel_80 rel_32_50hz rel_40_50hz rel_80_50hz $(BOOTERS) krn |
25 KERNEL = krnp2 krnp3_perr krnp4_regdump | |
26 SYSMODS = ioman init sysgo_h0 sysgo_dd | |
27 CLOCKS = clock_60hz clock_50hz \ | |
28 clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \ | |
29 clock2_smart clock2_harris clock2_cloud9 clock2_soft \ | |
2180 | 30 clock2_jvemu clock2_messemu clock2_dw3 |
2048 | 31 |
32 RBF = rbf.mn \ | |
2180 | 33 rbdw3.dr dw3.sb \ |
2048 | 34 rb1773.dr rb1773_scii_ff74.dr rb1773_scii_ff58.dr \ |
35 d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \ | |
36 d0_40d.dd d1_40d.dd d2_40d.dd d0_80d.dd \ | |
37 d1_80d.dd d2_80d.dd \ | |
38 ddd0_35s.dd ddd0_40d.dd ddd0_80d.dd \ | |
39 rammer.dr r0_8k.dd r0_96k.dd r0_128k.dd r0_192k.dd \ | |
2180 | 40 ddr0_8k.dd ddr0_96k.dd ddr0_128k.dd ddr0_192k.dd md.dd \ |
41 ddx0.dd x0.dd x1.dd x2.dd x3.dd | |
2048 | 42 |
43 | |
44 SCF = scf.mn \ | |
2180 | 45 vtio.dr vrn.dr scbbp.dr scbbt.dr scdwp.dr sspak.dr sc6551.dr \ |
2048 | 46 cowin.io cogrf.io covdg.io covdg_small.io \ |
47 keydrv_cc3.sb snddrv_cc3.sb \ | |
48 joydrv_joy.sb joydrv_6551L.sb joydrv_6552L.sb \ | |
49 joydrv_6551M.sb joydrv_6552M.sb \ | |
2180 | 50 nil.dd p_scbbp.dd p_scdwp.dd \ |
2162
755b1b8ea019
Updated for new t1, p and term names for bit banger driver
boisy
parents:
2142
diff
changeset
|
51 t1_scbbt.dd t2_sc6551.dd t3_sc6551.dd \ |
755b1b8ea019
Updated for new t1, p and term names for bit banger driver
boisy
parents:
2142
diff
changeset
|
52 ftdd.dd vi.dd ssp.dd term_scbbt.dt term_sc6551.dt \ |
2048 | 53 term_vdg.dt term_win40.dt term_win80.dt w.dw w1.dw w2.dw \ |
2142 | 54 w3.dw w4.dw w5.dw w6.dw w7.dw \ |
55 w8.dw w9.dw w10.dw w11.dw w12.dw w13.dw w14.dw w15.dw \ | |
56 v1.dw v2.dw v3.dw v4.dw v5.dw \ | |
2242 | 57 v6.dw v7.dw \ |
2245 | 58 scdwt.dr term_scdwt.dt t0_scdwt.dd t1_scdwt.dd t2_scdwt.dd t3_scdwt.dd \ |
2293 | 59 t4_scdwt.dd t5_scdwt.dd t6_scdwt.dd t7_scdwt.dd \ |
60 u0_scdwt.dd u1_scdwt.dd u2_scdwt.dd u3_scdwt.dd \ | |
61 u4_scdwt.dd u5_scdwt.dd u6_scdwt.dd | |
2048 | 62 |
63 PIPE = pipeman.mn pipeman_named.mn \ | |
64 piper.dr \ | |
65 pipe.dd | |
66 | |
67 # | |
68 # The following macros represent a collection of modules for various | |
69 # kernel tracks and bootfile configurations. | |
70 # | |
71 KERNEL_1773 = rel_32 boot_1773 krn | |
72 KERNEL_RAMPAK = rel_32 $(TPB)/boot_rampak krn | |
73 KERNEL_KENTON = rel_32 $(TPB)/boot_kenton krn | |
74 KERNEL_IDE = rel_32 $(TPB)/boot_ide krn | |
75 | |
76 ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE) | |
77 | |
78 all: $(ALLOBJS) | |
79 | |
80 # Kernel | |
81 krn krnp2: | |
82 $(CD) kernel; make $@ | |
83 $(CP) kernel/$@ . | |
84 | |
85 # Special cases | |
86 cogrf.io: cowin.asm | |
87 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aGrfInt=1 | |
88 | |
89 rb1773_scii_ff74.dr: rb1773.asm | |
90 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 | |
91 | |
92 rb1773_scii_ff58.dr: rb1773.asm | |
93 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 -aSCIIALT=1 | |
94 | |
95 rel_32: rel.asm | |
96 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 | |
97 | |
98 rel_40: rel.asm | |
99 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 | |
100 | |
101 rel_80: rel.asm | |
102 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 | |
103 | |
104 rel_32_50hz: rel.asm | |
105 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 -aTkPerSec=50 | |
106 | |
107 rel_40_50hz: rel.asm | |
108 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 -aTkPerSec=50 | |
109 | |
110 rel_80_50hz: rel.asm | |
111 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 -aTkPerSec=50 | |
112 | |
113 boot_1773_6ms: boot_1773.asm | |
114 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=0 | |
115 | |
116 boot_1773_30ms: boot_1773.asm | |
117 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=3 | |
118 | |
119 sysgo_dd: sysgo.asm | |
120 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1 | |
121 | |
122 sysgo_h0: sysgo.asm | |
123 $(AS) $< $(ASOUT)$@ $(AFLAGS) | |
124 | |
125 # Floppy descriptors | |
126 SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ | |
127 -aInterlv=3 -aSAS=8 -aDensity=1 | |
128 DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ | |
129 -aInterlv=3 -aSAS=8 -aDensity=1 | |
130 DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ | |
131 -aInterlv=3 -aSAS=8 -aDensity=1 -aD35 | |
132 | |
133 ddd0_35s.dd: rb1773desc.asm | |
134 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1 | |
135 | |
136 d0_35s.dd: rb1773desc.asm | |
137 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 | |
138 | |
139 d1_35s.dd: rb1773desc.asm | |
140 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1 | |
141 | |
142 d2_35s.dd: rb1773desc.asm | |
143 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2 | |
144 | |
145 d3_35s.dd: rb1773desc.asm | |
146 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3 | |
147 | |
148 ddd0_40d.dd: rb1773desc.asm | |
149 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 | |
150 | |
151 d0_40d.dd: rb1773desc.asm | |
152 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 | |
153 | |
154 d1_40d.dd: rb1773desc.asm | |
155 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 | |
156 | |
157 d2_40d.dd: rb1773desc.asm | |
158 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 | |
159 | |
160 ddd0_80d.dd: rb1773desc.asm | |
161 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 | |
162 | |
163 d0_80d.dd: rb1773desc.asm | |
164 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 | |
165 | |
166 d1_80d.dd: rb1773desc.asm | |
167 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 | |
168 | |
169 d2_80d.dd: rb1773desc.asm | |
170 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 | |
171 | |
172 # RAM Disk descriptors | |
173 r0_8k.dd: r0.asm | |
174 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 | |
175 | |
176 ddr0_8k.dd: r0.asm | |
177 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 -aDD=1 | |
178 | |
179 r0_96k.dd: r0.asm | |
180 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 | |
181 | |
182 ddr0_96k.dd: r0.asm | |
183 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 -aDD=1 | |
184 | |
185 r0_128k.dd: r0.asm | |
186 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 | |
187 | |
188 ddr0_128k.dd: r0.asm | |
189 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 -aDD=1 | |
190 | |
191 r0_192k.dd: r0.asm | |
192 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 | |
193 | |
194 ddr0_192k.dd: r0.asm | |
195 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 -aDD=1 | |
196 | |
2258 | 197 # DriveWire 3 SCF descriptors |
198 term_scdwt.dt: dwtdesc.asm | |
2293 | 199 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTERM=1 -aAddr=1 -aTNum=1 |
2258 | 200 |
2262 | 201 t0_scdwt.dd: dwtdesc.asm |
2293 | 202 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=0 -aTNum=0 |
2258 | 203 |
2262 | 204 t1_scdwt.dd: dwtdesc.asm |
2293 | 205 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=1 -aTNum=1 |
2258 | 206 |
2262 | 207 t2_scdwt.dd: dwtdesc.asm |
2293 | 208 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=2 -aTNum=2 |
2258 | 209 |
2262 | 210 t3_scdwt.dd: dwtdesc.asm |
2293 | 211 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=3 -aTNum=3 |
2258 | 212 |
2262 | 213 t4_scdwt.dd: dwtdesc.asm |
2293 | 214 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=4 -aTNum=4 |
2258 | 215 |
2262 | 216 t5_scdwt.dd: dwtdesc.asm |
2293 | 217 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=5 -aTNum=5 |
2258 | 218 |
2262 | 219 t6_scdwt.dd: dwtdesc.asm |
2293 | 220 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=6 -aTNum=6 |
221 | |
222 t7_scdwt.dd: dwtdesc.asm | |
223 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=7 -aTNum=7 | |
224 | |
225 u0_scdwt.dd: dwtdesc.asm | |
226 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=8 -aUTIL=1 -aTNum=0 | |
227 | |
228 u1_scdwt.dd: dwtdesc.asm | |
229 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=9 -aUTIL=1 -aTNum=1 | |
230 | |
231 u2_scdwt.dd: dwtdesc.asm | |
232 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=10 -aUTIL=1 -aTNum=2 | |
233 | |
234 u3_scdwt.dd: dwtdesc.asm | |
235 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=11 -aUTIL=1 -aTNum=3 | |
236 | |
237 u4_scdwt.dd: dwtdesc.asm | |
238 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=12 -aUTIL=1 -aTNum=4 | |
239 | |
240 u5_scdwt.dd: dwtdesc.asm | |
241 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=13 -aUTIL=1 -aTNum=5 | |
242 | |
243 u6_scdwt.dd: dwtdesc.asm | |
244 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aAddr=14 -aUTIL=1 -aTNum=6 | |
2258 | 245 |
246 # DriveWire 3 RBF descriptors | |
2180 | 247 ddx0.dd: dwdesc.asm |
248 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1 -aDNum=0 | |
249 | |
250 x0.dd: dwdesc.asm | |
251 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 | |
252 | |
253 x1.dd: dwdesc.asm | |
254 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=1 | |
255 | |
256 x2.dd: dwdesc.asm | |
257 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=2 | |
258 | |
259 x3.dd: dwdesc.asm | |
260 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=3 | |
261 | |
2048 | 262 # VDGInt Modules |
263 covdg.io: covdg.asm | |
264 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCOCO2=1 | |
265 | |
266 covdg_small.io: covdg.asm | |
267 $(AS) $(AFLAGS) $(ASOUT)$@ $< | |
268 | |
269 # Clocks | |
270 clock_60hz: clock.asm | |
271 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60 | |
272 | |
273 clock_50hz: clock.asm | |
274 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50 | |
275 | |
276 clock2_cloud9: clock2_ds1315.asm | |
277 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1 | |
278 | |
279 clock2_bnb: clock2_ds1315.asm | |
280 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1 | |
281 | |
282 clean: | |
283 $(CD) kernel; make $@ | |
284 $(RM) $(ALLOBJS) | |
285 | |
286 showobjs: | |
287 @$(ECHO) $(ALLOBJS) | |
288 | |
289 showboottrack: | |
290 @$(ECHO) $(BOOTTRACK) | |
291 | |
292 showkernel: | |
293 @$(ECHO) $(KERNEL) | |
294 | |
295 showsysmods: | |
296 @$(ECHO) $(SYSMODS) | |
297 | |
298 showclocks: | |
299 @$(ECHO) $(CLOCKS) | |
300 | |
301 showrbf: | |
302 @$(ECHO) $(RBF) | |
303 | |
304 showscf: | |
305 @$(ECHO) $(SCF) | |
306 | |
307 showpipe: | |
308 @$(ECHO) $(PIPE) | |
309 | |
310 identify: | |
311 $(IDENT_SHORT) $(ALLOBJS) |