Index: apps/installer-ipodclassic/Makefile |
— | — | @@ -1,6 +1,7 @@ |
2 | 2 | NAME := installer-ipodclassic
|
3 | 3 | STACKSIZE := 4096
|
4 | 4 | COMPRESS := false
|
| 5 | +AUTOBUILD_FLASHFILES ?= true
|
5 | 6 |
|
6 | 7 | EMCOREDIR ?= ../../emcore/trunk/
|
7 | 8 | BOOTMENUDIR ?= ../bootmenu-ipodclassic/
|
— | — | @@ -84,10 +85,10 @@ |
85 | 86 | @$(ELF2ECA) -s $(STACKSIZE) -o $@ $^
|
86 | 87 | endif
|
87 | 88 |
|
| 89 | +ifeq ($(AUTOBUILD_FLASHFILES),true)
|
| 90 | +build/resources.o: $(FLASHFILES)
|
| 91 | +else
|
88 | 92 | build/resources.o: flashfiles.built
|
89 | | -
|
90 | | -ifeq ($(AUTOBUILD_FLASHFILES),true)
|
91 | | -flashfiles.built: flashfiles
|
92 | 93 | endif
|
93 | 94 |
|
94 | 95 | build/$(NAME).elf: ls.x $(OBJ)
|
— | — | @@ -160,38 +161,44 @@ |
161 | 162 | @touch flashfiles.built
|
162 | 163 |
|
163 | 164 | $(LIBBOOTDIR)/build/boot.emcorelib: libboot
|
| 165 | + @$(MAKE) -C $(LIBBOOTDIR)
|
164 | 166 |
|
165 | | -flashfiles/boot.emcorelib: $(LIBBOOTDIR)/build/boot.emcorelib libboot
|
| 167 | +flashfiles/boot.emcorelib: $(LIBBOOTDIR)/build/boot.emcorelib
|
166 | 168 | @echo [CP] $@
|
167 | 169 | @cp $< $@
|
168 | 170 |
|
169 | 171 | $(LIBPNGDIR)/build/png.emcorelib: libpng
|
| 172 | + @$(MAKE) -C $(LIBPNGDIR)
|
170 | 173 |
|
171 | | -flashfiles/png.emcorelib: $(LIBPNGDIR)/build/png.emcorelib libpng
|
| 174 | +flashfiles/png.emcorelib: $(LIBPNGDIR)/build/png.emcorelib
|
172 | 175 | @echo [CP] $@
|
173 | 176 | @cp $< $@
|
174 | 177 |
|
175 | 178 | $(LIBUIDIR)/build/ui.emcorelib: libui
|
| 179 | + @$(MAKE) -C $(LIBUIDIR)
|
176 | 180 |
|
177 | | -flashfiles/ui.emcorelib: $(LIBUIDIR)/build/ui.emcorelib libui
|
| 181 | +flashfiles/ui.emcorelib: $(LIBUIDIR)/build/ui.emcorelib
|
178 | 182 | @echo [CP] $@
|
179 | 183 | @cp $< $@
|
180 | 184 |
|
181 | 185 | $(LIBMKFAT32DIR)/build/mkfat32.emcorelib: libmkfat32
|
| 186 | + @$(MAKE) -C $(LIBMKFAT32DIR)
|
182 | 187 |
|
183 | | -flashfiles/mkfat32.emcorelib: $(LIBMKFAT32DIR)/build/mkfat32.emcorelib libmkfat32
|
| 188 | +flashfiles/mkfat32.emcorelib: $(LIBMKFAT32DIR)/build/mkfat32.emcorelib
|
184 | 189 | @echo [CP] $@
|
185 | 190 | @cp $< $@
|
186 | 191 |
|
187 | | -$(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl: umsboot
|
| 192 | +$(UMSBOOTDIR)/build/ipodclassic/umsboot.ucl: umsboot
|
| 193 | + @$(MAKE) -C $(UMSBOOTDIR) ipodclassic
|
188 | 194 |
|
189 | | -flashfiles/umsboot-ipodclassic.ucl: $(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl umsboot
|
| 195 | +flashfiles/umsboot-ipodclassic.ucl: $(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl
|
190 | 196 | @echo [CP] $@
|
191 | 197 | @cp $< $@
|
192 | 198 |
|
193 | 199 | $(BOOTMENUDIR)/build/bootmenu-ipodclassic.emcoreapp: bootmenu-ipodclassic
|
| 200 | + @$(MAKE) -C $(BOOTMENUDIR)
|
194 | 201 |
|
195 | | -flashfiles/bootmenu-ipodclassic.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodclassic.emcoreapp bootmenu-ipodclassic
|
| 202 | +flashfiles/bootmenu-ipodclassic.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodclassic.emcoreapp
|
196 | 203 | @echo [CP] $@
|
197 | 204 | @cp $< $@
|
198 | 205 |
|
— | — | @@ -208,8 +215,9 @@ |
209 | 216 | @cp $< $@
|
210 | 217 |
|
211 | 218 | $(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin: emcoreldr-ipodclassic
|
| 219 | + @$(MAKE) -C $(EMCOREDIR)/loader/ipodclassic
|
212 | 220 |
|
213 | | -flashfiles/emcoreldr-ipodclassic.bin: $(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin emcoreldr-ipodclassic
|
| 221 | +flashfiles/emcoreldr-ipodclassic.bin: $(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin
|
214 | 222 | @echo [CP] $@
|
215 | 223 | @cp $< $@
|
216 | 224 |
|
— | — | @@ -218,37 +226,12 @@ |
219 | 227 | @$(UCLPACK) $< $@
|
220 | 228 |
|
221 | 229 | $(EMCOREDIR)/build/ipodclassic/emcore.bin: emcore
|
| 230 | + @$(MAKE) -C $(EMCOREDIR) ipodclassic
|
222 | 231 |
|
223 | | -flashfiles/emcore-ipodclassic.bin: $(EMCOREDIR)/build/ipodclassic/emcore.bin emcore
|
| 232 | +flashfiles/emcore-ipodclassic.bin: $(EMCOREDIR)/build/ipodclassic/emcore.bin
|
224 | 233 | @echo [EMBCFG] $@
|
225 | 234 | @$(EMCOREBOOTCFG) $< $@ "(3, '/.boot/init.emcoreapp', None, (2, 'bootmenu', None, None))"
|
226 | 235 |
|
227 | | -emcore:
|
228 | | - @$(MAKE) -C $(EMCOREDIR) ipodclassic
|
229 | | -
|
230 | | -emcoreldr-ipodclassic:
|
231 | | - @$(MAKE) -C $(EMCOREDIR)/loader/ipodclassic
|
232 | | -
|
233 | | -bootmenu-ipodclassic:
|
234 | | - @$(MAKE) -C $(BOOTMENUDIR)
|
235 | | -
|
236 | | -libboot:
|
237 | | - @$(MAKE) -C $(LIBBOOTDIR)
|
238 | | -
|
239 | | -libpng:
|
240 | | - @$(MAKE) -C $(LIBPNGDIR)
|
241 | | -
|
242 | | -libui:
|
243 | | - @$(MAKE) -C $(LIBUIDIR)
|
244 | | -
|
245 | | -libmkfat32:
|
246 | | - @$(MAKE) -C $(LIBMKFAT32DIR)
|
247 | | -
|
248 | | -$(UMSBOOTDIR)/build/ipodclassic/umsboot.bin: umsboot
|
249 | | -
|
250 | | -umsboot:
|
251 | | - @$(MAKE) -C $(UMSBOOTDIR) ipodclassic
|
252 | | -
|
253 | 236 | clean:
|
254 | 237 | @rm -rf build
|
255 | 238 |
|
Index: apps/installer-ipodnano2g/Makefile |
— | — | @@ -1,6 +1,7 @@ |
2 | 2 | NAME := installer-ipodnano2g
|
3 | 3 | STACKSIZE := 4096
|
4 | 4 | COMPRESS := false
|
| 5 | +AUTOBUILD_FLASHFILES ?= true
|
5 | 6 | BASENAME ?= $(NAME)
|
6 | 7 | FATNAME ?= INSTAL~1BOO
|
7 | 8 |
|
— | — | @@ -100,10 +101,10 @@ |
101 | 102 | @$(ELF2ECA) -s $(STACKSIZE) -o $@ $^
|
102 | 103 | endif
|
103 | 104 |
|
| 105 | +ifeq ($(AUTOBUILD_FLASHFILES),true)
|
| 106 | +build/resources.o: $(FLASHFILES)
|
| 107 | +else
|
104 | 108 | build/resources.o: flashfiles.built
|
105 | | -
|
106 | | -ifeq ($(AUTOBUILD_FLASHFILES),true)
|
107 | | -flashfiles.built: flashfiles
|
108 | 109 | endif
|
109 | 110 |
|
110 | 111 | build/$(NAME).elf: ls.x $(OBJ) $(LIBS)
|
— | — | @@ -163,8 +164,6 @@ |
164 | 165 | @$(CC) -c $(CFLAGS) -o $@ $<
|
165 | 166 |
|
166 | 167 | build/libucl.a: libucl
|
167 | | -
|
168 | | -libucl:
|
169 | 168 | @$(MAKE) -C libucl CFLAGS="$(CFLAGS) -I../$(EMCOREDIR)/export"
|
170 | 169 |
|
171 | 170 | build/version.h: version.h .svn/entries
|
— | — | @@ -181,44 +180,51 @@ |
182 | 181 | @touch flashfiles.built
|
183 | 182 |
|
184 | 183 | $(LIBBOOTDIR)/build/boot.emcorelib: libboot
|
| 184 | + @$(MAKE) -C $(LIBBOOTDIR)
|
185 | 185 |
|
186 | | -flashfiles/boot.emcorelib: $(LIBBOOTDIR)/build/boot.emcorelib libboot
|
| 186 | +flashfiles/boot.emcorelib: $(LIBBOOTDIR)/build/boot.emcorelib
|
187 | 187 | @echo [CP] $@
|
188 | 188 | @cp $< $@
|
189 | 189 |
|
190 | 190 | $(LIBPNGDIR)/build/png.emcorelib: libpng
|
| 191 | + @$(MAKE) -C $(LIBPNGDIR)
|
191 | 192 |
|
192 | | -flashfiles/png.emcorelib: $(LIBPNGDIR)/build/png.emcorelib libpng
|
| 193 | +flashfiles/png.emcorelib: $(LIBPNGDIR)/build/png.emcorelib
|
193 | 194 | @echo [CP] $@
|
194 | 195 | @cp $< $@
|
195 | 196 |
|
196 | 197 | $(LIBUIDIR)/build/ui.emcorelib: libui
|
| 198 | + @$(MAKE) -C $(LIBUIDIR)
|
197 | 199 |
|
198 | | -flashfiles/ui.emcorelib: $(LIBUIDIR)/build/ui.emcorelib libui
|
| 200 | +flashfiles/ui.emcorelib: $(LIBUIDIR)/build/ui.emcorelib
|
199 | 201 | @echo [CP] $@
|
200 | 202 | @cp $< $@
|
201 | 203 |
|
202 | 204 | $(LIBMKFAT32DIR)/build/mkfat32.emcorelib: libmkfat32
|
| 205 | + @$(MAKE) -C $(LIBMKFAT32DIR)
|
203 | 206 |
|
204 | | -flashfiles/mkfat32.emcorelib: $(LIBMKFAT32DIR)/build/mkfat32.emcorelib libmkfat32
|
| 207 | +flashfiles/mkfat32.emcorelib: $(LIBMKFAT32DIR)/build/mkfat32.emcorelib
|
205 | 208 | @echo [CP] $@
|
206 | 209 | @cp $< $@
|
207 | 210 |
|
208 | 211 | $(UMSBOOTDIR)/build/ipodnano2g/umsboot-ipodnano2g.ucl: umsboot
|
| 212 | + @$(MAKE) -C $(UMSBOOTDIR) ipodnano2g
|
209 | 213 |
|
210 | | -flashfiles/umsboot-ipodnano2g.ucl: $(UMSBOOTDIR)/build/ipodnano2g/umsboot-ipodnano2g.ucl umsboot
|
| 214 | +flashfiles/umsboot-ipodnano2g.ucl: $(UMSBOOTDIR)/build/ipodnano2g/umsboot-ipodnano2g.ucl
|
211 | 215 | @echo [CP] $@
|
212 | 216 | @cp $< $@
|
213 | 217 |
|
214 | 218 | $(UNINSTDIR)/build/uninstaller-ipodnano2g.emcoreapp: uninstaller-ipodnano2g
|
| 219 | + @$(MAKE) -C $(UNINSTDIR)
|
215 | 220 |
|
216 | | -flashfiles/uninstaller-ipodnano2g.emcoreapp: $(UNINSTDIR)/build/uninstaller-ipodnano2g.emcoreapp uninstaller-ipodnano2g
|
| 221 | +flashfiles/uninstaller-ipodnano2g.emcoreapp: $(UNINSTDIR)/build/uninstaller-ipodnano2g.emcoreapp
|
217 | 222 | @echo [CP] $@
|
218 | 223 | @cp $< $@
|
219 | 224 |
|
220 | 225 | $(BOOTMENUDIR)/build/bootmenu-ipodnano2g.emcoreapp: bootmenu-ipodnano2g
|
| 226 | + @$(MAKE) -C $(BOOTMENUDIR)
|
221 | 227 |
|
222 | | -flashfiles/bootmenu-ipodnano2g.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodnano2g.emcoreapp bootmenu-ipodnano2g
|
| 228 | +flashfiles/bootmenu-ipodnano2g.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodnano2g.emcoreapp
|
223 | 229 | @echo [CP] $@
|
224 | 230 | @cp $< $@
|
225 | 231 |
|
— | — | @@ -239,8 +245,9 @@ |
240 | 246 | @cp $< $@
|
241 | 247 |
|
242 | 248 | $(EMCOREDIR)/loader/ipodnano2g/build/emcoreldr-ipodnano2g.dfu: emcoreldr-ipodnano2g
|
| 249 | + @$(MAKE) -C $(EMCOREDIR)/loader/ipodnano2g
|
243 | 250 |
|
244 | | -flashfiles/emcoreldr-ipodnano2g.dfu: $(EMCOREDIR)/loader/ipodnano2g/build/emcoreldr-ipodnano2g.dfu emcoreldr-ipodnano2g
|
| 251 | +flashfiles/emcoreldr-ipodnano2g.dfu: $(EMCOREDIR)/loader/ipodnano2g/build/emcoreldr-ipodnano2g.dfu
|
245 | 252 | @echo [CP] $@
|
246 | 253 | @cp $< $@
|
247 | 254 |
|
— | — | @@ -249,38 +256,12 @@ |
250 | 257 | @$(UCLPACK) $< $@
|
251 | 258 |
|
252 | 259 | $(EMCOREDIR)/build/ipodnano2g/emcore.bin: emcore
|
| 260 | + @$(MAKE) -C $(EMCOREDIR) ipodnano2g
|
253 | 261 |
|
254 | | -flashfiles/emcore-ipodnano2g.bin: $(EMCOREDIR)/build/ipodnano2g/emcore.bin emcore
|
| 262 | +flashfiles/emcore-ipodnano2g.bin: $(EMCOREDIR)/build/ipodnano2g/emcore.bin
|
255 | 263 | @echo [EMBCFG] $@
|
256 | 264 | @$(EMCOREBOOTCFG) $< $@ "(3, '/.boot/init.emcoreapp', None, (2, 'bootmenu', None, None))"
|
257 | 265 |
|
258 | | -emcore:
|
259 | | - @$(MAKE) -C $(EMCOREDIR) ipodnano2g
|
260 | | -
|
261 | | -emcoreldr-ipodnano2g:
|
262 | | - @$(MAKE) -C $(EMCOREDIR)/loader/ipodnano2g
|
263 | | -
|
264 | | -uninstaller-ipodnano2g:
|
265 | | - @$(MAKE) -C $(UNINSTDIR)
|
266 | | -
|
267 | | -bootmenu-ipodnano2g:
|
268 | | - @$(MAKE) -C $(BOOTMENUDIR)
|
269 | | -
|
270 | | -libboot:
|
271 | | - @$(MAKE) -C $(LIBBOOTDIR)
|
272 | | -
|
273 | | -libpng:
|
274 | | - @$(MAKE) -C $(LIBPNGDIR)
|
275 | | -
|
276 | | -libui:
|
277 | | - @$(MAKE) -C $(LIBUIDIR)
|
278 | | -
|
279 | | -libmkfat32:
|
280 | | - @$(MAKE) -C $(LIBMKFAT32DIR)
|
281 | | -
|
282 | | -umsboot:
|
283 | | - @$(MAKE) -C $(UMSBOOTDIR) ipodnano2g
|
284 | | -
|
285 | 266 | clean:
|
286 | 267 | @rm -rf build
|
287 | 268 |
|