2101
|
1 #
|
|
2 #level1/dalpha/makefile
|
|
3 #
|
|
4 # 2005-04-24, P.Harvey-Smith.
|
|
5 # Brought into line with CoCo makefile, for generating disk
|
|
6 # names baded on CPU/Level/Release number.
|
|
7 #
|
|
8 #
|
|
9 # 2005-05-31, P.Harvey-Smith.
|
|
10 # Added options to specify the step rate of the created
|
|
11 # floppy devices.
|
|
12 #
|
|
13 # 2006-01-08, P.Harvey-Smith.
|
|
14 # Added option to compile for a Dragon 32 that has been upgraded
|
|
15 # to 64K, this is almost the same as the 64, except that it lacks
|
|
16 # a serial port.
|
|
17 #
|
|
18 # 2006-01-08, P.Harvey-Smith.
|
|
19 # Determined experementally the correct step rate for Dragon Data
|
|
20 # 5.25" drives, which is 12ms, this is over half the time of the
|
|
21 # value determined by using dmode under Dragon OS9. It seems that
|
|
22 # the Dragon OS9 dis driver ignored the value set for stp, and always
|
|
23 # used 12ms !!!!
|
|
24 #
|
|
25 # 2006-01-18, P.Harvey-Smith.
|
|
26 # Updates to support Tano Dragon 64, using RS-DOS controler.
|
|
27 #
|
|
28 # 2006-07-06, P.Harvey-Smith.
|
|
29 # Updated to use new build system, for multiple supported platforms.
|
|
30 #
|
|
31
|
|
32 PORT = dalpha
|
|
33 include $(NITROS9DIR)/rules.mak
|
|
34
|
|
35 CPU = 6809
|
|
36 LEVEL = 1
|
|
37
|
|
38 # TERMWIDTH can be either VDG or HR, for 32x16 or 51x24 respectivly
|
|
39 #NOTE must be lower case.
|
|
40 TERMWIDTH = hr
|
|
41
|
|
42
|
|
43 #Default step rate for floppy drives
|
|
44 #Step can be one of : 0=30ms, 1=20ms, 2=12ms, 3=6ms
|
|
45 #Note old drives often require 30ms
|
|
46 #After experimenting with a real Dragon Data 5.25" drive I
|
|
47 #have determined that the drive will cope with 12ms step.
|
|
48 #Therefore setting this as the default for 32/64 also.
|
|
49 STEP = 2
|
|
50
|
|
51 #Is this machine a real 64, or a 32, upgraded to 64K.
|
|
52 #Set to 1 for upgraded machine.
|
|
53 UPGRADED32 = 0
|
|
54
|
|
55 # Level 1 - Specify which shell should be used
|
|
56 #WHICHSHELL = shellplus
|
|
57 WHICHSHELL = shell_21
|
|
58
|
|
59 DISTRO = $(CPU)L$(LEVEL)
|
|
60 DISTRONAME = nos9$(CPU)l$(LEVEL)
|
|
61 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT)
|
|
62
|
|
63 BOOTFILE_COVDG = bootfiles/bootfile_covdg_ss80
|
|
64 BOOTFILE_COHR = bootfiles/bootfile_cohr_ss80
|
|
65 BOOTFILE_COVDG_DS80 = bootfiles/bootfile_covdg_ds80
|
|
66 BOOTFILE_COHR_DS80 = bootfiles/bootfile_cohr_ds80
|
|
67
|
|
68 BOOTFILE_SS80 = bootfiles/bootfile_co$(TERMWIDTH)_ss80
|
|
69 BOOTFILE_DS80 = bootfiles/bootfile_co$(TERMWIDTH)_ds80
|
|
70
|
|
71 KERNELFILE = bootfiles/kernel
|
|
72 DIRS = cmds modules defs sys bootfiles
|
|
73
|
|
74 #DIRS = cmds sys
|
|
75 #modules bootfiles
|
|
76 #DDIRS = modules bootfiles defs
|
|
77
|
|
78 CMDS = $(shell $(CD) cmds; make showcocoobjs)
|
|
79 BOOTTRACK = $(shell $(CD) modules; make showboottrack)
|
|
80 KERNEL = $(shell $(CD) modules; make showkernel)
|
|
81 SYSMODS = $(shell $(CD) modules; make showsysmods)
|
|
82 CLOCKS = $(shell $(CD) modules; make showclocks)
|
|
83 RBF = $(shell $(CD) modules; make showrbf)
|
|
84 SCF = $(shell $(CD) modules; make showscf)
|
|
85 PIPE = $(shell $(CD) modules; make showpipe)
|
|
86 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode
|
|
87
|
|
88 SYS = $(shell $(CD) sys; make showobjs)
|
|
89 DEFS = $(shell $(CD) defs; make showobjs)
|
|
90 ROOTFILES = startup
|
|
91
|
|
92 PACKAGENAME = $(DISTROVER).zip
|
|
93 DSK360K_1 = $(DISTROVER)_80s_1.dsk
|
|
94 LDSK360K_1 = $(DISTRONAME)_80s_1.dsk
|
|
95 DSK360K_2 = $(DISTROVER)_80s_2.dsk
|
|
96 LDSK360K_2 = $(DISTRONAME)_80s_2.dsk
|
|
97 DSK720K = $(DISTROVER)_80d.dsk
|
|
98 LDSK720K = $(DISTRONAME)_80d.dsk
|
|
99
|
|
100 # Make all components
|
|
101 all:
|
|
102 @$(ECHO) "**************************************************"
|
|
103 @$(ECHO) "* *"
|
|
104 @$(ECHO) "* NitrOS-9/6809 Level 1 Dragon 64 Port *"
|
|
105 @$(ECHO) "* *"
|
|
106 @$(ECHO) "**************************************************"
|
|
107 $(foreach dir, $(DIRS), ($(CD) $(dir); make STEP=$(STEP) UPGRADED32=$(UPGRADED32));)
|
|
108
|
|
109 # Clean all components
|
|
110 clean: dskclean
|
|
111 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
|
|
112
|
|
113 dskclean:
|
|
114 -$(RM) $(PACKAGENAME) $(DSK360K_1) $(LDSK360K_1) \
|
|
115 $(DSK360K_2) $(LDSK360K_2) $(DSK720K) $(LDSK720K) \
|
|
116
|
|
117
|
|
118
|
|
119 dsk: all $(PACKAGENAME)
|
|
120
|
|
121 dskcopy: dsk
|
|
122 $(CP) $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(PACKAGENAME) $(DSKDIR)
|
|
123
|
|
124 scp: dsk
|
|
125 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html
|
|
126
|
|
127 $(PACKAGENAME): $(DSK360K_1) $(DSK360K_2) $(DSK720K) ReadMe ChangeLog
|
|
128 $(ARCHIVE) $@ $^
|
|
129
|
|
130 #Dragon Alpha internal drives are Single sided 80 track
|
|
131
|
|
132 $(DSK360K_1):
|
|
133 $(RM) $@
|
|
134 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 1"
|
|
135 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS80) -t=$(KERNELFILE)
|
|
136 $(MAKDIR) $@,CMDS
|
|
137 $(MAKDIR) $@,SYS
|
|
138 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS
|
|
139 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
|
|
140 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
|
|
141 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
|
|
142 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
|
|
143 $(MAKDIR) $@,DEFS
|
|
144 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
|
|
145 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
|
|
146 $(CPL) $(ROOTFILES) $@,.
|
|
147 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
|
|
148 $(RM) $(LDSK360K_1)
|
|
149 $(SOFTLINK) $@ $(LDSK360K_1)
|
|
150
|
|
151 $(DSK360K_2):
|
|
152 $(RM) $@
|
|
153 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 2"
|
|
154 $(MAKDIR) $@,NITROS9
|
|
155 $(MAKDIR) $@,NITROS9/6809L1
|
|
156 $(MAKDIR) $@,NITROS9/6809L1/CMDS
|
|
157 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS
|
|
158 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);)
|
|
159 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell
|
|
160 $(MAKDIR) $@,NITROS9/6809L1/MODULES
|
|
161 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
|
|
162 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK
|
|
163 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);)
|
|
164 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
|
|
165 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL
|
|
166 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);)
|
|
167 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
|
|
168 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS
|
|
169 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);)
|
|
170 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
|
|
171 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS
|
|
172 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);)
|
|
173 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
|
|
174 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF
|
|
175 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);)
|
|
176 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
|
|
177 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF
|
|
178 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);)
|
|
179 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
|
|
180 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE
|
|
181 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);)
|
|
182 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
|
|
183 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
|
|
184 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
|
|
185 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
|
|
186 $(RM) $(LDSK360K_2)
|
|
187 $(SOFTLINK) $@ $(LDSK360K_2)
|
|
188
|
|
189 $(DSK720K):
|
|
190 $(RM) $@
|
|
191 $(OS9FORMAT_DS80) -q -dr -c2 $@ -n"NitrOS-9/6809 Dragon Level 1"
|
|
192 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE)
|
|
193 $(MAKDIR) $@,CMDS
|
|
194 $(MAKDIR) $@,SYS
|
|
195 $(MAKDIR) $@,DEFS
|
|
196 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS
|
|
197 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
|
|
198 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
|
|
199 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
|
|
200 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
|
|
201 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
|
|
202 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
|
|
203 $(CPL) $(ROOTFILES) $@,.
|
|
204 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
|
|
205 $(MAKDIR) $@,NITROS9
|
|
206 $(MAKDIR) $@,NITROS9/6809L1
|
|
207 $(MAKDIR) $@,NITROS9/6809L1/CMDS
|
|
208 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS
|
|
209 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);)
|
|
210 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell
|
|
211 $(MAKDIR) $@,NITROS9/6809L1/MODULES
|
|
212 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
|
|
213 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK
|
|
214 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);)
|
|
215 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
|
|
216 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL
|
|
217 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);)
|
|
218 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
|
|
219 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS
|
|
220 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);)
|
|
221 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
|
|
222 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS
|
|
223 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);)
|
|
224 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
|
|
225 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF
|
|
226 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);)
|
|
227 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
|
|
228 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF
|
|
229 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);)
|
|
230 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
|
|
231 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE
|
|
232 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);)
|
|
233 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
|
|
234 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
|
|
235 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
|
|
236 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
|
|
237 $(RM) $(LDSK720K)
|
|
238 $(SOFTLINK) $@ $(LDSK720K)
|
|
239
|