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