comparison level1/coco1/makefile @ 2833:0f3030598435 lwtools-port

Really fix level 1 builds: Do not use os9 dcopy Bugs in os9 dcopy make it run into infinite recursion before it eventually dies of buffer overflow. Instead use os9 makdir and copy, which was already used some places.
author Tormod Volden <debian.tormod@gmail.com>
date Wed, 10 Jul 2013 19:09:05 +0200
parents 7c8442122235
children c1892376e7a7
comparison
equal deleted inserted replaced
2832:41a6f70d842d 2833:0f3030598435
159 $(OS9GEN) $@ -b=$(BOOTFILE_COVDG_BECKER) -t=$(KERNELFILE_BECKER) 159 $(OS9GEN) $@ -b=$(BOOTFILE_COVDG_BECKER) -t=$(KERNELFILE_BECKER)
160 $(MAKDIR) $@,CMDS 160 $(MAKDIR) $@,CMDS
161 $(MAKDIR) $@,SYS 161 $(MAKDIR) $@,SYS
162 $(MAKDIR) $@,DEFS 162 $(MAKDIR) $@,DEFS
163 $(MAKDIR) $@,WWWROOT 163 $(MAKDIR) $@,WWWROOT
164 -os9 dsave -e wwwroot $@,WWWROOT
165 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS 164 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS
166 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 165 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
167 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS 166 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS
168 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 167 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
169 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell 168 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
170 $(CD) sys; $(CPL) $(SYS) ../$@,SYS 169 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
171 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) 170 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
171 $(CD) wwwroot; $(CP) $(WWWROOT) ../$@,WWWROOT
172 $(foreach file, $(WWWROOT), $(OS9ATTR_TEXT) $@,WWWROOT/$(file);)
172 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS 173 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
173 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) 174 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
174 $(CPL) $(STARTUP_DW) $@,startup 175 $(CPL) $(STARTUP_DW) $@,startup
175 $(OS9ATTR_TEXT) $@,startup 176 $(OS9ATTR_TEXT) $@,startup
176 $(MAKDIR) $@,NITROS9 177 $(MAKDIR) $@,NITROS9
214 $(OS9GEN) $@ -b=$(BOOTFILE_COVDG_ARDUINO) -t=$(KERNELFILE_ARDUINO) 215 $(OS9GEN) $@ -b=$(BOOTFILE_COVDG_ARDUINO) -t=$(KERNELFILE_ARDUINO)
215 $(MAKDIR) $@,CMDS 216 $(MAKDIR) $@,CMDS
216 $(MAKDIR) $@,SYS 217 $(MAKDIR) $@,SYS
217 $(MAKDIR) $@,DEFS 218 $(MAKDIR) $@,DEFS
218 $(MAKDIR) $@,WWWROOT 219 $(MAKDIR) $@,WWWROOT
219 -os9 dsave -e wwwroot $@,WWWROOT
220 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS 220 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS
221 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 221 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
222 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS 222 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS
223 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 223 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
224 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell 224 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
225 $(CD) sys; $(CPL) $(SYS) ../$@,SYS 225 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
226 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) 226 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
227 $(CD) wwwroot; $(CP) $(WWWROOT) ../$@,WWWROOT
228 $(foreach file, $(WWWROOT), $(OS9ATTR_TEXT) $@,WWWROOT/$(file);)
227 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS 229 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
228 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) 230 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
229 $(CPL) $(STARTUP_DW) $@,startup 231 $(CPL) $(STARTUP_DW) $@,startup
230 $(OS9ATTR_TEXT) $@,startup 232 $(OS9ATTR_TEXT) $@,startup
231 $(MAKDIR) $@,NITROS9 233 $(MAKDIR) $@,NITROS9
269 $(OS9GEN) $@ -b=$(BOOTFILE_HEADLESS_DW) -t=$(KERNELFILE_DW) 271 $(OS9GEN) $@ -b=$(BOOTFILE_HEADLESS_DW) -t=$(KERNELFILE_DW)
270 $(MAKDIR) $@,CMDS 272 $(MAKDIR) $@,CMDS
271 $(MAKDIR) $@,SYS 273 $(MAKDIR) $@,SYS
272 $(MAKDIR) $@,DEFS 274 $(MAKDIR) $@,DEFS
273 $(MAKDIR) $@,WWWROOT 275 $(MAKDIR) $@,WWWROOT
274 -os9 dsave -e wwwroot $@,WWWROOT
275 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS 276 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS
276 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 277 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
277 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS 278 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS
278 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 279 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
279 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell 280 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
280 $(CD) sys; $(CPL) $(SYS) ../$@,SYS 281 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
281 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) 282 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
283 $(CD) wwwroot; $(CP) $(WWWROOT) ../$@,WWWROOT
284 $(foreach file, $(WWWROOT), $(OS9ATTR_TEXT) $@,WWWROOT/$(file);)
282 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS 285 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
283 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) 286 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
284 $(CPL) $(STARTUP_DW) $@,startup 287 $(CPL) $(STARTUP_DW) $@,startup
285 $(OS9ATTR_TEXT) $@,startup 288 $(OS9ATTR_TEXT) $@,startup
286 $(MAKDIR) $@,NITROS9 289 $(MAKDIR) $@,NITROS9
324 $(OS9GEN) $@ -b=$(BOOTFILE_HEADLESS_BECKER) -t=$(KERNELFILE_BECKER) 327 $(OS9GEN) $@ -b=$(BOOTFILE_HEADLESS_BECKER) -t=$(KERNELFILE_BECKER)
325 $(MAKDIR) $@,CMDS 328 $(MAKDIR) $@,CMDS
326 $(MAKDIR) $@,SYS 329 $(MAKDIR) $@,SYS
327 $(MAKDIR) $@,DEFS 330 $(MAKDIR) $@,DEFS
328 $(MAKDIR) $@,WWWROOT 331 $(MAKDIR) $@,WWWROOT
329 -os9 dsave -e wwwroot $@,WWWROOT
330 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS 332 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS
331 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 333 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
332 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS 334 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS
333 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 335 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
334 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell 336 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
335 $(CD) sys; $(CPL) $(SYS) ../$@,SYS 337 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
336 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) 338 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
339 $(CD) wwwroot; $(CP) $(WWWROOT) ../$@,WWWROOT
340 $(foreach file, $(WWWROOT), $(OS9ATTR_TEXT) $@,WWWROOT/$(file);)
337 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS 341 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
338 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) 342 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
339 $(CPL) $(STARTUP_DW) $@,startup 343 $(CPL) $(STARTUP_DW) $@,startup
340 $(OS9ATTR_TEXT) $@,startup 344 $(OS9ATTR_TEXT) $@,startup
341 $(MAKDIR) $@,NITROS9 345 $(MAKDIR) $@,NITROS9
379 $(OS9GEN) $@ -b=$(BOOTFILE_HEADLESS_ARDUINO) -t=$(KERNELFILE_ARDUINO) 383 $(OS9GEN) $@ -b=$(BOOTFILE_HEADLESS_ARDUINO) -t=$(KERNELFILE_ARDUINO)
380 $(MAKDIR) $@,CMDS 384 $(MAKDIR) $@,CMDS
381 $(MAKDIR) $@,SYS 385 $(MAKDIR) $@,SYS
382 $(MAKDIR) $@,DEFS 386 $(MAKDIR) $@,DEFS
383 $(MAKDIR) $@,WWWROOT 387 $(MAKDIR) $@,WWWROOT
384 -os9 dsave -e wwwroot $@,WWWROOT
385 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS 388 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS
386 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 389 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
387 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS 390 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS
388 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 391 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
389 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell 392 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
390 $(CD) sys; $(CPL) $(SYS) ../$@,SYS 393 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
391 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) 394 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
395 $(CD) wwwroot; $(CP) $(WWWROOT) ../$@,WWWROOT
396 $(foreach file, $(WWWROOT), $(OS9ATTR_TEXT) $@,WWWROOT/$(file);)
392 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS 397 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
393 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) 398 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
394 $(CPL) $(STARTUP_DW) $@,startup 399 $(CPL) $(STARTUP_DW) $@,startup
395 $(OS9ATTR_TEXT) $@,startup 400 $(OS9ATTR_TEXT) $@,startup
396 $(MAKDIR) $@,NITROS9 401 $(MAKDIR) $@,NITROS9