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