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