diff options
Diffstat (limited to 'rbutil/ipodpatcher/Makefile')
-rw-r--r-- | rbutil/ipodpatcher/Makefile | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile index 9c32587fa1..713c21b546 100644 --- a/rbutil/ipodpatcher/Makefile +++ b/rbutil/ipodpatcher/Makefile | |||
@@ -2,13 +2,26 @@ CFLAGS=-Wall -W | |||
2 | 2 | ||
3 | BOOT_H = ipod1g2g.h ipod3g.h ipod4g.h ipodcolor.h ipodmini.h ipodmini2g.h ipodnano.h ipodvideo.h | 3 | BOOT_H = ipod1g2g.h ipod3g.h ipod4g.h ipodcolor.h ipodmini.h ipodmini2g.h ipodnano.h ipodvideo.h |
4 | 4 | ||
5 | # Uncomment the next two lines to build with embedded bootloaders and the | 5 | # Enable the next two lines to build with embedded bootloaders and the |
6 | # --install option and interactive mode. You need the full set of Rockbox | 6 | # --install option and interactive mode. You need the full set of Rockbox |
7 | # bootloaders in this directory - download them from | 7 | # bootloaders in this directory - download them from |
8 | # http://download.rockbox.org/bootloader/ipod/bootloaders.zip | 8 | # http://download.rockbox.org/bootloader/ipod/bootloaders.zip |
9 | 9 | ||
10 | #BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c | 10 | ifdef RELEASE |
11 | #CFLAGS += -DWITH_BOOTOBJS | 11 | CFLAGS+=-DRELEASE |
12 | BOOTOBJS=1 | ||
13 | endif | ||
14 | |||
15 | ifdef BOOTOBJS | ||
16 | BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c ipodnano2g.c | ||
17 | CFLAGS += -DWITH_BOOTOBJS | ||
18 | endif | ||
19 | |||
20 | ifndef VERSION | ||
21 | VERSION=$(shell ../../tools/version.sh) | ||
22 | endif | ||
23 | |||
24 | CFLAGS+=-DVERSION=\"$(VERSION)\" | ||
12 | 25 | ||
13 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | 26 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) |
14 | OUTPUT=ipodpatcher.exe | 27 | OUTPUT=ipodpatcher.exe |
@@ -81,6 +94,9 @@ ipodnano.c: bootloader-ipodnano.ipod ipod2c | |||
81 | ipodvideo.c: bootloader-ipodvideo.ipod ipod2c | 94 | ipodvideo.c: bootloader-ipodvideo.ipod ipod2c |
82 | ./ipod2c bootloader-ipodvideo.ipod ipodvideo | 95 | ./ipod2c bootloader-ipodvideo.ipod ipodvideo |
83 | 96 | ||
97 | ipodnano2g.c: bootloader-ipodnano2g.ipodx ipod2c | ||
98 | ./ipod2c bootloader-ipodnano2g.ipodx ipodnano2g | ||
99 | |||
84 | 100 | ||
85 | clean: | 101 | clean: |
86 | rm -f ipodpatcher.exe ipodpatcher-rc.o ipodpatcher-mac ipodpatcher-i386 ipodpatcher-ppc ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H) | 102 | rm -f ipodpatcher.exe ipodpatcher-rc.o ipodpatcher-mac ipodpatcher-i386 ipodpatcher-ppc ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H) |