Subversion Repositories freemyipod

Rev

Rev 768 | Rev 870 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 768 Rev 843
Line 1... Line 1...
1
NAME := installer-ipodclassic
1
NAME := installer-ipodclassic
2
STACKSIZE := 4096
2
STACKSIZE := 4096
3
COMPRESS := false
3
COMPRESS := false
4
AUTOBUILD_FLASHFILES ?= true
4
AUTOBUILD_FLASHFILES ?= true
-
 
5
AUTOBUILD_FSFILES ?= true
5
 
6
 
6
EMCOREDIR ?= ../../emcore/trunk/
7
EMCOREDIR ?= ../../emcore/trunk/
7
BOOTMENUDIR ?= ../bootmenu-ipodclassic/
8
BOOTMENUDIR ?= ../bootmenu-ipodclassic/
-
 
9
BOOTMENUTHEMEDIR ?= ../bootmenu-ipodclassic-wintertheme/
8
LIBBOOTDIR ?= ../../libs/boot/
10
LIBBOOTDIR ?= ../../libs/boot/
9
LIBPNGDIR ?= ../../libs/png/
11
LIBPNGDIR ?= ../../libs/png/
10
LIBUIDIR ?= ../../libs/ui/
12
LIBUIDIR ?= ../../libs/ui/
11
LIBMKFAT32DIR ?= ../../libs/mkfat32/
13
LIBMKFAT32DIR ?= ../../libs/mkfat32/
12
UMSBOOTDIR ?= ../../umsboot/
14
UMSBOOTDIR ?= ../../umsboot/
13
TOOLSDIR ?= ../../tools/
15
TOOLSDIR ?= ../../tools/
14
 
16
 
15
FLASHFILES = flashfiles/boot.emcorelib flashfiles/png.emcorelib flashfiles/ui.emcorelib flashfiles/mkfat32.emcorelib \
17
FLASHFILES = flashfiles/boot.emcorelib flashfiles/png.emcorelib flashfiles/ui.emcorelib flashfiles/mkfat32.emcorelib \
16
             flashfiles/bootmenu-ipodclassic.emcoreapp flashfiles/emcoreldr-ipodclassic.bin \
18
             flashfiles/bootmenu-ipodclassic.emcoreapp flashfiles/emcoreldr-ipodclassic.bin \
17
             flashfiles/emcore-ipodclassic.ucl flashfiles/umsboot-ipodclassic.ucl
19
             flashfiles/emcore-ipodclassic.ucl flashfiles/umsboot-ipodclassic.ucl flashfiles/rockbox.ipod.ucl
-
 
20
 
-
 
21
FSFILES = fsfiles/.apps/bootmenu/theme.emcoreapp
18
 
22
 
19
ifeq ($(shell uname),WindowsNT)
23
ifeq ($(shell uname),WindowsNT)
20
CCACHE :=
24
CCACHE :=
21
else
25
else
22
CCACHE := $(shell which ccache)
26
CCACHE := $(shell which ccache)
Line 89... Line 93...
89
build/resources.o: $(FLASHFILES)
93
build/resources.o: $(FLASHFILES)
90
else
94
else
91
build/resources.o: flashfiles.built
95
build/resources.o: flashfiles.built
92
endif
96
endif
93
 
97
 
-
 
98
ifeq ($(AUTOBUILD_FSFILES),true)
-
 
99
build/resources.o: $(FSFILES)
-
 
100
else
-
 
101
build/resources.o: fsfiles.built
-
 
102
endif
-
 
103
 
94
build/$(NAME).elf: ls.x $(OBJ)
104
build/$(NAME).elf: ls.x $(OBJ)
95
	@echo [LD]     $@
105
	@echo [LD]     $@
96
	@$(LD) $(LDFLAGS) -o $@ -T ls.x $(OBJ)
106
	@$(LD) $(LDFLAGS) -o $@ -T ls.x $(OBJ)
97
 
107
 
98
build/%.o: %.c build/version.h
108
build/%.o: %.c build/version.h
Line 200... Line 210...
200
 
210
 
201
flashfiles/bootmenu-ipodclassic.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodclassic.emcoreapp
211
flashfiles/bootmenu-ipodclassic.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodclassic.emcoreapp
202
	@echo [CP]     $@
212
	@echo [CP]     $@
203
	@cp $< $@
213
	@cp $< $@
204
 
214
 
-
 
215
$(BOOTMENUTHEMEDIR)/build/bootmenu-ipodclassic.emcoreapp: bootmenu-ipodclassic-theme
-
 
216
	@$(MAKE) -C $(BOOTMENUTHEMEDIR)
-
 
217
 
-
 
218
fsfiles/.apps/bootmenu/theme.emcoreapp: $(BOOTMENUTHEMEDIR)/build/bootmenu-ipodclassic.emcoreapp
-
 
219
	@echo [CP]     $@
-
 
220
ifeq ($(shell uname),WindowsNT)
-
 
221
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
-
 
222
else
-
 
223
	@-mkdir -p $(dir $@)
-
 
224
endif
-
 
225
	@cp $< $@
-
 
226
 
205
$(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin: emcoreldr-ipodclassic
227
$(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin: emcoreldr-ipodclassic
206
	@$(MAKE) -C $(EMCOREDIR)/loader/ipodclassic
228
	@$(MAKE) -C $(EMCOREDIR)/loader/ipodclassic
207
 
229
 
208
flashfiles/emcoreldr-ipodclassic.bin: $(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin
230
flashfiles/emcoreldr-ipodclassic.bin: $(EMCOREDIR)/loader/ipodclassic/build/emcoreldr-ipodclassic.bin
209
	@echo [CP]     $@
231
	@echo [CP]     $@
Line 221... Line 243...
221
	@$(EMCOREBOOTCFG) $< $@ "(3, '/.boot/init.emcoreapp', None, (2, 'bootmenu', None, None))"
243
	@$(EMCOREBOOTCFG) $< $@ "(3, '/.boot/init.emcoreapp', None, (2, 'bootmenu', None, None))"
222
 
244
 
223
clean:
245
clean:
224
	@rm -rf build
246
	@rm -rf build
225
 
247
 
226
.PHONY: all clean emcore emcoreldr-ipodclassic bootmenu-ipodclassic libboot libpng libui libmkfat32 umsboot libucl flashfiles $(NAME)
248
.PHONY: all clean emcore emcoreldr-ipodclassic bootmenu-ipodclassic bootmenu-ipodclassic-theme libboot libpng libui libmkfat32 umsboot libucl flashfiles $(NAME)