2036
|
1 #
|
2101
|
2 #level1/dalpha/modules/makefile
|
2036
|
3 #
|
|
4 # 2005-04-24, P.Harvey-Smith,
|
|
5 # made descriptors for both 40 & 80 track drives for Dragon 64.
|
|
6 #
|
|
7 #
|
|
8 # 2005-05-31, P.Harvey-Smith,
|
|
9 # Steprate now passed in from ../makefile.dragon or ../makefile.dalpha
|
|
10 #
|
|
11 # 2005-12-31, P.Harvey-Smith,
|
|
12 # Fixed up for renamed video drivers.
|
|
13 #
|
|
14 # 2006-01-08, P.Harvey-Smith.
|
|
15 # Added descriptors for original Dragon Data single sided 5.25" drives.
|
|
16 # Pass step rate to boot_d64, so that boot module steprate set correctly.
|
|
17 #
|
|
18 # 2006-01-18, P.Harvey-Smith,
|
|
19 # Added ability to build for the Tano Dragon 64, using an RS-DOS
|
|
20 # disk controler and a 60Hz clock.
|
|
21 #
|
|
22
|
2037
|
23 PORT = dalpha
|
2036
|
24 include $(NITROS9DIR)/rules.mak
|
|
25
|
2059
|
26 vpath %.asm $(LEVEL1)/modules
|
2036
|
27
|
2101
|
28 AFLAGS += -I$(LEVEL1)/modules
|
|
29
|
2036
|
30 CLOCKELIM = -aRTCElim=1
|
|
31 CLOCKDISTO2 = -aRTCDsto2=1
|
|
32 CLOCKDISTO4 = -aRTCDsto4=1
|
|
33 CLOCKBNB = -aRTCBB=1
|
|
34 CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1
|
|
35 CLOCKHARRIS = -aRTCHarrs=1
|
|
36 CLOCKCLOUD9 = -aRTCCloud9=1
|
|
37 CLOCKSOFT = -aRTCSoft=1
|
|
38 CLOCKMESSEMU = -aRTCMessEmu=1
|
|
39 CLOCKJVEMU = -aRTCJVEmu=1
|
|
40
|
|
41 DEPENDS = ./makefile
|
|
42 TPB = $(3RDPARTY)/booters
|
|
43
|
2059
|
44 BOOTERS = boot_dalpha
|
2036
|
45
|
2059
|
46 BOOTTRACK = rel $(BOOTERS)
|
2036
|
47 KERNEL = krn krnp2
|
|
48 SYSMODS = ioman init sysgo_dd sysgo_h0
|
|
49
|
|
50 CLOCKS = clock_60hz clock_50hz \
|
|
51 clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \
|
|
52 clock2_smart clock2_harris clock2_cloud9 clock2_soft \
|
|
53 clock2_messemu clock2_jvemu
|
|
54
|
|
55 RBF = rbf.mn \
|
|
56 adisk.dr \
|
2059
|
57 ddd0_80s.dd ddd0_80d.dd d0_80s.dd d0_80d.dd d1_80s.dd d1_80d.dd \
|
|
58 d2_80s.dd d2_80d.dd d3_80s.dd d3_80d.dd
|
2036
|
59
|
|
60 SCF = scf.mn \
|
2059
|
61 vrn.dr scdpp.dr sspak.dr vtio.dr \
|
2036
|
62 covdg.io cohr.io\
|
2059
|
63 nil.dd p_dpp.dd pipe.dd ssp.dd \
|
|
64 term_sc6551.dt t2_sc6551.dt t3_sc6551.dt \
|
|
65 term32.dt term51.dt term80.dt p1_sc6551dragon.dd
|
2036
|
66
|
|
67 PIPE = pipeman.mn \
|
|
68 piper.dr \
|
|
69 pipe.dd
|
|
70
|
|
71 ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE)
|
|
72
|
|
73 all: $(ALLOBJS)
|
|
74
|
|
75 # Special cases
|
|
76
|
|
77 # Kernel
|
|
78 krn krnp2:
|
|
79 $(CD) kernel; make $@
|
|
80 $(CP) kernel/$@ .
|
|
81
|
|
82 boot_dalpha: boot_d64.asm
|
2101
|
83 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 -aStep=$(STEP)
|
2036
|
84
|
|
85 # Clocks
|
|
86 clock_60hz: clock.asm
|
|
87 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60
|
|
88
|
|
89 clock_50hz: clock.asm
|
|
90 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50
|
|
91
|
|
92 clock2_bnb: clock2_ds1315.asm
|
|
93 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1
|
|
94
|
|
95 clock2_cloud9: clock2_ds1315.asm
|
|
96 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1
|
|
97
|
|
98 # Floppy descriptors
|
|
99 SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \
|
2059
|
100 -aInterlv=2 -aSAS=8 -aDensity=1 -aStep=0
|
2036
|
101 SSDD40 = -aCyls=40 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \
|
2101
|
102 -aInterlv=2 -aSAS=8 -aDensity=1 -aStep=$(STEP)
|
2036
|
103 DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \
|
2101
|
104 -aInterlv=2 -aSAS=8 -aDensity=1 -aStep=$(STEP)
|
2036
|
105 SSDD80 = -aCyls=80 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \
|
2101
|
106 -aInterlv=2 -aSAS=8 -aDensity=1 -aD35 -aStep=$(STEP)
|
2036
|
107 DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \
|
2101
|
108 -aInterlv=2 -aSAS=8 -aDensity=1 -aD35 -aStep=$(STEP)
|
2036
|
109
|
|
110 #Dragon Alpha
|
|
111 # Internal drives on Alpha are Single Sided 80 track.
|
|
112
|
2059
|
113 ddd0_80s.dd: ddiskdesc.asm
|
|
114 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=0 -aDD=1
|
|
115
|
|
116 ddd0_80d.dd: ddiskdesc.asm
|
|
117 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1
|
2036
|
118
|
2059
|
119 d0_80s.dd: ddiskdesc.asm
|
|
120 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=0
|
|
121
|
|
122 d0_80d.dd: ddiskdesc.asm
|
|
123 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0
|
2036
|
124
|
2059
|
125 d1_80s.dd: ddiskdesc.asm
|
|
126 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=1
|
|
127
|
|
128 d1_80d.dd: ddiskdesc.asm
|
|
129 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1
|
|
130
|
|
131 d2_80s.dd: ddiskdesc.asm
|
|
132 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=2
|
2036
|
133
|
2059
|
134 d2_80d.dd: ddiskdesc.asm
|
|
135 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2
|
2036
|
136
|
2059
|
137 d3_80s.dd: ddiskdesc.asm
|
|
138 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD80) -aDNum=3
|
|
139
|
|
140 d3_80d.dd: ddiskdesc.asm
|
|
141 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=3
|
2036
|
142
|
|
143 adisk.dr: ddisk.asm
|
2059
|
144 $(AS) $< $(ASOUT)$@ $(AFLAGS)
|
2036
|
145
|
|
146
|
|
147 sysgo_dd: sysgo.asm
|
|
148 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aDD=1
|
|
149
|
|
150 sysgo_h0: sysgo.asm
|
|
151 $(AS) $(AFLAGS) $(ASOUT)$@ $<
|
|
152
|
|
153
|
|
154 clean:
|
|
155 $(CD) kernel; make $@
|
|
156 $(RM) $(ALLOBJS)
|
|
157
|
|
158 showobjs:
|
|
159 @$(ECHO) $(ALLOBJS)
|
|
160
|
|
161 showboottrack:
|
|
162 @$(ECHO) $(BOOTTRACK)
|
|
163
|
|
164 showkernel:
|
|
165 @$(ECHO) $(KERNEL)
|
|
166
|
|
167 showsysmods:
|
|
168 @$(ECHO) $(SYSMODS)
|
|
169
|
|
170 showclocks:
|
|
171 @$(ECHO) $(CLOCKS)
|
|
172
|
|
173 showrbf:
|
|
174 @$(ECHO) $(RBF)
|
|
175
|
|
176 showscf:
|
|
177 @$(ECHO) $(SCF)
|
|
178
|
|
179 showpipe:
|
|
180 @$(ECHO) $(PIPE)
|
|
181
|
|
182 identify:
|
|
183 $(IDENT_SHORT) $(ALLOBJS)
|