Mercurial > hg > Members > kono > nitros9-code
comparison level2/coco3/makefile @ 2047:ed46fc161cc3
All for the mix
author | boisy |
---|---|
date | Sun, 23 Apr 2006 17:39:36 +0000 |
parents | |
children | d5824ed9c767 |
comparison
equal
deleted
inserted
replaced
2046:cac62639358c | 2047:ed46fc161cc3 |
---|---|
1 PORT = coco3 | |
2 include $(NITROS9DIR)/rules.mak | |
3 | |
4 CPU = 6809 | |
5 LEVEL = 2 | |
6 | |
7 DISTRO = $(CPU)L$(LEVEL) | |
8 DISTRONAME = nos9$(CPU)l$(LEVEL) | |
9 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) | |
10 BOOTFILE_40D = bootfiles/bootfile_40d | |
11 BOOTFILE_80D = bootfiles/bootfile_80d | |
12 BOOTFILE_40D_50HZ = bootfiles/bootfile_40d_50hz | |
13 BOOTFILE_80D_50HZ = bootfiles/bootfile_80d_50hz | |
14 KERNELFILE = bootfiles/kernel_1773 | |
15 KERNELFILE_50HZ = bootfiles/kernel_1773_50hz | |
16 DIRS = cmds modules defs sys bootfiles | |
17 | |
18 CMDS = $(shell $(CD) cmds; make showobjs) | |
19 BOOTTRACK = $(shell $(CD) modules; make showboottrack) | |
20 KERNEL = $(shell $(CD) modules; make showkernel) | |
21 SYSMODS = $(shell $(CD) modules; make showsysmods) | |
22 CLOCKS = $(shell $(CD) modules; make showclocks) | |
23 RBF = $(shell $(CD) modules; make showrbf) | |
24 SCF = $(shell $(CD) modules; make showscf) | |
25 PIPE = $(shell $(CD) modules; make showpipe) | |
26 MODULECMDS = shell grfdrv del echo format makdir merge os9gen prompt tmode | |
27 | |
28 DEFS = $(shell $(CD) defs; make showobjs) | |
29 SYSBIN = $(shell $(CD) sys; make showbinobjs) | |
30 SYSTEXT = $(shell $(CD) sys; make showtextobjs) | |
31 ROOTFILES = startup | |
32 SYSGO = sysgo_dd | |
33 | |
34 PACKAGENAME = $(DISTROVER).zip | |
35 DSK360K_1 = $(DISTROVER)_40d_1.dsk | |
36 LDSK360K_1 = $(DISTRONAME)_40d_1.dsk | |
37 DSK360K_1_50HZ = $(DISTROVER)_40d_1_50hz.dsk | |
38 LDSK360K_1_50HZ = $(DISTRONAME)_40d_1_50hz.dsk | |
39 DSK360K_2 = $(DISTROVER)_40d_2.dsk | |
40 LDSK360K_2 = $(DISTRONAME)_40d_2.dsk | |
41 DSK720K = $(DISTROVER)_80d.dsk | |
42 LDSK720K = $(DISTRONAME)_80d.dsk | |
43 DSK720K_50HZ = $(DISTROVER)_80d_50hz.dsk | |
44 LDSK720K_50HZ = $(DISTRONAME)_80d_50hz.dsk | |
45 TESTDSK = test.dsk | |
46 | |
47 | |
48 # Make all components | |
49 all: | |
50 @$(ECHO) "**************************************************" | |
51 @$(ECHO) "* *" | |
52 @$(ECHO) "* NitrOS-9/$(CPU) Level 2 Distribution *" | |
53 @$(ECHO) "* *" | |
54 @$(ECHO) "**************************************************" | |
55 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) | |
56 | |
57 # Clean all components | |
58 clean: dskclean | |
59 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) | |
60 | |
61 dskclean: | |
62 -$(RM) $(PACKAGENAME) $(DSK360K_1) $(LDSK360K_1) $(DSK360K_1_50HZ) \ | |
63 $(LDSK360K_1_50HZ) $(DSK360K_2) $(LDSK360K_2) $(DSK720K) \ | |
64 $(LDSK720K) $(DSK720K_50HZ) $(LDSK720K_50HZ) | |
65 | |
66 dsk: all $(PACKAGENAME) | |
67 | |
68 dskcopy: dsk | |
69 $(CP) $(DSK360K_1) $(DSK360K_1_50HZ) $(DSK360K_2) $(DSK720K) $(DSK720K_50HZ) $(PACKAGENAME) $(DSKDIR) | |
70 | |
71 scp: dsk | |
72 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
73 | |
74 $(PACKAGENAME): $(DSK360K_1) $(DSK360K_1_50HZ) $(DSK360K_2) $(DSK720K) $(DSK720K_50HZ) ReadMe ChangeLog | |
75 $(ARCHIVE) $@ $^ | |
76 | |
77 $(DSK360K_1): | |
78 -$(RM) $@ | |
79 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/$(CPU) Level 2 Disk 1" | |
80 $(OS9GEN) $@ -b=$(BOOTFILE_40D) -t=$(KERNELFILE) | |
81 $(MAKDIR) $@,CMDS | |
82 $(MAKDIR) $@,SYS | |
83 $(MAKDIR) $@,DEFS | |
84 $(CP) modules/$(SYSGO) $@,sysgo | |
85 $(OS9ATTR_EXEC) $@,sysgo | |
86 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
87 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
88 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS | |
89 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
90 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
91 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
92 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
93 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
94 $(CPL) $(ROOTFILES) $@,. | |
95 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
96 $(RM) $(LDSK360K_1) | |
97 $(SOFTLINK) $@ $(LDSK360K_1) | |
98 | |
99 $(DSK360K_1_50HZ): | |
100 -$(RM) $@ | |
101 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/$(CPU) Level 2 Disk 1" | |
102 $(OS9GEN) $@ -b=$(BOOTFILE_40D_50HZ) -t=$(KERNELFILE_50HZ) | |
103 $(MAKDIR) $@,CMDS | |
104 $(MAKDIR) $@,SYS | |
105 $(MAKDIR) $@,DEFS | |
106 $(CP) modules/$(SYSGO) $@,sysgo | |
107 $(OS9ATTR_EXEC) $@,sysgo | |
108 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
109 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
110 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS | |
111 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
112 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
113 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
114 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
115 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
116 $(CPL) $(ROOTFILES) $@,. | |
117 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
118 $(RM) $(LDSK360K_1_50HZ) | |
119 $(SOFTLINK) $@ $(LDSK360K_1_50HZ) | |
120 | |
121 $(DSK360K_2): | |
122 -$(RM) $@ | |
123 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/$(CPU) Level 2 Disk 2" | |
124 $(MAKDIR) $@,NITROS9 | |
125 $(MAKDIR) $@,NITROS9/$(DISTRO) | |
126 $(MAKDIR) $@,NITROS9/$(DISTRO)/CMDS | |
127 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/$(DISTRO)/CMDS | |
128 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/CMDS/$(file);) | |
129 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES | |
130 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK | |
131 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK | |
132 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK/$(file);) | |
133 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/KERNEL | |
134 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/$(DISTRO)/MODULES/KERNEL | |
135 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/KERNEL/$(file);) | |
136 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS | |
137 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/$(DISTRO)/MODULES/SYSMODS | |
138 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS/$(file);) | |
139 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS | |
140 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/$(DISTRO)/MODULES/CLOCKS | |
141 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS/$(file);) | |
142 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/RBF | |
143 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/$(DISTRO)/MODULES/RBF | |
144 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/RBF/$(file);) | |
145 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SCF | |
146 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/$(DISTRO)/MODULES/SCF | |
147 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/SCF/$(file);) | |
148 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/PIPE | |
149 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/$(DISTRO)/MODULES/PIPE | |
150 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/PIPE/$(file);) | |
151 $(MAKDIR) $@,NITROS9/$(DISTRO)/BOOTLISTS | |
152 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/$(DISTRO)/BOOTLISTS | |
153 $(MAKDIR) $@,NITROS9/$(DISTRO)/SCRIPTS | |
154 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/$(DISTRO)/SCRIPTS | |
155 $(RM) $(LDSK360K_2) | |
156 $(SOFTLINK) $@ $(LDSK360K_2) | |
157 | |
158 $(DSK720K): | |
159 -$(RM) $@ | |
160 $(OS9FORMAT_DS80) -q $@ -n"NitrOS-9/$(CPU) Level 2" | |
161 $(OS9GEN) $@ -b=$(BOOTFILE_80D) -t=$(KERNELFILE) | |
162 $(MAKDIR) $@,CMDS | |
163 $(MAKDIR) $@,SYS | |
164 $(MAKDIR) $@,DEFS | |
165 $(CP) modules/$(SYSGO) $@,sysgo | |
166 $(OS9ATTR_EXEC) $@,sysgo | |
167 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
168 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
169 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS | |
170 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
171 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
172 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
173 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
174 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
175 $(CPL) $(ROOTFILES) $@,. | |
176 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
177 $(MAKDIR) $@,NITROS9 | |
178 $(MAKDIR) $@,NITROS9/$(DISTRO) | |
179 $(MAKDIR) $@,NITROS9/$(DISTRO)/CMDS | |
180 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/$(DISTRO)/CMDS | |
181 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/CMDS/$(file);) | |
182 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES | |
183 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK | |
184 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK | |
185 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK/$(file);) | |
186 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/KERNEL | |
187 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/$(DISTRO)/MODULES/KERNEL | |
188 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/KERNEL/$(file);) | |
189 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS | |
190 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/$(DISTRO)/MODULES/SYSMODS | |
191 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS/$(file);) | |
192 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS | |
193 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/$(DISTRO)/MODULES/CLOCKS | |
194 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS/$(file);) | |
195 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/RBF | |
196 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/$(DISTRO)/MODULES/RBF | |
197 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/RBF/$(file);) | |
198 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SCF | |
199 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/$(DISTRO)/MODULES/SCF | |
200 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/SCF/$(file);) | |
201 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/PIPE | |
202 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/$(DISTRO)/MODULES/PIPE | |
203 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/PIPE/$(file);) | |
204 $(MAKDIR) $@,NITROS9/$(DISTRO)/BOOTLISTS | |
205 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/$(DISTRO)/BOOTLISTS | |
206 $(MAKDIR) $@,NITROS9/$(DISTRO)/SCRIPTS | |
207 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/$(DISTRO)/SCRIPTS | |
208 $(RM) $(LDSK720K) | |
209 $(SOFTLINK) $@ $(LDSK720K) | |
210 | |
211 $(DSK720K_50HZ): | |
212 -$(RM) $@ | |
213 $(OS9FORMAT_DS80) -q $@ -n"NitrOS-9/$(CPU) Level 2" | |
214 $(OS9GEN) $@ -b=$(BOOTFILE_80D_50HZ) -t=$(KERNELFILE_50HZ) | |
215 $(MAKDIR) $@,CMDS | |
216 $(MAKDIR) $@,SYS | |
217 $(MAKDIR) $@,DEFS | |
218 $(CP) modules/$(SYSGO) $@,sysgo | |
219 $(OS9ATTR_EXEC) $@,sysgo | |
220 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
221 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
222 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS | |
223 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
224 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
225 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
226 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
227 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
228 $(CPL) $(ROOTFILES) $@,. | |
229 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
230 $(MAKDIR) $@,NITROS9 | |
231 $(MAKDIR) $@,NITROS9/$(DISTRO) | |
232 $(MAKDIR) $@,NITROS9/$(DISTRO)/CMDS | |
233 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/$(DISTRO)/CMDS | |
234 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/CMDS/$(file);) | |
235 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES | |
236 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK | |
237 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK | |
238 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/BOOTTRACK/$(file);) | |
239 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/KERNEL | |
240 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/$(DISTRO)/MODULES/KERNEL | |
241 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/KERNEL/$(file);) | |
242 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS | |
243 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/$(DISTRO)/MODULES/SYSMODS | |
244 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/SYSMODS/$(file);) | |
245 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS | |
246 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/$(DISTRO)/MODULES/CLOCKS | |
247 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/CLOCKS/$(file);) | |
248 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/RBF | |
249 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/$(DISTRO)/MODULES/RBF | |
250 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/RBF/$(file);) | |
251 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/SCF | |
252 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/$(DISTRO)/MODULES/SCF | |
253 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/SCF/$(file);) | |
254 $(MAKDIR) $@,NITROS9/$(DISTRO)/MODULES/PIPE | |
255 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/$(DISTRO)/MODULES/PIPE | |
256 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/$(DISTRO)/MODULES/PIPE/$(file);) | |
257 $(MAKDIR) $@,NITROS9/$(DISTRO)/BOOTLISTS | |
258 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/$(DISTRO)/BOOTLISTS | |
259 $(MAKDIR) $@,NITROS9/$(DISTRO)/SCRIPTS | |
260 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/$(DISTRO)/SCRIPTS | |
261 $(RM) $(LDSK720K_50HZ) | |
262 $(SOFTLINK) $@ $(LDSK720K_50HZ) | |
263 |