Mercurial > hg > Members > kono > nitros9-code
view level2/makefile @ 1193:3bea32e43d26
Fixed bad assumption in Makefile
author | boisy |
---|---|
date | Sun, 01 Jun 2003 20:35:30 +0000 |
parents | 0836a89b1eac |
children | 701f6a80163f |
line wrap: on
line source
# Makefile for OS-9 Level Two include ../Makefile.rules RELEASE = os9l2v030102 BOOTFILE = BOOTFILES/bootfile_vdg KERNELFILE = BOOTFILES/kernel_stock DIRS = CMDS MODULES DEFS SYS BOOTFILES CMDS = $(shell $(CD) CMDS; make showobjs) BOOTTRACK = $(shell $(CD) MODULES; make showboottrack) KERNEL = $(shell $(CD) MODULES; make showkernel) SYSMODS = $(shell $(CD) MODULES; make showsysmods) CLOCKS = $(shell $(CD) MODULES; make showclocks) RBF = $(shell $(CD) MODULES; make showrbf) SCF = $(shell $(CD) MODULES; make showscf) PIPE = $(shell $(CD) MODULES; make showpipe) DEFS = $(shell $(CD) DEFS; make showobjs) SYSBIN = $(shell $(CD) SYS; make showbinobjs) SYSTEXT = $(shell $(CD) SYS; make showtextobjs) ROOTFILES = startup SYSGO = cc3go PACKAGENAME = $(RELEASE).zip DSK1 = $(RELEASE)_ds40_1.dsk DSK2 = $(RELEASE)_ds40_2.dsk TESTDSK = test.dsk # Make all components all: @$(ECHO) "*********************************************" @$(ECHO) "* *" @$(ECHO) "* OS-9 Level Two Distribution *" @$(ECHO) "* *" @$(ECHO) "*********************************************" $(foreach dir, $(DIRS), ($(CD) $(dir); make);) # Clean all components clean: dskclean $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) dskclean: -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) dsk: all $(PACKAGENAME) dskcopy: dsk $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog $(ARCHIVE) $@ $^ $(DSK1): -$(RM) $@ $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two System Disk" $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) $(MAKDIR) $@,CMDS $(MAKDIR) $@,SYS $(MAKDIR) $@,DEFS $(CP) MODULES/$(SYSGO) $@, $(OS9ATTR_EXEC) $@,$(SYSGO) $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) $(CD) SYS; $(CP) $(SYSBIN) ../$@,SYS $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) $(CD) SYS; $(CPL) $(SYSTEXT) ../$@,SYS $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) $(CPL) $(ROOTFILES) $@,. $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) $(DSK2): -$(RM) $@ $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two Modules Disk" $(MAKDIR) $@,MODULES $(MAKDIR) $@,MODULES/BOOTTRACK $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,MODULES/BOOTTRACK $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,MODULES/BOOTTRACK/$(file);) $(MAKDIR) $@,MODULES/KERNEL $(CD) MODULES; $(CP) $(KERNEL) ../$@,MODULES/KERNEL $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,MODULES/KERNEL/$(file);) $(MAKDIR) $@,MODULES/SYSMODS $(CD) MODULES; $(CP) $(SYSMODS) ../$@,MODULES/SYSMODS $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,MODULES/SYSMODS/$(file);) $(MAKDIR) $@,MODULES/CLOCKS $(CD) MODULES; $(CP) $(CLOCKS) ../$@,MODULES/CLOCKS $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,MODULES/CLOCKS/$(file);) $(MAKDIR) $@,MODULES/RBF $(CD) MODULES; $(CP) $(RBF) ../$@,MODULES/RBF $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,MODULES/RBF/$(file);) $(MAKDIR) $@,MODULES/SCF $(CD) MODULES; $(CP) $(SCF) ../$@,MODULES/SCF $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,MODULES/SCF/$(file);) $(MAKDIR) $@,MODULES/PIPE $(CD) MODULES; $(CP) $(PIPE) ../$@,MODULES/PIPE $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) $(MAKDIR) $@,BOOTLISTS $(CD) BOOTLISTS; $(CPL) bootlist* ../$@,BOOTLISTS # $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);)