Mercurial > hg > Members > kono > nitros9-code
annotate level1/d64/makefile @ 2909:b71f67993fe0
level2/coco3/makefile: Use OS9FORMAT macro
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 11 Jan 2014 20:56:53 +0100 |
parents | 10e5cbc15f66 |
children | 542da7896526 |
rev | line source |
---|---|
2101 | 1 # |
2 #level1/d64/makefile | |
3 # | |
4 # 2005-04-24, P.Harvey-Smith. | |
5 # Brought into line with CoCo makefile, for generating disk | |
6 # names baded on CPU/Level/Release number. | |
7 # | |
8 # | |
9 # 2005-05-31, P.Harvey-Smith. | |
10 # Added options to specify the step rate of the created | |
11 # floppy devices. | |
12 # | |
13 # 2006-01-08, P.Harvey-Smith. | |
14 # Added option to compile for a Dragon 32 that has been upgraded | |
15 # to 64K, this is almost the same as the 64, except that it lacks | |
16 # a serial port. | |
17 # | |
18 # 2006-01-08, P.Harvey-Smith. | |
19 # Determined experementally the correct step rate for Dragon Data | |
20 # 5.25" drives, which is 12ms, this is over half the time of the | |
21 # value determined by using dmode under Dragon OS9. It seems that | |
22 # the Dragon OS9 dis driver ignored the value set for stp, and always | |
23 # used 12ms !!!! | |
24 # | |
25 # 2006-01-18, P.Harvey-Smith. | |
26 # Updates to support Tano Dragon 64, using RS-DOS controler. | |
27 # | |
28 # 2006-07-06, P.Harvey-Smith. | |
29 # Updated to use new build system, for multiple supported platforms. | |
30 # | |
31 | |
2827
dfb70510fa44
more changes to makefiles and port.mak additions
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2694
diff
changeset
|
32 include port.mak |
2058 | 33 |
2101 | 34 # TERMWIDTH can be either VDG or HR, for 32x16 or 51x24 respectivly |
35 #NOTE must be lower case. | |
36 TERMWIDTH = hr | |
37 | |
38 | |
39 #Default step rate for floppy drives | |
40 #Step can be one of : 0=30ms, 1=20ms, 2=12ms, 3=6ms | |
41 #Note old drives often require 30ms | |
42 #After experimenting with a real Dragon Data 5.25" drive I | |
43 #have determined that the drive will cope with 12ms step. | |
44 #Therefore setting this as the default for 32/64 also. | |
45 STEP = 2 | |
46 | |
47 #Is this machine a real 64, or a 32, upgraded to 64K. | |
48 #Set to 1 for upgraded machine. | |
49 UPGRADED32 = 0 | |
50 | |
2058 | 51 # Level 1 - Specify which shell should be used |
52 #WHICHSHELL = shellplus | |
53 WHICHSHELL = shell_21 | |
54 | |
55 DISTRO = $(CPU)L$(LEVEL) | |
56 DISTRONAME = nos9$(CPU)l$(LEVEL) | |
57 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) | |
2101 | 58 |
59 BOOTFILE_COVDG = bootfiles/bootfile_covdg_ds40 | |
60 BOOTFILE_COHR = bootfiles/bootfile_cohr_ds40 | |
2058 | 61 BOOTFILE_COVDG_DS80 = bootfiles/bootfile_covdg_ds80 |
62 BOOTFILE_COHR_DS80 = bootfiles/bootfile_cohr_ds80 | |
2101 | 63 BOOTFILE_COVDG_SS40 = bootfiles/bootfile_covdg_ss40 |
64 BOOTFILE_COHR_SS40 = bootfiles/bootfile_cohr_ss40 | |
65 | |
66 BOOTFILE_DS40 = bootfiles/bootfile_co$(TERMWIDTH)_ds40 | |
67 BOOTFILE_DS80 = bootfiles/bootfile_co$(TERMWIDTH)_ds80 | |
68 BOOTFILE_SS40 = bootfiles/bootfile_co$(TERMWIDTH)_ss40 | |
69 | |
2058 | 70 KERNELFILE = bootfiles/kernel |
71 DIRS = cmds modules defs sys bootfiles | |
72 | |
2101 | 73 #DIRS = cmds sys |
74 #modules bootfiles | |
75 #DDIRS = modules bootfiles defs | |
2058 | 76 |
2346
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
77 CMDS = $(shell $(CD) cmds; make --no-print-directory showcocoobjs) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
78 CMDS525 = $(shell $(CD) cmds; make --no-print-directory showdragon525objs) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
79 CMDS525_2 = $(shell $(CD) cmds; make --no-print-directory showdragon525objs2) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
80 BOOTTRACK = $(shell $(CD) modules; make --no-print-directory showboottrack) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
81 KERNEL = $(shell $(CD) modules; make --no-print-directory showkernel) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
82 SYSMODS = $(shell $(CD) modules; make --no-print-directory showsysmods) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
83 CLOCKS = $(shell $(CD) modules; make --no-print-directory showclocks) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
84 RBF = $(shell $(CD) modules; make --no-print-directory showrbf) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
85 SCF = $(shell $(CD) modules; make --no-print-directory showscf) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
86 PIPE = $(shell $(CD) modules; make --no-print-directory showpipe) |
2058 | 87 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode |
88 | |
2346
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
89 SYS = $(shell $(CD) sys; make --no-print-directory showobjs) |
fb1c0a45f28e
Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents:
2217
diff
changeset
|
90 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs) |
2058 | 91 ROOTFILES = startup |
92 | |
93 PACKAGENAME = $(DISTROVER).zip | |
94 DSK360K_1 = $(DISTROVER)_40d_1.dsk | |
95 LDSK360K_1 = $(DISTRONAME)_40d_1.dsk | |
96 DSK360K_2 = $(DISTROVER)_40d_2.dsk | |
97 LDSK360K_2 = $(DISTRONAME)_40d_2.dsk | |
98 DSK720K = $(DISTROVER)_80d.dsk | |
99 LDSK720K = $(DISTRONAME)_80d.dsk | |
2101 | 100 #These are for the original SS40 Dragon drives, which still seem to be the most comon :( |
101 DSK180K_1 = $(DISTROVER)_40s_1.dsk | |
102 DSK180K_2 = $(DISTROVER)_40s_2.dsk | |
2058 | 103 |
2217 | 104 DSKS = $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(DSK180K_1) $(DSK180K_2) |
105 LDSKS = $(LDSK360K_1) $(LDSK360K_2) $(LDSK720K) $(LDSK180K_1) $(LDSK180K_2) | |
106 | |
2058 | 107 # Make all components |
108 all: | |
2904
62c91ac49d72
Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
109 @$(ECHO) "************************************************************" |
62c91ac49d72
Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
110 @$(ECHO) "*" |
62c91ac49d72
Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
111 @$(ECHO) "* NitrOS-9/$(CPU) Level $(LEVEL) $(MACHINE) ($(PORT))" |
62c91ac49d72
Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
112 @$(ECHO) "*" |
62c91ac49d72
Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
113 @$(ECHO) "************************************************************" |
2101 | 114 $(foreach dir, $(DIRS), ($(CD) $(dir); make STEP=$(STEP) UPGRADED32=$(UPGRADED32));) |
2058 | 115 |
116 # Clean all components | |
117 clean: dskclean | |
118 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) | |
2101 | 119 |
2058 | 120 dskclean: |
2835
c1892376e7a7
Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents:
2827
diff
changeset
|
121 $(RM) $(PACKAGENAME) $(DSKS) $(LDSKS) |
2058 | 122 |
123 dsk: all $(PACKAGENAME) | |
124 | |
125 dskcopy: dsk | |
2217 | 126 $(CP) $(DSKS) $(DSKDIR) |
2058 | 127 |
128 scp: dsk | |
129 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html | |
130 | |
2217 | 131 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog |
2058 | 132 $(ARCHIVE) $@ $^ |
133 | |
2101 | 134 #Dragon 64/32+ |
135 | |
2058 | 136 $(DSK360K_1): |
137 $(RM) $@ | |
2101 | 138 $(OS9FORMAT_DS40) -q -dr $@ -n"NitrOS-9/6809 Dragon Level 1 Disk 1" |
139 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS40) -t=$(KERNELFILE) | |
2058 | 140 $(MAKDIR) $@,CMDS |
141 $(MAKDIR) $@,SYS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
142 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
143 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2058 | 144 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
145 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
146 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
2058 | 147 $(MAKDIR) $@,DEFS |
148 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
149 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) |
2058 | 150 $(CPL) $(ROOTFILES) $@,. |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
151 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) |
2058 | 152 $(RM) $(LDSK360K_1) |
153 $(SOFTLINK) $@ $(LDSK360K_1) | |
154 | |
155 $(DSK360K_2): | |
156 $(RM) $@ | |
2101 | 157 $(OS9FORMAT_DS40) -q -dr $@ -n"NitrOS-9/6809 Dragon Level 1 Disk 2" |
2058 | 158 $(MAKDIR) $@,NITROS9 |
159 $(MAKDIR) $@,NITROS9/6809L1 | |
160 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
161 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
162 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file)) |
2058 | 163 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell |
164 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
165 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
166 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
167 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file)) |
2058 | 168 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
169 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
170 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file)) |
2058 | 171 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
172 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
173 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file)) |
2058 | 174 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
175 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
176 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file)) |
2058 | 177 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
178 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
179 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file)) |
2058 | 180 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
181 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
182 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file)) |
2058 | 183 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
184 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
185 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file)) |
2058 | 186 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS |
187 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
188 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
189 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
190 $(RM) $(LDSK360K_2) | |
191 $(SOFTLINK) $@ $(LDSK360K_2) | |
192 | |
193 $(DSK720K): | |
194 $(RM) $@ | |
2101 | 195 $(OS9FORMAT_DS80) -q -dr -c2 $@ -n"NitrOS-9/6809 Dragon Level 1" |
196 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) | |
2058 | 197 $(MAKDIR) $@,CMDS |
198 $(MAKDIR) $@,SYS | |
199 $(MAKDIR) $@,DEFS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
200 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
201 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2058 | 202 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
203 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
204 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
2058 | 205 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
206 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) |
2058 | 207 $(CPL) $(ROOTFILES) $@,. |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
208 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) |
2058 | 209 $(MAKDIR) $@,NITROS9 |
210 $(MAKDIR) $@,NITROS9/6809L1 | |
211 $(MAKDIR) $@,NITROS9/6809L1/CMDS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
212 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
213 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file)) |
2058 | 214 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell |
215 $(MAKDIR) $@,NITROS9/6809L1/MODULES | |
216 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
217 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
218 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file)) |
2058 | 219 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
220 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
221 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file)) |
2058 | 222 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
223 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
224 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file)) |
2058 | 225 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
226 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
227 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file)) |
2058 | 228 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
229 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
230 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file)) |
2058 | 231 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
232 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
233 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file)) |
2058 | 234 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
235 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
236 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file)) |
2058 | 237 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS |
238 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | |
239 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | |
240 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | |
241 $(RM) $(LDSK720K) | |
242 $(SOFTLINK) $@ $(LDSK720K) | |
243 | |
244 | |
2101 | 245 $(DSK180K_1): |
246 $(RM) $@ | |
247 $(OS9FORMAT_SS40) -e -dr -q $@ -n"NitrOS-9/6809/Dragon Level 1 Disk 1" | |
248 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS40) -t=$(KERNELFILE) | |
249 $(MAKDIR) $@,CMDS | |
250 $(MAKDIR) $@,SYS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
251 $(CD) cmds; $(OS9COPY) $(CMDS525) ../$@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
252 $(OS9ATTR_EXEC) $(foreach file,$(CMDS525),$@,CMDS/$(file)) |
2101 | 253 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
254 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
255 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
2101 | 256 $(MAKDIR) $@,DEFS |
257 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
258 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) |
2101 | 259 $(CPL) $(ROOTFILES) $@,. |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
260 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) |
2101 | 261 |
262 $(DSK180K_2): | |
263 $(RM) $@ | |
264 $(OS9FORMAT_SS40) -e -dr -q $@ -n"NitrOS-9/6809/Dragon Level 1 Disk 2" | |
265 $(MAKDIR) $@,CMDS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
266 $(CD) cmds; $(OS9COPY) $(CMDS525_2) ../$@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
267 $(OS9ATTR_EXEC) $(foreach file,$(CMDS525_2),$@,CMDS/$(file)) |
2101 | 268 |
2216 | 269 info: |
270 @$(ECHO) "*** NitrOS-9/6809 Level 1 for the Dragon 64 ***" | |
2217 | 271 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |