annotate level2/coco3/modules/makefile @ 2050:d63587190d9b

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