annotate level2/coco3/modules/makefile @ 2048:127b30f90456

Added
author boisy
date Sun, 23 Apr 2006 17:44:50 +0000
parents
children d63587190d9b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2048
boisy
parents:
diff changeset
1 PORT = coco3
boisy
parents:
diff changeset
2 include $(NITROS9DIR)/rules.mak
boisy
parents:
diff changeset
3
boisy
parents:
diff changeset
4 vpath %.asm kernel:$(6809L2)/modules:$(6809L1)/modules
boisy
parents:
diff changeset
5
boisy
parents:
diff changeset
6 CLOCKELIM = -aRTCElim=1
boisy
parents:
diff changeset
7 CLOCKDISTO2 = -aRTCDsto2=1
boisy
parents:
diff changeset
8 CLOCKDISTO4 = -aRTCDsto4=1
boisy
parents:
diff changeset
9 CLOCKBNB = -aRTCBB=1
boisy
parents:
diff changeset
10 CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1
boisy
parents:
diff changeset
11 CLOCKHARRIS = -aRTCHarrs=1
boisy
parents:
diff changeset
12 CLOCKCLOUD9 = -aRTCCloud9=1
boisy
parents:
diff changeset
13 CLOCKSOFT = -aRTCSoft=1
boisy
parents:
diff changeset
14 CLOCKMESSEMU = -aRTCMessEmu=1
boisy
parents:
diff changeset
15 CLOCKJVEMU = -aRTCJVEmu=1
boisy
parents:
diff changeset
16
boisy
parents:
diff changeset
17 DEPENDS = ./makefile
boisy
parents:
diff changeset
18 TPB = ../../3rdparty/booters
boisy
parents:
diff changeset
19
boisy
parents:
diff changeset
20 BOOTERS = boot_1773_6ms boot_1773_30ms \
boisy
parents:
diff changeset
21 boot_burke boot_rampak boot_wd1002
boisy
parents:
diff changeset
22 BOOTTRACK = rel_32 rel_40 rel_80 rel_32_50hz rel_40_50hz rel_80_50hz $(BOOTERS) krn
boisy
parents:
diff changeset
23 KERNEL = krnp2 krnp3_perr krnp4_regdump
boisy
parents:
diff changeset
24 SYSMODS = ioman init sysgo_h0 sysgo_dd
boisy
parents:
diff changeset
25 CLOCKS = clock_60hz clock_50hz \
boisy
parents:
diff changeset
26 clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \
boisy
parents:
diff changeset
27 clock2_smart clock2_harris clock2_cloud9 clock2_soft \
boisy
parents:
diff changeset
28 clock2_jvemu clock2_messemu
boisy
parents:
diff changeset
29
boisy
parents:
diff changeset
30 RBF = rbf.mn \
boisy
parents:
diff changeset
31 rb1773.dr rb1773_scii_ff74.dr rb1773_scii_ff58.dr \
boisy
parents:
diff changeset
32 d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \
boisy
parents:
diff changeset
33 d0_40d.dd d1_40d.dd d2_40d.dd d0_80d.dd \
boisy
parents:
diff changeset
34 d1_80d.dd d2_80d.dd \
boisy
parents:
diff changeset
35 ddd0_35s.dd ddd0_40d.dd ddd0_80d.dd \
boisy
parents:
diff changeset
36 rammer.dr r0_8k.dd r0_96k.dd r0_128k.dd r0_192k.dd \
boisy
parents:
diff changeset
37 ddr0_8k.dd ddr0_96k.dd ddr0_128k.dd ddr0_192k.dd md.dd
boisy
parents:
diff changeset
38
boisy
parents:
diff changeset
39
boisy
parents:
diff changeset
40 SCF = scf.mn \
boisy
parents:
diff changeset
41 vtio.dr vrn.dr scbbp.dr scbbt.dr sspak.dr sc6551.dr \
boisy
parents:
diff changeset
42 cowin.io cogrf.io covdg.io covdg_small.io \
boisy
parents:
diff changeset
43 keydrv_cc3.sb snddrv_cc3.sb \
boisy
parents:
diff changeset
44 joydrv_joy.sb joydrv_6551L.sb joydrv_6552L.sb \
boisy
parents:
diff changeset
45 joydrv_6551M.sb joydrv_6552M.sb \
boisy
parents:
diff changeset
46 nil.dd p_bbp.dd \
boisy
parents:
diff changeset
47 t1_bbt.dd t2_sc6551.dd t3_sc6551.dd \
boisy
parents:
diff changeset
48 ftdd.dd vi.dd ssp.dd term_bbt.dt term_sc6551.dt \
boisy
parents:
diff changeset
49 term_vdg.dt term_win40.dt term_win80.dt w.dw w1.dw w2.dw \
boisy
parents:
diff changeset
50 w3.dw w4.dw w5.dw w6.dw w7.dw v1.dw v2.dw v3.dw v4.dw v5.dw \
boisy
parents:
diff changeset
51 v6.dw v7.dw
boisy
parents:
diff changeset
52
boisy
parents:
diff changeset
53 PIPE = pipeman.mn pipeman_named.mn \
boisy
parents:
diff changeset
54 piper.dr \
boisy
parents:
diff changeset
55 pipe.dd
boisy
parents:
diff changeset
56
boisy
parents:
diff changeset
57 #
boisy
parents:
diff changeset
58 # The following macros represent a collection of modules for various
boisy
parents:
diff changeset
59 # kernel tracks and bootfile configurations.
boisy
parents:
diff changeset
60 #
boisy
parents:
diff changeset
61 KERNEL_1773 = rel_32 boot_1773 krn
boisy
parents:
diff changeset
62 KERNEL_RAMPAK = rel_32 $(TPB)/boot_rampak krn
boisy
parents:
diff changeset
63 KERNEL_KENTON = rel_32 $(TPB)/boot_kenton krn
boisy
parents:
diff changeset
64 KERNEL_IDE = rel_32 $(TPB)/boot_ide krn
boisy
parents:
diff changeset
65
boisy
parents:
diff changeset
66 ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE)
boisy
parents:
diff changeset
67
boisy
parents:
diff changeset
68 all: $(ALLOBJS)
boisy
parents:
diff changeset
69
boisy
parents:
diff changeset
70 # Kernel
boisy
parents:
diff changeset
71 krn krnp2:
boisy
parents:
diff changeset
72 $(CD) kernel; make $@
boisy
parents:
diff changeset
73 $(CP) kernel/$@ .
boisy
parents:
diff changeset
74
boisy
parents:
diff changeset
75 # Special cases
boisy
parents:
diff changeset
76 cogrf.io: cowin.asm
boisy
parents:
diff changeset
77 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aGrfInt=1
boisy
parents:
diff changeset
78
boisy
parents:
diff changeset
79 rb1773_scii_ff74.dr: rb1773.asm
boisy
parents:
diff changeset
80 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1
boisy
parents:
diff changeset
81
boisy
parents:
diff changeset
82 rb1773_scii_ff58.dr: rb1773.asm
boisy
parents:
diff changeset
83 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 -aSCIIALT=1
boisy
parents:
diff changeset
84
boisy
parents:
diff changeset
85 rel_32: rel.asm
boisy
parents:
diff changeset
86 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32
boisy
parents:
diff changeset
87
boisy
parents:
diff changeset
88 rel_40: rel.asm
boisy
parents:
diff changeset
89 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40
boisy
parents:
diff changeset
90
boisy
parents:
diff changeset
91 rel_80: rel.asm
boisy
parents:
diff changeset
92 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80
boisy
parents:
diff changeset
93
boisy
parents:
diff changeset
94 rel_32_50hz: rel.asm
boisy
parents:
diff changeset
95 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 -aTkPerSec=50
boisy
parents:
diff changeset
96
boisy
parents:
diff changeset
97 rel_40_50hz: rel.asm
boisy
parents:
diff changeset
98 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 -aTkPerSec=50
boisy
parents:
diff changeset
99
boisy
parents:
diff changeset
100 rel_80_50hz: rel.asm
boisy
parents:
diff changeset
101 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 -aTkPerSec=50
boisy
parents:
diff changeset
102
boisy
parents:
diff changeset
103 boot_1773_6ms: boot_1773.asm
boisy
parents:
diff changeset
104 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=0
boisy
parents:
diff changeset
105
boisy
parents:
diff changeset
106 boot_1773_30ms: boot_1773.asm
boisy
parents:
diff changeset
107 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=3
boisy
parents:
diff changeset
108
boisy
parents:
diff changeset
109 sysgo_dd: sysgo.asm
boisy
parents:
diff changeset
110 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1
boisy
parents:
diff changeset
111
boisy
parents:
diff changeset
112 sysgo_h0: sysgo.asm
boisy
parents:
diff changeset
113 $(AS) $< $(ASOUT)$@ $(AFLAGS)
boisy
parents:
diff changeset
114
boisy
parents:
diff changeset
115 # Floppy descriptors
boisy
parents:
diff changeset
116 SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \
boisy
parents:
diff changeset
117 -aInterlv=3 -aSAS=8 -aDensity=1
boisy
parents:
diff changeset
118 DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \
boisy
parents:
diff changeset
119 -aInterlv=3 -aSAS=8 -aDensity=1
boisy
parents:
diff changeset
120 DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \
boisy
parents:
diff changeset
121 -aInterlv=3 -aSAS=8 -aDensity=1 -aD35
boisy
parents:
diff changeset
122
boisy
parents:
diff changeset
123 ddd0_35s.dd: rb1773desc.asm
boisy
parents:
diff changeset
124 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1
boisy
parents:
diff changeset
125
boisy
parents:
diff changeset
126 d0_35s.dd: rb1773desc.asm
boisy
parents:
diff changeset
127 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0
boisy
parents:
diff changeset
128
boisy
parents:
diff changeset
129 d1_35s.dd: rb1773desc.asm
boisy
parents:
diff changeset
130 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1
boisy
parents:
diff changeset
131
boisy
parents:
diff changeset
132 d2_35s.dd: rb1773desc.asm
boisy
parents:
diff changeset
133 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2
boisy
parents:
diff changeset
134
boisy
parents:
diff changeset
135 d3_35s.dd: rb1773desc.asm
boisy
parents:
diff changeset
136 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3
boisy
parents:
diff changeset
137
boisy
parents:
diff changeset
138 ddd0_40d.dd: rb1773desc.asm
boisy
parents:
diff changeset
139 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1
boisy
parents:
diff changeset
140
boisy
parents:
diff changeset
141 d0_40d.dd: rb1773desc.asm
boisy
parents:
diff changeset
142 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0
boisy
parents:
diff changeset
143
boisy
parents:
diff changeset
144 d1_40d.dd: rb1773desc.asm
boisy
parents:
diff changeset
145 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1
boisy
parents:
diff changeset
146
boisy
parents:
diff changeset
147 d2_40d.dd: rb1773desc.asm
boisy
parents:
diff changeset
148 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2
boisy
parents:
diff changeset
149
boisy
parents:
diff changeset
150 ddd0_80d.dd: rb1773desc.asm
boisy
parents:
diff changeset
151 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1
boisy
parents:
diff changeset
152
boisy
parents:
diff changeset
153 d0_80d.dd: rb1773desc.asm
boisy
parents:
diff changeset
154 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0
boisy
parents:
diff changeset
155
boisy
parents:
diff changeset
156 d1_80d.dd: rb1773desc.asm
boisy
parents:
diff changeset
157 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1
boisy
parents:
diff changeset
158
boisy
parents:
diff changeset
159 d2_80d.dd: rb1773desc.asm
boisy
parents:
diff changeset
160 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2
boisy
parents:
diff changeset
161
boisy
parents:
diff changeset
162 # RAM Disk descriptors
boisy
parents:
diff changeset
163 r0_8k.dd: r0.asm
boisy
parents:
diff changeset
164 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8
boisy
parents:
diff changeset
165
boisy
parents:
diff changeset
166 ddr0_8k.dd: r0.asm
boisy
parents:
diff changeset
167 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 -aDD=1
boisy
parents:
diff changeset
168
boisy
parents:
diff changeset
169 r0_96k.dd: r0.asm
boisy
parents:
diff changeset
170 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96
boisy
parents:
diff changeset
171
boisy
parents:
diff changeset
172 ddr0_96k.dd: r0.asm
boisy
parents:
diff changeset
173 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 -aDD=1
boisy
parents:
diff changeset
174
boisy
parents:
diff changeset
175 r0_128k.dd: r0.asm
boisy
parents:
diff changeset
176 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128
boisy
parents:
diff changeset
177
boisy
parents:
diff changeset
178 ddr0_128k.dd: r0.asm
boisy
parents:
diff changeset
179 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 -aDD=1
boisy
parents:
diff changeset
180
boisy
parents:
diff changeset
181 r0_192k.dd: r0.asm
boisy
parents:
diff changeset
182 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192
boisy
parents:
diff changeset
183
boisy
parents:
diff changeset
184 ddr0_192k.dd: r0.asm
boisy
parents:
diff changeset
185 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 -aDD=1
boisy
parents:
diff changeset
186
boisy
parents:
diff changeset
187 # VDGInt Modules
boisy
parents:
diff changeset
188 covdg.io: covdg.asm
boisy
parents:
diff changeset
189 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCOCO2=1
boisy
parents:
diff changeset
190
boisy
parents:
diff changeset
191 covdg_small.io: covdg.asm
boisy
parents:
diff changeset
192 $(AS) $(AFLAGS) $(ASOUT)$@ $<
boisy
parents:
diff changeset
193
boisy
parents:
diff changeset
194 # Clocks
boisy
parents:
diff changeset
195 clock_60hz: clock.asm
boisy
parents:
diff changeset
196 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60
boisy
parents:
diff changeset
197
boisy
parents:
diff changeset
198 clock_50hz: clock.asm
boisy
parents:
diff changeset
199 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50
boisy
parents:
diff changeset
200
boisy
parents:
diff changeset
201 clock2_cloud9: clock2_ds1315.asm
boisy
parents:
diff changeset
202 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1
boisy
parents:
diff changeset
203
boisy
parents:
diff changeset
204 clock2_bnb: clock2_ds1315.asm
boisy
parents:
diff changeset
205 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1
boisy
parents:
diff changeset
206
boisy
parents:
diff changeset
207 clean:
boisy
parents:
diff changeset
208 $(CD) kernel; make $@
boisy
parents:
diff changeset
209 $(RM) $(ALLOBJS)
boisy
parents:
diff changeset
210
boisy
parents:
diff changeset
211 showobjs:
boisy
parents:
diff changeset
212 @$(ECHO) $(ALLOBJS)
boisy
parents:
diff changeset
213
boisy
parents:
diff changeset
214 showboottrack:
boisy
parents:
diff changeset
215 @$(ECHO) $(BOOTTRACK)
boisy
parents:
diff changeset
216
boisy
parents:
diff changeset
217 showkernel:
boisy
parents:
diff changeset
218 @$(ECHO) $(KERNEL)
boisy
parents:
diff changeset
219
boisy
parents:
diff changeset
220 showsysmods:
boisy
parents:
diff changeset
221 @$(ECHO) $(SYSMODS)
boisy
parents:
diff changeset
222
boisy
parents:
diff changeset
223 showclocks:
boisy
parents:
diff changeset
224 @$(ECHO) $(CLOCKS)
boisy
parents:
diff changeset
225
boisy
parents:
diff changeset
226 showrbf:
boisy
parents:
diff changeset
227 @$(ECHO) $(RBF)
boisy
parents:
diff changeset
228
boisy
parents:
diff changeset
229 showscf:
boisy
parents:
diff changeset
230 @$(ECHO) $(SCF)
boisy
parents:
diff changeset
231
boisy
parents:
diff changeset
232 showpipe:
boisy
parents:
diff changeset
233 @$(ECHO) $(PIPE)
boisy
parents:
diff changeset
234
boisy
parents:
diff changeset
235 identify:
boisy
parents:
diff changeset
236 $(IDENT_SHORT) $(ALLOBJS)