Mercurial > hg > Members > kono > nitros9-code
annotate level1/d64/makefile @ 2346:fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
while looking for matching `'' - in make dsk
author | chawks4 |
---|---|
date | Sat, 16 Jan 2010 18:22:49 +0000 |
parents | 0e1b2536b299 |
children | 2deaccd7ca43 e4a0f58a5f9b |
rev | line source |
---|---|
2101 | 1 # |
2 #level1/d64/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 | |
2058 | 32 PORT = d64 |
33 include $(NITROS9DIR)/rules.mak | |
34 | |
35 CPU = 6809 | |
36 LEVEL = 1 | |
37 | |
2101 | 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 | |
2058 | 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) | |
2101 | 62 |
63 BOOTFILE_COVDG = bootfiles/bootfile_covdg_ds40 | |
64 BOOTFILE_COHR = bootfiles/bootfile_cohr_ds40 | |
2058 | 65 BOOTFILE_COVDG_DS80 = bootfiles/bootfile_covdg_ds80 |
66 BOOTFILE_COHR_DS80 = bootfiles/bootfile_cohr_ds80 | |
2101 | 67 BOOTFILE_COVDG_SS40 = bootfiles/bootfile_covdg_ss40 |
68 BOOTFILE_COHR_SS40 = bootfiles/bootfile_cohr_ss40 | |
69 | |
70 BOOTFILE_DS40 = bootfiles/bootfile_co$(TERMWIDTH)_ds40 | |
71 BOOTFILE_DS80 = bootfiles/bootfile_co$(TERMWIDTH)_ds80 | |
72 BOOTFILE_SS40 = bootfiles/bootfile_co$(TERMWIDTH)_ss40 | |
73 | |
2058 | 74 KERNELFILE = bootfiles/kernel |
75 DIRS = cmds modules defs sys bootfiles | |
76 | |
2101 | 77 #DIRS = cmds sys |
78 #modules bootfiles | |
79 #DDIRS = modules bootfiles defs | |
2058 | 80 |
2346
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
81 CMDS = $(shell $(CD) cmds; make --no-print-directory showcocoobjs) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
82 CMDS525 = $(shell $(CD) cmds; make --no-print-directory showdragon525objs) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
83 CMDS525_2 = $(shell $(CD) cmds; make --no-print-directory showdragon525objs2) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
84 BOOTTRACK = $(shell $(CD) modules; make --no-print-directory showboottrack) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
85 KERNEL = $(shell $(CD) modules; make --no-print-directory showkernel) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
86 SYSMODS = $(shell $(CD) modules; make --no-print-directory showsysmods) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
87 CLOCKS = $(shell $(CD) modules; make --no-print-directory showclocks) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
88 RBF = $(shell $(CD) modules; make --no-print-directory showrbf) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
89 SCF = $(shell $(CD) modules; make --no-print-directory showscf) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
90 PIPE = $(shell $(CD) modules; make --no-print-directory showpipe) |
2058 | 91 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode |
92 | |
2346
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
93 SYS = $(shell $(CD) sys; make --no-print-directory showobjs) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
94 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs) |
2058 | 95 ROOTFILES = startup |
96 | |
97 PACKAGENAME = $(DISTROVER).zip | |
98 DSK360K_1 = $(DISTROVER)_40d_1.dsk | |
99 LDSK360K_1 = $(DISTRONAME)_40d_1.dsk | |
100 DSK360K_2 = $(DISTROVER)_40d_2.dsk | |
101 LDSK360K_2 = $(DISTRONAME)_40d_2.dsk | |
102 DSK720K = $(DISTROVER)_80d.dsk | |
103 LDSK720K = $(DISTRONAME)_80d.dsk | |
2101 | 104 #These are for the original SS40 Dragon drives, which still seem to be the most comon :( |
105 DSK180K_1 = $(DISTROVER)_40s_1.dsk | |
106 DSK180K_2 = $(DISTROVER)_40s_2.dsk | |
2058 | 107 |
2217 | 108 DSKS = $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(DSK180K_1) $(DSK180K_2) |
109 LDSKS = $(LDSK360K_1) $(LDSK360K_2) $(LDSK720K) $(LDSK180K_1) $(LDSK180K_2) | |
110 | |
2058 | 111 # Make all components |
112 all: | |
113 @$(ECHO) "**************************************************" | |
114 @$(ECHO) "* *" | |
115 @$(ECHO) "* NitrOS-9/6809 Level 1 Dragon 64 Port *" | |
116 @$(ECHO) "* *" | |
117 @$(ECHO) "**************************************************" | |
2101 | 118 $(foreach dir, $(DIRS), ($(CD) $(dir); make STEP=$(STEP) UPGRADED32=$(UPGRADED32));) |
2058 | 119 |
120 # Clean all components | |
121 clean: dskclean | |
122 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) | |
2101 | 123 |
2058 | 124 dskclean: |
2217 | 125 -$(RM) $(PACKAGENAME) $(DSKS) $(LDSKS) |
2058 | 126 |
127 dsk: all $(PACKAGENAME) | |
128 | |
129 dskcopy: dsk | |
2217 | 130 $(CP) $(DSKS) $(DSKDIR) |
2058 | 131 |
132 scp: dsk | |
133 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
134 | |
2217 | 135 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog |
2058 | 136 $(ARCHIVE) $@ $^ |
137 | |
2101 | 138 #Dragon 64/32+ |
139 | |
2058 | 140 $(DSK360K_1): |
141 $(RM) $@ | |
2101 | 142 $(OS9FORMAT_DS40) -q -dr $@ -n"NitrOS-9/6809 Dragon Level 1 Disk 1" |
143 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS40) -t=$(KERNELFILE) | |
2058 | 144 $(MAKDIR) $@,CMDS |
145 $(MAKDIR) $@,SYS | |
146 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
147 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
148 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | |
149 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
150 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
151 $(MAKDIR) $@,DEFS | |
152 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
153 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
154 $(CPL) $(ROOTFILES) $@,. | |
155 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
156 $(RM) $(LDSK360K_1) | |
157 $(SOFTLINK) $@ $(LDSK360K_1) | |
158 | |
159 $(DSK360K_2): | |
160 $(RM) $@ | |
2101 | 161 $(OS9FORMAT_DS40) -q -dr $@ -n"NitrOS-9/6809 Dragon Level 1 Disk 2" |
2058 | 162 $(MAKDIR) $@,NITROS9 |
163 $(MAKDIR) $@,NITROS9/6809L1 | |
164 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
165 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
166 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
167 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell | |
168 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
169 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
170 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
171 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
172 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
173 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
174 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
175 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
176 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
177 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
178 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
179 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
180 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
181 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
182 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
183 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
184 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
185 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
186 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
187 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
188 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
189 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
190 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
191 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
192 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
193 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
194 $(RM) $(LDSK360K_2) | |
195 $(SOFTLINK) $@ $(LDSK360K_2) | |
196 | |
197 $(DSK720K): | |
198 $(RM) $@ | |
2101 | 199 $(OS9FORMAT_DS80) -q -dr -c2 $@ -n"NitrOS-9/6809 Dragon Level 1" |
200 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) | |
2058 | 201 $(MAKDIR) $@,CMDS |
202 $(MAKDIR) $@,SYS | |
203 $(MAKDIR) $@,DEFS | |
204 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
205 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
206 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | |
207 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
208 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
209 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
210 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
211 $(CPL) $(ROOTFILES) $@,. | |
212 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
213 $(MAKDIR) $@,NITROS9 | |
214 $(MAKDIR) $@,NITROS9/6809L1 | |
215 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
216 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
217 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
218 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell | |
219 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
220 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
221 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
222 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
223 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
224 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
225 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
226 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
227 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
228 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
229 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
230 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
231 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
232 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
233 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
234 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
235 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
236 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
237 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
238 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
239 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
240 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
241 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
242 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
243 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
244 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
245 $(RM) $(LDSK720K) | |
246 $(SOFTLINK) $@ $(LDSK720K) | |
247 | |
248 | |
2101 | 249 $(DSK180K_1): |
250 $(RM) $@ | |
251 $(OS9FORMAT_SS40) -e -dr -q $@ -n"NitrOS-9/6809/Dragon Level 1 Disk 1" | |
252 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS40) -t=$(KERNELFILE) | |
253 $(MAKDIR) $@,CMDS | |
254 $(MAKDIR) $@,SYS | |
255 $(CD) cmds; $(CP) $(CMDS525) ../$@,CMDS | |
256 $(foreach file, $(CMDS525), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
257 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | |
258 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
259 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
260 $(MAKDIR) $@,DEFS | |
261 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
262 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
263 $(CPL) $(ROOTFILES) $@,. | |
264 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
265 $(CPL) $(STARTUP) $@,startup | |
266 $(OS9ATTR_TEXT) $@,startup | |
267 | |
268 $(DSK180K_2): | |
269 $(RM) $@ | |
270 $(OS9FORMAT_SS40) -e -dr -q $@ -n"NitrOS-9/6809/Dragon Level 1 Disk 2" | |
271 $(MAKDIR) $@,CMDS | |
272 $(CD) cmds; $(CP) $(CMDS525_2) ../$@,CMDS | |
273 $(foreach file, $(CMDS525_2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
274 | |
2216 | 275 info: |
276 @$(ECHO) "*** NitrOS-9/6809 Level 1 for the Dragon 64 ***" | |
2217 | 277 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |