diff options
Diffstat (limited to 'rbutil/ipodpatcher/Makefile')
-rw-r--r-- | rbutil/ipodpatcher/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile new file mode 100644 index 0000000000..f5a4d7cfb3 --- /dev/null +++ b/rbutil/ipodpatcher/Makefile | |||
@@ -0,0 +1,61 @@ | |||
1 | CFLAGS=-Wall | ||
2 | |||
3 | BOOT_H = ipod3g.h ipod4g.h ipodcolor.h ipodmini.h ipodmini2g.h ipodnano.h ipodvideo.h | ||
4 | |||
5 | # Uncomment the next two lines to build with embedded bootloaders and the | ||
6 | # --install option and interactive mode. You need the full set of Rockbox | ||
7 | # bootloaders in this directory - download them from | ||
8 | # http://download.rockbox.org/bootloader/ipod/bootloaders.zip | ||
9 | |||
10 | #BOOTSRC = ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c | ||
11 | #CFLAGS += -DWITH_BOOTOBJS | ||
12 | |||
13 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | ||
14 | OUTPUT=ipodpatcher.exe | ||
15 | CROSS= | ||
16 | CFLAGS+=-mno-cygwin | ||
17 | else | ||
18 | OUTPUT=ipodpatcher | ||
19 | CROSS=i586-mingw32msvc- | ||
20 | endif | ||
21 | |||
22 | NATIVECC = gcc | ||
23 | CC = $(CROSS)gcc | ||
24 | |||
25 | all: $(OUTPUT) | ||
26 | |||
27 | ipodpatcher: main.c ipodpatcher.c ipodio-posix.c parttypes.h $(BOOTSRC) | ||
28 | gcc $(CFLAGS) -o ipodpatcher main.c ipodpatcher.c ipodio-posix.c $(BOOTSRC) | ||
29 | strip ipodpatcher | ||
30 | |||
31 | ipodpatcher.exe: main.c ipodpatcher.c ipodio-win32.c parttypes.h $(BOOTSRC) | ||
32 | $(CC) $(CFLAGS) -o ipodpatcher.exe main.c ipodpatcher.c ipodio-win32.c $(BOOTSRC) | ||
33 | $(CROSS)strip ipodpatcher.exe | ||
34 | |||
35 | ipod2c: ipod2c.c | ||
36 | $(NATIVECC) $(CFLAGS) -o ipod2c ipod2c.c | ||
37 | |||
38 | ipod3g.c: bootloader-ipod3g.ipod ipod2c | ||
39 | ./ipod2c bootloader-ipod3g.ipod ipod3g | ||
40 | |||
41 | ipod4g.c: bootloader-ipod4g.ipod ipod2c | ||
42 | ./ipod2c bootloader-ipod4g.ipod ipod4g | ||
43 | |||
44 | ipodcolor.c: bootloader-ipodcolor.ipod ipod2c | ||
45 | ./ipod2c bootloader-ipodcolor.ipod ipodcolor | ||
46 | |||
47 | ipodmini.c: bootloader-ipodmini.ipod ipod2c | ||
48 | ./ipod2c bootloader-ipodmini.ipod ipodmini | ||
49 | |||
50 | ipodmini2g.c: bootloader-ipodmini2g.ipod ipod2c | ||
51 | ./ipod2c bootloader-ipodmini2g.ipod ipodmini2g | ||
52 | |||
53 | ipodnano.c: bootloader-ipodnano.ipod ipod2c | ||
54 | ./ipod2c bootloader-ipodnano.ipod ipodnano | ||
55 | |||
56 | ipodvideo.c: bootloader-ipodvideo.ipod ipod2c | ||
57 | ./ipod2c bootloader-ipodvideo.ipod ipodvideo | ||
58 | |||
59 | |||
60 | clean: | ||
61 | rm -f ipodpatcher.exe ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H) | ||