comparison level1/makefile @ 1363:53c50c807d55

Major move to new NitrOS-9 project
author boisy
date Fri, 26 Sep 2003 12:26:10 +0000
parents 5a18c9bf3def
children de053e06fdce
comparison
equal deleted inserted replaced
1362:1808357ad13b 1363:53c50c807d55
1 # Makefile for OS-9 Level One 1 include ../rules.mak
2 2
3 include ../Makefile.rules 3 RELEASE = nos96809l1v030200
4
5 RELEASE = os9l1v030105
6 BOOTFILE = BOOTFILES/bootfile_stock 4 BOOTFILE = BOOTFILES/bootfile_stock
7 KERNELFILE = BOOTFILES/kernel_stock 5 KERNELFILE = BOOTFILES/kernel_stock
8 DIRS = CMDS MODULES DEFS SYS BOOTFILES 6 DIRS = cmds modules defs sys bootfiles
9 7
10 CMDS = $(shell $(CD) CMDS; make showcocoobjs) 8 CMDS = $(shell $(CD) cmds; make showcocoobjs)
11 BOOTTRACK = $(shell $(CD) MODULES; make showboottrack) 9 BOOTTRACK = $(shell $(CD) modules; make showboottrack)
12 KERNEL = $(shell $(CD) MODULES; make showkernel) 10 KERNEL = $(shell $(CD) modules; make showkernel)
13 SYSMODS = $(shell $(CD) MODULES; make showsysmods) 11 SYSMODS = $(shell $(CD) modules; make showsysmods)
14 CLOCKS = $(shell $(CD) MODULES; make showclocks) 12 CLOCKS = $(shell $(CD) modules; make showclocks)
15 RBF = $(shell $(CD) MODULES; make showrbf) 13 RBF = $(shell $(CD) modules; make showrbf)
16 SCF = $(shell $(CD) MODULES; make showscf) 14 SCF = $(shell $(CD) modules; make showscf)
17 PIPE = $(shell $(CD) MODULES; make showpipe) 15 PIPE = $(shell $(CD) modules; make showpipe)
18 MODULECMDS = shell del echo format makdir merge os9gen prompt 16 MODULECMDS = shell del echo format makdir merge os9gen prompt
19 17
20 SYS = $(shell $(CD) SYS; make showobjs) 18 SYS = $(shell $(CD) sys; make showobjs)
21 DEFS = $(shell $(CD) DEFS; make showobjs) 19 DEFS = $(shell $(CD) defs; make showobjs)
22 ROOTFILES = startup 20 ROOTFILES = startup
23 21
24 PACKAGENAME = $(RELEASE).zip 22 PACKAGENAME = $(RELEASE).zip
25 DSK1 = $(RELEASE)_ds40_1.dsk 23 DSK1 = $(RELEASE)_ds40_1.dsk
26 DSK2 = $(RELEASE)_ds40_2.dsk 24 DSK2 = $(RELEASE)_ds40_2.dsk
27 25
28 26
29 # Make all components 27 # Make all components
30 all: 28 all:
31 @$(ECHO) "*********************************************" 29 @$(ECHO) "**************************************************"
32 @$(ECHO) "* *" 30 @$(ECHO) "* *"
33 @$(ECHO) "* OS-9 Level One Distribution *" 31 @$(ECHO) "* NitrOS-9/6809 Level 1 Distribution *"
34 @$(ECHO) "* *" 32 @$(ECHO) "* *"
35 @$(ECHO) "*********************************************" 33 @$(ECHO) "**************************************************"
36 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) 34 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
37 35
38 # Clean all components 36 # Clean all components
39 clean: dskclean 37 clean: dskclean
40 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) 38 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
50 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog 48 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog
51 $(ARCHIVE) $@ $^ 49 $(ARCHIVE) $@ $^
52 50
53 $(DSK1): 51 $(DSK1):
54 $(RM) $@ 52 $(RM) $@
55 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One System Disk" 53 $(OS9FORMAT_DS40) $@ -n"NitrOS-9/6809 Level 1 System Disk"
56 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) 54 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE)
57 $(MAKDIR) $@,CMDS 55 $(MAKDIR) $@,CMDS
58 $(MAKDIR) $@,SYS 56 $(MAKDIR) $@,SYS
59 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS 57 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS
60 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 58 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
61 $(CD) SYS; $(CPL) $(SYS) ../$@,SYS 59 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
62 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) 60 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
63 $(MAKDIR) $@,DEFS 61 $(MAKDIR) $@,DEFS
64 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS 62 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
65 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) 63 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
66 $(CPL) $(ROOTFILES) $@,. 64 $(CPL) $(ROOTFILES) $@,.
67 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) 65 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
68 66
69 $(DSK2): 67 $(DSK2):
70 $(RM) $@ 68 $(RM) $@
71 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One Modules Disk" 69 $(OS9FORMAT_DS40) $@ -n"NitrOS-9/6809 Level 1 Modules Disk"
72 $(MAKDIR) $@,LEVEL1 70 $(MAKDIR) $@,6809L1
73 $(MAKDIR) $@,LEVEL1/CMDS 71 $(MAKDIR) $@,6809L1/CMDS
74 $(CD) CMDS; $(CP) $(MODULECMDS) ../$@,LEVEL1/CMDS 72 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,6809L1/CMDS
75 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,LEVEL1/CMDS/$(file);) 73 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,6809L1/CMDS/$(file);)
76 $(MAKDIR) $@,LEVEL1/MODULES 74 $(MAKDIR) $@,6809L1/MODULES
77 $(MAKDIR) $@,LEVEL1/MODULES/BOOTTRACK 75 $(MAKDIR) $@,6809L1/MODULES/BOOTTRACK
78 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,LEVEL1/MODULES/BOOTTRACK 76 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,6809L1/MODULES/BOOTTRACK
79 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/BOOTTRACK/$(file);) 77 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,6809L1/MODULES/BOOTTRACK/$(file);)
80 $(MAKDIR) $@,LEVEL1/MODULES/KERNEL 78 $(MAKDIR) $@,6809L1/MODULES/KERNEL
81 $(CD) MODULES; $(CP) $(KERNEL) ../$@,LEVEL1/MODULES/KERNEL 79 $(CD) modules; $(CP) $(KERNEL) ../$@,6809L1/MODULES/KERNEL
82 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/KERNEL/$(file);) 80 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,6809L1/MODULES/KERNEL/$(file);)
83 $(MAKDIR) $@,LEVEL1/MODULES/SYSMODS 81 $(MAKDIR) $@,6809L1/MODULES/SYSMODS
84 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,LEVEL1/MODULES/SYSMODS 82 $(CD) modules; $(CP) $(SYSMODS) ../$@,6809L1/MODULES/SYSMODS
85 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/SYSMODS/$(file);) 83 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,6809L1/MODULES/SYSMODS/$(file);)
86 $(MAKDIR) $@,LEVEL1/MODULES/CLOCKS 84 $(MAKDIR) $@,6809L1/MODULES/CLOCKS
87 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,LEVEL1/MODULES/CLOCKS 85 $(CD) modules; $(CP) $(CLOCKS) ../$@,6809L1/MODULES/CLOCKS
88 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/CLOCKS/$(file);) 86 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,6809L1/MODULES/CLOCKS/$(file);)
89 $(MAKDIR) $@,LEVEL1/MODULES/RBF 87 $(MAKDIR) $@,6809L1/MODULES/RBF
90 $(CD) MODULES; $(CP) $(RBF) ../$@,LEVEL1/MODULES/RBF 88 $(CD) modules; $(CP) $(RBF) ../$@,6809L1/MODULES/RBF
91 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/RBF/$(file);) 89 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,6809L1/MODULES/RBF/$(file);)
92 $(MAKDIR) $@,LEVEL1/MODULES/SCF 90 $(MAKDIR) $@,6809L1/MODULES/SCF
93 $(CD) MODULES; $(CP) $(SCF) ../$@,LEVEL1/MODULES/SCF 91 $(CD) modules; $(CP) $(SCF) ../$@,6809L1/MODULES/SCF
94 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/SCF/$(file);) 92 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,6809L1/MODULES/SCF/$(file);)
95 $(MAKDIR) $@,LEVEL1/MODULES/PIPE 93 $(MAKDIR) $@,6809L1/MODULES/PIPE
96 $(CD) MODULES; $(CP) $(PIPE) ../$@,LEVEL1/MODULES/PIPE 94 $(CD) modules; $(CP) $(PIPE) ../$@,6809L1/MODULES/PIPE
97 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/PIPE/$(file);) 95 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,6809L1/MODULES/PIPE/$(file);)
98 $(MAKDIR) $@,LEVEL1/BOOTLISTS 96 $(MAKDIR) $@,6809L1/BOOTLISTS
99 $(CD) BOOTLISTS; $(CPL) *.bl ../$@,LEVEL1/BOOTLISTS 97 $(CD) bootlists; $(CPL) *.bl ../$@,6809L1/BOOTLISTS
100 $(MAKDIR) $@,LEVEL1/BOOTSCRIPTS 98 $(MAKDIR) $@,6809L1/BOOTSCRIPTS
101 $(CD) BOOTSCRIPTS; $(CPL) mb* ../$@,LEVEL1/BOOTSCRIPTS 99 $(CD) bootscripts; $(CPL) mb* ../$@,6809L1/BOOTSCRIPTS
102 100