Mercurial > hg > Members > kono > nitros9-code
annotate level1/dalpha/makefile @ 2742:f9a8ae065f80
Found LDSKS label was missing from level1/dalpha/makefile and was causing a problem with the disk images not being removed on a "make clean".
author | drencor-xeen |
---|---|
date | Sun, 06 Jan 2013 12:24:28 -0600 |
parents | fb1c0a45f28e |
children | e4a0f58a5f9b c1892376e7a7 |
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) |
2742
f9a8ae065f80
Found LDSKS label was missing from level1/dalpha/makefile and was causing a problem with the disk images not being removed on a "make clean".
drencor-xeen
parents:
2346
diff
changeset
|
101 LDSKS = $(LDSK360K_1) $(LDSK360K_2) $(LDSK720K) |
2216 | 102 |
2101 | 103 # Make all components |
104 all: | |
105 @$(ECHO) "**************************************************" | |
106 @$(ECHO) "* *" | |
107 @$(ECHO) "* NitrOS-9/6809 Level 1 Dragon 64 Port *" | |
108 @$(ECHO) "* *" | |
109 @$(ECHO) "**************************************************" | |
110 $(foreach dir, $(DIRS), ($(CD) $(dir); make STEP=$(STEP) UPGRADED32=$(UPGRADED32));) | |
111 | |
112 # Clean all components | |
113 clean: dskclean | |
114 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) | |
115 | |
116 dskclean: | |
2217 | 117 -$(RM) $(PACKAGENAME) $(DSKS) $(LDSKS) |
2101 | 118 |
119 dsk: all $(PACKAGENAME) | |
120 | |
121 dskcopy: dsk | |
2217 | 122 $(CP) $(DSKS) $(DSKDIR) |
2101 | 123 |
124 scp: dsk | |
125 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
126 | |
2217 | 127 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog |
2101 | 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 | |
2216 | 240 info: |
241 @$(ECHO) "*** NitrOS-9/6809 Level 1 for the Dragon Alpha ***" | |
2217 | 242 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |