summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/ipodpatcher/Makefile')
-rw-r--r--rbutil/ipodpatcher/Makefile22
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
3BOOT_H = ipod1g2g.h ipod3g.h ipod4g.h ipodcolor.h ipodmini.h ipodmini2g.h ipodnano.h ipodvideo.h 3BOOT_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 10ifdef RELEASE
11#CFLAGS += -DWITH_BOOTOBJS 11CFLAGS+=-DRELEASE
12BOOTOBJS=1
13endif
14
15ifdef BOOTOBJS
16BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c ipodnano2g.c
17CFLAGS += -DWITH_BOOTOBJS
18endif
19
20ifndef VERSION
21VERSION=$(shell ../../tools/version.sh)
22endif
23
24CFLAGS+=-DVERSION=\"$(VERSION)\"
12 25
13ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) 26ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
14OUTPUT=ipodpatcher.exe 27OUTPUT=ipodpatcher.exe
@@ -81,6 +94,9 @@ ipodnano.c: bootloader-ipodnano.ipod ipod2c
81ipodvideo.c: bootloader-ipodvideo.ipod ipod2c 94ipodvideo.c: bootloader-ipodvideo.ipod ipod2c
82 ./ipod2c bootloader-ipodvideo.ipod ipodvideo 95 ./ipod2c bootloader-ipodvideo.ipod ipodvideo
83 96
97ipodnano2g.c: bootloader-ipodnano2g.ipodx ipod2c
98 ./ipod2c bootloader-ipodnano2g.ipodx ipodnano2g
99
84 100
85clean: 101clean:
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)