Mercurial > hg > Members > kono > nitros9-code
comparison level1/dalpha/modules/makefile @ 2036:e482bb12a954
tano port
author | boisy |
---|---|
date | Sat, 22 Apr 2006 19:18:23 +0000 |
parents | |
children | 2e37b5a0d4b3 |
comparison
equal
deleted
inserted
replaced
2035:12ad1d266df9 | 2036:e482bb12a954 |
---|---|
1 # | |
2 #modules/makefile | |
3 # | |
4 # 2005-04-24, P.Harvey-Smith, | |
5 # made descriptors for both 40 & 80 track drives for Dragon 64. | |
6 # | |
7 # | |
8 # 2005-05-31, P.Harvey-Smith, | |
9 # Steprate now passed in from ../makefile.dragon or ../makefile.dalpha | |
10 # | |
11 # 2005-12-31, P.Harvey-Smith, | |
12 # Fixed up for renamed video drivers. | |
13 # | |
14 # 2006-01-08, P.Harvey-Smith. | |
15 # Added descriptors for original Dragon Data single sided 5.25" drives. | |
16 # Pass step rate to boot_d64, so that boot module steprate set correctly. | |
17 # | |
18 # 2006-01-18, P.Harvey-Smith, | |
19 # Added ability to build for the Tano Dragon 64, using an RS-DOS | |
20 # disk controler and a 60Hz clock. | |
21 # | |
22 | |
23 PORT = tano | |
24 include $(NITROS9DIR)/rules.mak | |
25 | |
26 vpath %.asm $(6809L1)/modules | |
27 | |
28 CLOCKELIM = -aRTCElim=1 | |
29 CLOCKDISTO2 = -aRTCDsto2=1 | |
30 CLOCKDISTO4 = -aRTCDsto4=1 | |
31 CLOCKBNB = -aRTCBB=1 | |
32 CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1 | |
33 CLOCKHARRIS = -aRTCHarrs=1 | |
34 CLOCKCLOUD9 = -aRTCCloud9=1 | |
35 CLOCKSOFT = -aRTCSoft=1 | |
36 CLOCKMESSEMU = -aRTCMessEmu=1 | |
37 CLOCKJVEMU = -aRTCJVEmu=1 | |
38 | |
39 DEPENDS = ./makefile | |
40 TPB = $(3RDPARTY)/booters | |
41 | |
42 BOOTERS = boot_d64 boot_1773_tano boot_dalpha | |
43 | |
44 BOOTTRACK = rel $(BOOTERS) rel_dalpha | |
45 KERNEL = krn krnp2 | |
46 SYSMODS = ioman init sysgo_dd sysgo_h0 | |
47 | |
48 CLOCKS = clock_60hz clock_50hz \ | |
49 clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \ | |
50 clock2_smart clock2_harris clock2_cloud9 clock2_soft \ | |
51 clock2_messemu clock2_jvemu | |
52 | |
53 RBF = rbf.mn \ | |
54 ddisk.dr \ | |
55 ddd0_40d_d64.dd d0_40d_d64.dd d1_40d_d64.dd d2_40d_d64.dd d3_40d_d64.dd \ | |
56 ddd0_40s_d64.dd d0_40s_d64.dd d1_40s_d64.dd d2_40s_d64.dd d3_40s_d64.dd \ | |
57 ddd0_80_d64.dd d0_80_d64.dd d1_80_d64.dd d2_80_d64.dd d3_80_d64.dd \ | |
58 rb1773.dr \ | |
59 ddd0_40d_d64tano.dd d0_40d_d64tano.dd d1_40d_d64tano.dd d2_40d_d64tano.dd d3_40d_d64tano.dd \ | |
60 ddd0_80_d64tano.dd d0_80_d64tano.dd d1_80_d64tano.dd d2_80_d64tano.dd d3_80_d64tano.dd \ | |
61 adisk.dr \ | |
62 ddd0_dalpha.dd d0_dalpha.dd d1_dalpha.dd d2_dalpha.dd d3_dalpha.dd | |
63 | |
64 SCF = scf.mn \ | |
65 vrn.dr printer_d64.dr sspak.dr vtio.dr \ | |
66 covdg.io cohr.io\ | |
67 nil.dd p_d64.dd pipe.dd ssp.dd \ | |
68 term_sc6551.dt t1.dd t2_sc6551.dd t3_sc6551.dt \ | |
69 term32.dt term51.dt term80.dt t1_d64.dd p1_d64.dd | |
70 | |
71 PIPE = pipeman.mn \ | |
72 piper.dr \ | |
73 pipe.dd | |
74 | |
75 ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE) | |
76 | |
77 all: $(ALLOBJS) | |
78 | |
79 # Special cases | |
80 | |
81 # Kernel | |
82 krn krnp2: | |
83 $(CD) kernel; make $@ | |
84 $(CP) kernel/$@ . | |
85 | |
86 boot_d64: boot_d64.asm | |
87 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 -aStep=$(STEP) | |
88 | |
89 boot_1773_tano: boot_1773.asm | |
90 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 -aSTEP=$(STEP) | |
91 | |
92 boot_dalpha: boot_d64.asm | |
93 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 -aStep=$(STEP) -aDragonAlpha=1 | |
94 | |
95 # Clocks | |
96 clock_60hz: clock.asm | |
97 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60 | |
98 | |
99 clock_50hz: clock.asm | |
100 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50 | |
101 | |
102 clock2_bnb: clock2_ds1315.asm | |
103 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1 | |
104 | |
105 clock2_cloud9: clock2_ds1315.asm | |
106 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1 | |
107 | |
108 #Terminals, vtio, is compiled with code to remap keyboad from CoCo to Dragon layout. | |
109 vtio.dr: vtio.asm | |
110 $(AS) $(ASFLAGS) $(ASOUT)$@ $< -aDragonIO=1 | |
111 | |
112 # Floppy descriptors | |
113 SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ | |
114 -aInterlv=2 -aSAS=8 -aDensity=1 | |
115 SSDD40 = -aCyls=40 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ | |
116 -aInterlv=2 -aSAS=8 -aDensity=1 | |
117 DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ | |
118 -aInterlv=2 -aSAS=8 -aDensity=1 | |
119 SSDD80 = -aCyls=80 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ | |
120 -aInterlv=2 -aSAS=8 -aDensity=1 -aD35 | |
121 DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ | |
122 -aInterlv=2 -aSAS=8 -aDensity=1 -aD35 | |
123 | |
124 #Dragon 64 | |
125 #Dragon 64 Drives can be double or single sided, but assume | |
126 # that /d0 and /d1 are double sided 40 track. | |
127 | |
128 ddd0_40d_d64.dd: ddiskdesc.asm | |
129 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 -aStep=$(STEP) | |
130 | |
131 d0_40d_d64.dd: ddiskdesc.asm | |
132 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aStep=$(STEP) | |
133 | |
134 d1_40d_d64.dd: ddiskdesc.asm | |
135 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 -aStep=$(STEP) | |
136 | |
137 d2_40d_d64.dd: ddiskdesc.asm | |
138 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 -aStep=$(STEP) | |
139 | |
140 d3_40d_d64.dd: ddiskdesc.asm | |
141 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=3 -aStep=$(STEP) | |
142 | |
143 #Single sided 40 track drives. | |
144 ddd0_40s_d64.dd: ddiskdesc.asm | |
145 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD40) -aDNum=0 -aDD=1 -aStep=$(STEP) | |
146 | |
147 d0_40s_d64.dd: ddiskdesc.asm | |
148 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD40) -aDNum=0 -aStep=$(STEP) | |
149 | |
150 d1_40s_d64.dd: ddiskdesc.asm | |
151 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD40) -aDNum=1 -aStep=$(STEP) | |
152 | |
153 d2_40s_d64.dd: ddiskdesc.asm | |
154 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD40) -aDNum=2 -aStep=$(STEP) | |
155 | |
156 d3_40s_d64.dd: ddiskdesc.asm | |
157 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD40) -aDNum=3 -aStep=$(STEP) | |
158 | |
159 | |
160 ddd0_80_d64.dd: ddiskdesc.asm | |
161 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 -aStep=$(STEP) | |
162 | |
163 d0_80_d64.dd: ddiskdesc.asm | |
164 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aStep=$(STEP) | |
165 | |
166 d1_80_d64.dd: ddiskdesc.asm | |
167 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 -aStep=$(STEP) | |
168 | |
169 d2_80_d64.dd: ddiskdesc.asm | |
170 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 -aStep=$(STEP) | |
171 | |
172 d3_80_d64.dd: ddiskdesc.asm | |
173 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=3 -aStep=$(STEP) | |
174 | |
175 # | |
176 #Tano Dragon 64, using rb1773 driver | |
177 # 40 track DS | |
178 ddd0_40d_d64tano.dd: rb1773desc.asm | |
179 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 -aStep=$(STEP) | |
180 | |
181 d0_40d_d64tano.dd: rb1773desc.asm | |
182 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aStep=$(STEP) | |
183 | |
184 d1_40d_d64tano.dd: rb1773desc.asm | |
185 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 -aStep=$(STEP) | |
186 | |
187 d2_40d_d64tano.dd: rb1773desc.asm | |
188 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 -aStep=$(STEP) | |
189 | |
190 d3_40d_d64tano.dd: rb1773desc.asm | |
191 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=3 -aStep=$(STEP) | |
192 | |
193 #80track DS | |
194 ddd0_80_d64tano.dd: rb1773desc.asm | |
195 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 -aStep=$(STEP) | |
196 | |
197 d0_80_d64tano.dd: rb1773desc.asm | |
198 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aStep=$(STEP) | |
199 | |
200 d1_80_d64tano.dd: rb1773desc.asm | |
201 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 -aStep=$(STEP) | |
202 | |
203 d2_80_d64tano.dd: rb1773desc.asm | |
204 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 -aStep=$(STEP) | |
205 | |
206 d3_80_d64tano.dd: rb1773desc.asm | |
207 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=3 -aStep=$(STEP) | |
208 | |
209 | |
210 #Dragon Alpha | |
211 # Internal drives on Alpha are Single Sided 80 track. | |
212 | |
213 ddd0_dalpha.dd: ddiskdesc.asm | |
214 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=0 -aDD=1 -aStep=$(STEP) | |
215 | |
216 d0_dalpha.dd: ddiskdesc.asm | |
217 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=0 -aStep=$(STEP) | |
218 | |
219 d1_dalpha.dd: ddiskdesc.asm | |
220 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=1 -aStep=$(STEP) | |
221 | |
222 d2_dalpha.dd: ddiskdesc.asm | |
223 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 -aStep=$(STEP) | |
224 | |
225 d3_dalpha.dd: ddiskdesc.asm | |
226 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=3 -aStep=$(STEP) | |
227 | |
228 adisk.dr: ddisk.asm | |
229 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDragonAlpha=1 | |
230 | |
231 | |
232 rel: rel.asm | |
233 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aDragon64=1 | |
234 | |
235 rel_dalpha: rel.asm | |
236 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aDragon64=1 -aDragonAlpha=1 | |
237 | |
238 | |
239 sysgo_dd: sysgo.asm | |
240 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aDD=1 | |
241 | |
242 sysgo_h0: sysgo.asm | |
243 $(AS) $(AFLAGS) $(ASOUT)$@ $< | |
244 | |
245 sysgo_d64: sysgo_d64.asm | |
246 $(AS) $(AFLAGS) $(ASOUT)$@ $< | |
247 | |
248 ddisk.dr: ddisk.asm | |
249 $(AS) $(AFLAGS) $(ASOUT)$@ -aUPGRADED32=$(UPGRADED32) $< | |
250 | |
251 | |
252 clean: | |
253 $(CD) kernel; make $@ | |
254 $(RM) $(ALLOBJS) | |
255 | |
256 showobjs: | |
257 @$(ECHO) $(ALLOBJS) | |
258 | |
259 showboottrack: | |
260 @$(ECHO) $(BOOTTRACK) | |
261 | |
262 showkernel: | |
263 @$(ECHO) $(KERNEL) | |
264 | |
265 showsysmods: | |
266 @$(ECHO) $(SYSMODS) | |
267 | |
268 showclocks: | |
269 @$(ECHO) $(CLOCKS) | |
270 | |
271 showrbf: | |
272 @$(ECHO) $(RBF) | |
273 | |
274 showscf: | |
275 @$(ECHO) $(SCF) | |
276 | |
277 showpipe: | |
278 @$(ECHO) $(PIPE) | |
279 | |
280 identify: | |
281 $(IDENT_SHORT) $(ALLOBJS) | |
282 | |
283 |