Mercurial > hg > Members > kono > nitros9-code
annotate level1/makefile @ 1730:a28e465269b9
Files from Phill
author | boisy |
---|---|
date | Wed, 17 Nov 2004 21:20:08 +0000 |
parents | 2fcdd7b93b50 |
children | fd288a57f6ab |
rev | line source |
---|---|
1363 | 1 include ../rules.mak |
1166 | 2 |
1730 | 3 RELEASE = nos96809l1v030205 |
1561 | 4 BOOTFILE = bootfiles/bootfile |
5 BOOTFILE_DS80 = bootfiles/bootfile_ds80 | |
6 KERNELFILE = bootfiles/kernel_1773 | |
1363 | 7 DIRS = cmds modules defs sys bootfiles |
454 | 8 |
1510 | 9 # Specify which shell should be used |
1536 | 10 #WHICHSHELL = shellplus |
11 WHICHSHELL = shell_21 | |
1510 | 12 |
1363 | 13 CMDS = $(shell $(CD) cmds; make showcocoobjs) |
14 BOOTTRACK = $(shell $(CD) modules; make showboottrack) | |
15 KERNEL = $(shell $(CD) modules; make showkernel) | |
16 SYSMODS = $(shell $(CD) modules; make showsysmods) | |
17 CLOCKS = $(shell $(CD) modules; make showclocks) | |
18 RBF = $(shell $(CD) modules; make showrbf) | |
19 SCF = $(shell $(CD) modules; make showscf) | |
20 PIPE = $(shell $(CD) modules; make showpipe) | |
1695 | 21 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode |
1186 | 22 |
1363 | 23 SYS = $(shell $(CD) sys; make showobjs) |
24 DEFS = $(shell $(CD) defs; make showobjs) | |
454 | 25 ROOTFILES = startup |
26 | |
27 PACKAGENAME = $(RELEASE).zip | |
1445 | 28 DSK360K_1 = $(RELEASE)_ds40_1.dsk |
29 DSK360K_2 = $(RELEASE)_ds40_2.dsk | |
30 DSK720K = $(RELEASE)_ds80.dsk | |
323 | 31 |
1186 | 32 |
0 | 33 # Make all components |
34 all: | |
1363 | 35 @$(ECHO) "**************************************************" |
36 @$(ECHO) "* *" | |
37 @$(ECHO) "* NitrOS-9/6809 Level 1 Distribution *" | |
38 @$(ECHO) "* *" | |
39 @$(ECHO) "**************************************************" | |
1132 | 40 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 41 |
42 # Clean all components | |
454 | 43 clean: dskclean |
1132 | 44 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
454 | 45 |
46 dskclean: | |
1445 | 47 -$(RM) $(PACKAGENAME) $(DSK360K_1) $(DSK360K_2) $(DSK720K) |
454 | 48 |
49 dsk: all $(PACKAGENAME) | |
50 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
51 dskcopy: dsk |
1445 | 52 $(CP) $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(PACKAGENAME) $(DSKDIR) |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
53 |
1696 | 54 scp: dsk |
55 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
56 | |
1446 | 57 $(PACKAGENAME): $(DSK360K_1) $(DSK360K_2) $(DSK720K) ReadMe ChangeLog |
1132 | 58 $(ARCHIVE) $@ $^ |
710 | 59 |
1445 | 60 $(DSK360K_1): |
1122 | 61 $(RM) $@ |
1419 | 62 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/6809 Level 1 Disk 1" |
1186 | 63 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1122 | 64 $(MAKDIR) $@,CMDS |
65 $(MAKDIR) $@,SYS | |
1363 | 66 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS |
1126 | 67 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
1510 | 68 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
1363 | 69 $(CD) sys; $(CPL) $(SYS) ../$@,SYS |
1126 | 70 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1122 | 71 $(MAKDIR) $@,DEFS |
1363 | 72 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
1126 | 73 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) |
1122 | 74 $(CPL) $(ROOTFILES) $@,. |
1126 | 75 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) |
710 | 76 |
1445 | 77 $(DSK360K_2): |
1122 | 78 $(RM) $@ |
1419 | 79 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/6809 Level 1 Disk 2" |
1369 | 80 $(MAKDIR) $@,NITROS9 |
81 $(MAKDIR) $@,NITROS9/6809L1 | |
82 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
83 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
84 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
1561 | 85 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell |
1369 | 86 $(MAKDIR) $@,NITROS9/6809L1/MODULES |
87 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
88 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
89 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
90 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
91 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
92 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
93 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
94 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
95 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
96 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
97 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
98 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
99 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
100 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
101 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
102 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
103 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
104 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
105 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
106 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
107 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
108 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
109 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
1390 | 110 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS |
111 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
1026 | 112 |
1445 | 113 $(DSK720K): |
114 $(RM) $@ | |
115 $(OS9FORMAT_DS80) -q $@ -n"NitrOS-9/6809 Level 1" | |
1446 | 116 $(OS9GEN) $@ -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) |
1445 | 117 $(MAKDIR) $@,CMDS |
118 $(MAKDIR) $@,SYS | |
1545 | 119 $(MAKDIR) $@,DEFS |
1445 | 120 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS |
121 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
1510 | 122 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
1445 | 123 $(CD) sys; $(CPL) $(SYS) ../$@,SYS |
124 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
125 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
126 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
127 $(CPL) $(ROOTFILES) $@,. | |
128 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
129 $(MAKDIR) $@,NITROS9 | |
130 $(MAKDIR) $@,NITROS9/6809L1 | |
131 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
132 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
133 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
1644
d6e7953964e0
makefile now renames shell_21 to shell in NITROS9/6809l1/CMDS
boisy
parents:
1587
diff
changeset
|
134 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell |
1445 | 135 $(MAKDIR) $@,NITROS9/6809L1/MODULES |
136 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
137 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
138 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
139 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
140 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
141 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
142 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
143 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
144 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
145 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
146 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
147 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
148 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
149 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
150 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
151 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
152 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
153 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
154 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
155 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
156 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
157 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
158 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
159 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
160 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
161 | |
162 |