comparison 3rdparty/packages/arcadepak/makefile @ 2874:89cb16c2a83c

makefiles: Factor out OS9COPY command when using foreach()
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 13:27:24 +0100
parents 46c80d4b0de1
children fea5c20fdbfe
comparison
equal deleted inserted replaced
2873:46c80d4b0de1 2874:89cb16c2a83c
96 $(OS9GEN) $@ -b=os9boot -t=kernel_1773 96 $(OS9GEN) $@ -b=os9boot -t=kernel_1773
97 $(RM) os9boot kernel_1773 97 $(RM) os9boot kernel_1773
98 $(MAKDIR) $@,CMDS 98 $(MAKDIR) $@,CMDS
99 $(OS9COPY) shell $@,CMDS 99 $(OS9COPY) shell $@,CMDS
100 $(OS9ATTR_EXEC) $@,CMDS/shell 100 $(OS9ATTR_EXEC) $@,CMDS/shell
101 $(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) 101 $(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
102 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 102 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
103 $(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);) 103 $(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
104 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) 104 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
105 $(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);) 105 $(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
106 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) 106 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
107 $(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);) 107 $(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
108 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) 108 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
109 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 109 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
110 $(MAKDIR) $@,SYS 110 $(MAKDIR) $@,SYS
111 $(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);) 111 $(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
112 $(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);) 112 $(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
113 $(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);) 113 $(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
114 $(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);) 114 $(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
115 $(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);) 115 $(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
116 $(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);) 116 $(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
117 $(CPL) startup $@, 117 $(CPL) startup $@,
118 118
119 $(DISK_80D): all 119 $(DISK_80D): all
120 $(RM) $@ 120 $(RM) $@
121 $(CD) $(6809L2); make 121 $(CD) $(6809L2); make
125 $(OS9GEN) $@ -b=os9boot -t=kernel_1773 125 $(OS9GEN) $@ -b=os9boot -t=kernel_1773
126 $(RM) os9boot kernel_1773 126 $(RM) os9boot kernel_1773
127 $(MAKDIR) $@,CMDS 127 $(MAKDIR) $@,CMDS
128 $(OS9COPY) shell $@,CMDS/shell 128 $(OS9COPY) shell $@,CMDS/shell
129 $(OS9ATTR_EXEC) $@,CMDS/shell 129 $(OS9ATTR_EXEC) $@,CMDS/shell
130 $(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) 130 $(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
131 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 131 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
132 $(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);) 132 $(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
133 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) 133 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
134 $(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);) 134 $(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
135 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) 135 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
136 $(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);) 136 $(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
137 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) 137 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
138 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 138 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
139 $(MAKDIR) $@,SYS 139 $(MAKDIR) $@,SYS
140 $(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);) 140 $(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
141 $(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);) 141 $(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
142 $(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);) 142 $(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
143 $(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);) 143 $(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
144 $(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);) 144 $(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
145 $(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);) 145 $(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
146 $(CPL) startup $@, 146 $(CPL) startup $@,
147 147
148 $(DISK_DW): all 148 $(DISK_DW): all
149 $(RM) $@ 149 $(RM) $@
150 $(CD) $(6809L2); make 150 $(CD) $(6809L2); make
154 $(OS9GEN) $@ -b=os9boot -t=kernel 154 $(OS9GEN) $@ -b=os9boot -t=kernel
155 $(RM) os9boot kernel 155 $(RM) os9boot kernel
156 $(MAKDIR) $@,CMDS 156 $(MAKDIR) $@,CMDS
157 $(OS9COPY) shell $@,CMDS/shell 157 $(OS9COPY) shell $@,CMDS/shell
158 $(OS9ATTR_EXEC) $@,CMDS/shell 158 $(OS9ATTR_EXEC) $@,CMDS/shell
159 $(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) 159 $(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
160 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 160 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
161 $(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);) 161 $(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
162 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) 162 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
163 $(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);) 163 $(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
164 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) 164 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
165 $(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);) 165 $(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
166 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) 166 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
167 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 167 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
168 $(MAKDIR) $@,SYS 168 $(MAKDIR) $@,SYS
169 $(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);) 169 $(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
170 $(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);) 170 $(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
171 $(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);) 171 $(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
172 $(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);) 172 $(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
173 $(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);) 173 $(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
174 $(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);) 174 $(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
175 $(CPL) startup $@, 175 $(CPL) startup $@,
176 176
177 $(DISK_BECKER): all 177 $(DISK_BECKER): all
178 $(RM) $@ 178 $(RM) $@
179 $(CD) $(6809L2); make 179 $(CD) $(6809L2); make
183 $(OS9GEN) $@ -b=os9boot -t=kernel 183 $(OS9GEN) $@ -b=os9boot -t=kernel
184 $(RM) os9boot kernel 184 $(RM) os9boot kernel
185 $(MAKDIR) $@,CMDS 185 $(MAKDIR) $@,CMDS
186 $(OS9COPY) shell $@,CMDS/shell 186 $(OS9COPY) shell $@,CMDS/shell
187 $(OS9ATTR_EXEC) $@,CMDS/shell 187 $(OS9ATTR_EXEC) $@,CMDS/shell
188 $(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) 188 $(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
189 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 189 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
190 $(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);) 190 $(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
191 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) 191 $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
192 $(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);) 192 $(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
193 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) 193 $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
194 $(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);) 194 $(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
195 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) 195 $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
196 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) 196 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
197 $(MAKDIR) $@,SYS 197 $(MAKDIR) $@,SYS
198 $(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);) 198 $(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
199 $(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);) 199 $(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
200 $(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);) 200 $(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
201 $(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);) 201 $(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
202 $(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);) 202 $(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
203 $(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);) 203 $(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
204 $(CPL) startup $@, 204 $(CPL) startup $@,
205 205
206 clean: dskclean 206 clean: dskclean
207 $(RM) shell 207 $(RM) shell
208 $(CD) smash; make clean 208 $(CD) smash; make clean