Mercurial > hg > Members > kono > nitros9-code
annotate level1/coco/makefile @ 2105:d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
author | boisy |
---|---|
date | Fri, 29 Sep 2006 16:16:25 +0000 |
parents | 392de115605e |
children | 097a8f4f122e |
rev | line source |
---|---|
2039 | 1 PORT = coco |
2034 | 2 include $(NITROS9DIR)/rules.mak |
3 | |
4 CPU = 6809 | |
5 LEVEL = 1 | |
6 | |
7 # Level 1 - Specify which shell should be used | |
8 #WHICHSHELL = shellplus | |
9 WHICHSHELL = shell_21 | |
10 | |
11 DISTRO = $(CPU)L$(LEVEL) | |
12 DISTRONAME = nos9$(CPU)l$(LEVEL) | |
2039 | 13 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) |
2034 | 14 BOOTFILE_COVDG = bootfiles/bootfile_covdg |
15 BOOTFILE_COHR = bootfiles/bootfile_cohr | |
16 BOOTFILE_COVDG_DS80 = bootfiles/bootfile_covdg_ds80 | |
17 BOOTFILE_COHR_DS80 = bootfiles/bootfile_cohr_ds80 | |
18 KERNELFILE = bootfiles/kernel_1773 | |
19 DIRS = cmds modules defs sys bootfiles | |
20 | |
21 | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
22 CMDS = $(shell $(CD) cmds; make showobjs) |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
23 CMDS_D2 = $(shell $(CD) cmds; make showobjs_d2) |
2034 | 24 BOOTTRACK = $(shell $(CD) modules; make showboottrack) |
25 KERNEL = $(shell $(CD) modules; make showkernel) | |
26 SYSMODS = $(shell $(CD) modules; make showsysmods) | |
27 CLOCKS = $(shell $(CD) modules; make showclocks) | |
28 RBF = $(shell $(CD) modules; make showrbf) | |
29 SCF = $(shell $(CD) modules; make showscf) | |
30 PIPE = $(shell $(CD) modules; make showpipe) | |
31 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode | |
32 | |
33 SYS = $(shell $(CD) sys; make showobjs) | |
34 DEFS = $(shell $(CD) defs; make showobjs) | |
35 ROOTFILES = startup | |
36 | |
37 PACKAGENAME = $(DISTROVER).zip | |
38 DSK360K_1 = $(DISTROVER)_40d_1.dsk | |
39 LDSK360K_1 = $(DISTRONAME)_40d_1.dsk | |
40 DSK360K_2 = $(DISTROVER)_40d_2.dsk | |
41 LDSK360K_2 = $(DISTRONAME)_40d_2.dsk | |
42 DSK720K = $(DISTROVER)_80d.dsk | |
43 LDSK720K = $(DISTRONAME)_80d.dsk | |
44 | |
45 | |
46 # Make all components | |
47 all: | |
48 @$(ECHO) "**************************************************" | |
49 @$(ECHO) "* *" | |
2041 | 50 @$(ECHO) "* NitrOS-9/6809 Level 1 CoCo Port *" |
2034 | 51 @$(ECHO) "* *" |
52 @$(ECHO) "**************************************************" | |
53 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) | |
54 | |
55 # Clean all components | |
56 clean: dskclean | |
57 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) | |
58 | |
59 dskclean: | |
60 -$(RM) $(PACKAGENAME) $(DSK360K_1) $(LDSK360K_1) \ | |
61 $(DSK360K_2) $(LDSK360K_2) $(DSK720K) $(LDSK720K) | |
62 | |
63 | |
64 dsk: all $(PACKAGENAME) | |
65 | |
66 dskcopy: dsk | |
67 $(CP) $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(PACKAGENAME) $(DSKDIR) | |
68 | |
69 scp: dsk | |
70 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
71 | |
72 $(PACKAGENAME): $(DSK360K_1) $(DSK360K_2) $(DSK720K) ReadMe ChangeLog | |
73 $(ARCHIVE) $@ $^ | |
74 | |
75 $(DSK360K_1): | |
76 $(RM) $@ | |
77 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/6809 Level 1 Disk 1" | |
78 $(OS9GEN) $@ -b=$(BOOTFILE_COVDG) -t=$(KERNELFILE) | |
79 $(MAKDIR) $@,CMDS | |
80 $(MAKDIR) $@,SYS | |
81 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
82 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
83 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | |
84 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
85 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
86 $(MAKDIR) $@,DEFS | |
87 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
88 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
89 $(CPL) $(ROOTFILES) $@,. | |
90 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
91 $(RM) $(LDSK360K_1) | |
92 $(SOFTLINK) $@ $(LDSK360K_1) | |
93 | |
94 $(DSK360K_2): | |
95 $(RM) $@ | |
96 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/6809 Level 1 Disk 2" | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
97 $(MAKDIR) $@,CMDS |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
98 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
99 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
2034 | 100 $(MAKDIR) $@,NITROS9 |
101 $(MAKDIR) $@,NITROS9/6809L1 | |
102 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
103 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
104 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
105 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell | |
106 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
107 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
108 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
109 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
110 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
111 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
112 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
113 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
114 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
115 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
116 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
117 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
118 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
119 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
120 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
121 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
122 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
123 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
124 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
125 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
126 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
127 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
128 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
129 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
130 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
131 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
132 $(RM) $(LDSK360K_2) | |
133 $(SOFTLINK) $@ $(LDSK360K_2) | |
134 | |
135 $(DSK720K): | |
136 $(RM) $@ | |
137 $(OS9FORMAT_DS80) -q $@ -n"NitrOS-9/6809 Level 1" | |
138 $(OS9GEN) $@ -b=$(BOOTFILE_COVDG_DS80) -t=$(KERNELFILE) | |
139 $(MAKDIR) $@,CMDS | |
140 $(MAKDIR) $@,SYS | |
141 $(MAKDIR) $@,DEFS | |
142 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
143 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
144 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2041
diff
changeset
|
145 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
2034 | 146 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
147 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
148 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
149 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
150 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
151 $(CPL) $(ROOTFILES) $@,. | |
152 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
153 $(MAKDIR) $@,NITROS9 | |
154 $(MAKDIR) $@,NITROS9/6809L1 | |
155 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
156 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | |
157 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | |
158 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell | |
159 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
160 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
161 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | |
162 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | |
163 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | |
164 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | |
165 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | |
166 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | |
167 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | |
168 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | |
169 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | |
170 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | |
171 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | |
172 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | |
173 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | |
174 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | |
175 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | |
176 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | |
177 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | |
178 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | |
179 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | |
180 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | |
181 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | |
182 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
183 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
184 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
185 $(RM) $(LDSK720K) | |
186 $(SOFTLINK) $@ $(LDSK720K) | |
187 | |
188 |