Mercurial > hg > Members > kono > nitros9-code
annotate level1/dalpha/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 | f9a8ae065f80 |
rev | line source |
---|---|
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 | |
2346
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
78 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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 PIPE = $(shell $(CD) modules; make --no-print-directory showpipe) |
2101 | 86 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode |
87 | |
2346
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
88 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
|
89 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs) |
2101 | 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 | |
2217 | 100 DSKS = $(DSK360K_1) $(DSK360K_2) $(DSK720K) |
2216 | 101 |
2101 | 102 # Make all components |
103 all: | |
104 @$(ECHO) "**************************************************" | |
105 @$(ECHO) "* *" | |
106 @$(ECHO) "* NitrOS-9/6809 Level 1 Dragon 64 Port *" | |
107 @$(ECHO) "* *" | |
108 @$(ECHO) "**************************************************" | |
109 $(foreach dir, $(DIRS), ($(CD) $(dir); make STEP=$(STEP) UPGRADED32=$(UPGRADED32));) | |
110 | |
111 # Clean all components | |
112 clean: dskclean | |
113 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) | |
114 | |
115 dskclean: | |
2217 | 116 -$(RM) $(PACKAGENAME) $(DSKS) $(LDSKS) |
2101 | 117 |
118 dsk: all $(PACKAGENAME) | |
119 | |
120 dskcopy: dsk | |
2217 | 121 $(CP) $(DSKS) $(DSKDIR) |
2101 | 122 |
123 scp: dsk | |
124 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
125 | |
2217 | 126 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog |
2101 | 127 $(ARCHIVE) $@ $^ |
128 | |
129 #Dragon Alpha internal drives are Single sided 80 track | |
130 | |
131 $(DSK360K_1): | |
132 $(RM) $@ | |
133 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 1" | |
134 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS80) -t=$(KERNELFILE) | |
135 $(MAKDIR) $@,CMDS | |
136 $(MAKDIR) $@,SYS | |
137 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
138 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
139 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | |
140 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
141 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
142 $(MAKDIR) $@,DEFS | |
143 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
144 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
145 $(CPL) $(ROOTFILES) $@,. | |
146 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
147 $(RM) $(LDSK360K_1) | |
148 $(SOFTLINK) $@ $(LDSK360K_1) | |
149 | |
150 $(DSK360K_2): | |
151 $(RM) $@ | |
152 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 2" | |
153 $(MAKDIR) $@,NITROS9 | |
154 $(MAKDIR) $@,NITROS9/6809L1 | |
155 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
156 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
157 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
158 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell | |
159 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
160 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
161 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
162 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
163 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
164 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
165 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
166 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
167 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
168 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
169 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
170 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
171 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
172 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
173 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
174 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
175 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
176 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
177 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
178 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
179 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
180 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
181 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
182 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
183 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
184 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
185 $(RM) $(LDSK360K_2) | |
186 $(SOFTLINK) $@ $(LDSK360K_2) | |
187 | |
188 $(DSK720K): | |
189 $(RM) $@ | |
190 $(OS9FORMAT_DS80) -q -dr -c2 $@ -n"NitrOS-9/6809 Dragon Level 1" | |
191 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) | |
192 $(MAKDIR) $@,CMDS | |
193 $(MAKDIR) $@,SYS | |
194 $(MAKDIR) $@,DEFS | |
195 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
196 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
197 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | |
198 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
199 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
200 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
201 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
202 $(CPL) $(ROOTFILES) $@,. | |
203 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
204 $(MAKDIR) $@,NITROS9 | |
205 $(MAKDIR) $@,NITROS9/6809L1 | |
206 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
207 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
208 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
209 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell | |
210 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
211 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
212 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
213 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
214 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
215 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
216 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
217 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
218 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
219 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
220 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
221 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
222 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
223 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
224 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
225 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
226 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
227 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
228 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
229 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
230 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
231 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
232 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
233 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
234 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
235 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
236 $(RM) $(LDSK720K) | |
237 $(SOFTLINK) $@ $(LDSK720K) | |
238 | |
2216 | 239 info: |
240 @$(ECHO) "*** NitrOS-9/6809 Level 1 for the Dragon Alpha ***" | |
2217 | 241 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |