Mercurial > hg > Members > kono > nitros9-code
annotate level2/coco3/modules/makefile @ 2258:c5e313a93c68
SCDWT descriptors are now made from one file
author | boisy |
---|---|
date | Sun, 27 Dec 2009 17:51:19 +0000 |
parents | c877f09599f9 |
children | 6ce1eeaa029e |
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 \ |
2242 | 59 t4_scdwt.dd t5_scdwt.dd t6_scdwt.dd |
2048 | 60 |
61 PIPE = pipeman.mn pipeman_named.mn \ | |
62 piper.dr \ | |
63 pipe.dd | |
64 | |
65 # | |
66 # The following macros represent a collection of modules for various | |
67 # kernel tracks and bootfile configurations. | |
68 # | |
69 KERNEL_1773 = rel_32 boot_1773 krn | |
70 KERNEL_RAMPAK = rel_32 $(TPB)/boot_rampak krn | |
71 KERNEL_KENTON = rel_32 $(TPB)/boot_kenton krn | |
72 KERNEL_IDE = rel_32 $(TPB)/boot_ide krn | |
73 | |
74 ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE) | |
75 | |
76 all: $(ALLOBJS) | |
77 | |
78 # Kernel | |
79 krn krnp2: | |
80 $(CD) kernel; make $@ | |
81 $(CP) kernel/$@ . | |
82 | |
83 # Special cases | |
84 cogrf.io: cowin.asm | |
85 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aGrfInt=1 | |
86 | |
87 rb1773_scii_ff74.dr: rb1773.asm | |
88 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 | |
89 | |
90 rb1773_scii_ff58.dr: rb1773.asm | |
91 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 -aSCIIALT=1 | |
92 | |
93 rel_32: rel.asm | |
94 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 | |
95 | |
96 rel_40: rel.asm | |
97 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 | |
98 | |
99 rel_80: rel.asm | |
100 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 | |
101 | |
102 rel_32_50hz: rel.asm | |
103 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 -aTkPerSec=50 | |
104 | |
105 rel_40_50hz: rel.asm | |
106 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 -aTkPerSec=50 | |
107 | |
108 rel_80_50hz: rel.asm | |
109 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 -aTkPerSec=50 | |
110 | |
111 boot_1773_6ms: boot_1773.asm | |
112 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=0 | |
113 | |
114 boot_1773_30ms: boot_1773.asm | |
115 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=3 | |
116 | |
117 sysgo_dd: sysgo.asm | |
118 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1 | |
119 | |
120 sysgo_h0: sysgo.asm | |
121 $(AS) $< $(ASOUT)$@ $(AFLAGS) | |
122 | |
123 # Floppy descriptors | |
124 SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ | |
125 -aInterlv=3 -aSAS=8 -aDensity=1 | |
126 DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ | |
127 -aInterlv=3 -aSAS=8 -aDensity=1 | |
128 DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ | |
129 -aInterlv=3 -aSAS=8 -aDensity=1 -aD35 | |
130 | |
131 ddd0_35s.dd: rb1773desc.asm | |
132 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1 | |
133 | |
134 d0_35s.dd: rb1773desc.asm | |
135 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 | |
136 | |
137 d1_35s.dd: rb1773desc.asm | |
138 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1 | |
139 | |
140 d2_35s.dd: rb1773desc.asm | |
141 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2 | |
142 | |
143 d3_35s.dd: rb1773desc.asm | |
144 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3 | |
145 | |
146 ddd0_40d.dd: rb1773desc.asm | |
147 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 | |
148 | |
149 d0_40d.dd: rb1773desc.asm | |
150 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 | |
151 | |
152 d1_40d.dd: rb1773desc.asm | |
153 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 | |
154 | |
155 d2_40d.dd: rb1773desc.asm | |
156 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 | |
157 | |
158 ddd0_80d.dd: rb1773desc.asm | |
159 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 | |
160 | |
161 d0_80d.dd: rb1773desc.asm | |
162 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 | |
163 | |
164 d1_80d.dd: rb1773desc.asm | |
165 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 | |
166 | |
167 d2_80d.dd: rb1773desc.asm | |
168 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 | |
169 | |
170 # RAM Disk descriptors | |
171 r0_8k.dd: r0.asm | |
172 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 | |
173 | |
174 ddr0_8k.dd: r0.asm | |
175 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 -aDD=1 | |
176 | |
177 r0_96k.dd: r0.asm | |
178 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 | |
179 | |
180 ddr0_96k.dd: r0.asm | |
181 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 -aDD=1 | |
182 | |
183 r0_128k.dd: r0.asm | |
184 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 | |
185 | |
186 ddr0_128k.dd: r0.asm | |
187 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 -aDD=1 | |
188 | |
189 r0_192k.dd: r0.asm | |
190 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 | |
191 | |
192 ddr0_192k.dd: r0.asm | |
193 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 -aDD=1 | |
194 | |
2258 | 195 # DriveWire 3 SCF descriptors |
196 term_scdwt.dt: dwtdesc.asm | |
197 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTERM=1 | |
198 | |
199 t0_scdwt.dt: dwtdesc.asm | |
200 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=0 | |
201 | |
202 t1_scdwt.dt: dwtdesc.asm | |
203 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=1 | |
204 | |
205 t2_scdwt.dt: dwtdesc.asm | |
206 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=2 | |
207 | |
208 t3_scdwt.dt: dwtdesc.asm | |
209 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=3 | |
210 | |
211 t4_scdwt.dt: dwtdesc.asm | |
212 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=4 | |
213 | |
214 t5_scdwt.dt: dwtdesc.asm | |
215 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=5 | |
216 | |
217 t6_scdwt.dt: dwtdesc.asm | |
218 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aTNum=6 | |
219 | |
220 # DriveWire 3 RBF descriptors | |
2180 | 221 ddx0.dd: dwdesc.asm |
222 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1 -aDNum=0 | |
223 | |
224 x0.dd: dwdesc.asm | |
225 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 | |
226 | |
227 x1.dd: dwdesc.asm | |
228 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=1 | |
229 | |
230 x2.dd: dwdesc.asm | |
231 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=2 | |
232 | |
233 x3.dd: dwdesc.asm | |
234 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=3 | |
235 | |
2048 | 236 # VDGInt Modules |
237 covdg.io: covdg.asm | |
238 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCOCO2=1 | |
239 | |
240 covdg_small.io: covdg.asm | |
241 $(AS) $(AFLAGS) $(ASOUT)$@ $< | |
242 | |
243 # Clocks | |
244 clock_60hz: clock.asm | |
245 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60 | |
246 | |
247 clock_50hz: clock.asm | |
248 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50 | |
249 | |
250 clock2_cloud9: clock2_ds1315.asm | |
251 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1 | |
252 | |
253 clock2_bnb: clock2_ds1315.asm | |
254 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1 | |
255 | |
256 clean: | |
257 $(CD) kernel; make $@ | |
258 $(RM) $(ALLOBJS) | |
259 | |
260 showobjs: | |
261 @$(ECHO) $(ALLOBJS) | |
262 | |
263 showboottrack: | |
264 @$(ECHO) $(BOOTTRACK) | |
265 | |
266 showkernel: | |
267 @$(ECHO) $(KERNEL) | |
268 | |
269 showsysmods: | |
270 @$(ECHO) $(SYSMODS) | |
271 | |
272 showclocks: | |
273 @$(ECHO) $(CLOCKS) | |
274 | |
275 showrbf: | |
276 @$(ECHO) $(RBF) | |
277 | |
278 showscf: | |
279 @$(ECHO) $(SCF) | |
280 | |
281 showpipe: | |
282 @$(ECHO) $(PIPE) | |
283 | |
284 identify: | |
285 $(IDENT_SHORT) $(ALLOBJS) |