diff options
Diffstat (limited to 'utils/ipodpatcher/Makefile')
-rw-r--r-- | utils/ipodpatcher/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/utils/ipodpatcher/Makefile b/utils/ipodpatcher/Makefile new file mode 100644 index 0000000000..4254995d22 --- /dev/null +++ b/utils/ipodpatcher/Makefile | |||
@@ -0,0 +1,53 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | CFLAGS += -Wall -W | ||
11 | |||
12 | # Build with "make BOOTOBJS=1" to build with embedded bootloaders and the | ||
13 | # --install option and interactive mode. You need the full set of Rockbox | ||
14 | # bootloaders in this directory - download them from | ||
15 | # http://download.rockbox.org/bootloader/ipod/bootloaders.zip | ||
16 | |||
17 | # Releases of ipodpatcher are created with "make RELEASE=1". This | ||
18 | # enables BOOTOBJS and uses the VERSION string defined in main.c | ||
19 | ifdef RELEASE | ||
20 | CFLAGS += -DRELEASE | ||
21 | BOOTOBJS=1 | ||
22 | endif | ||
23 | |||
24 | ifdef BOOTOBJS | ||
25 | BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini1g.c \ | ||
26 | ipodmini2g.c ipodnano1g.c ipodvideo.c ipodnano2g.c | ||
27 | CFLAGS += -DWITH_BOOTOBJS | ||
28 | endif | ||
29 | |||
30 | # additional frameworks to link on on OS X | ||
31 | LDOPTS_OSX = -framework CoreFoundation -framework IOKit | ||
32 | |||
33 | LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \ | ||
34 | ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c | ||
35 | SOURCES = main.c $(BOOTSRC) | ||
36 | ipodpatcher: SOURCES+= ipodio-posix.c | ||
37 | |||
38 | OUTPUT = ipodpatcher | ||
39 | include ../libtools.make | ||
40 | |||
41 | ipodpatcher.exe: $(OBJDIR)ipodpatcher-rc.o | ||
42 | $(OBJDIR)ipodpatcher-rc.o: ipodpatcher.rc ipodpatcher.manifest | ||
43 | @echo WINDRES $(notdir $<) | ||
44 | $(SILENT)$(CROSS)$(WINDRES) -i $< -o $@ | ||
45 | |||
46 | %.c: bootloader-%.ipod $(BIN2C) | ||
47 | @echo BIN2C $< | ||
48 | $(SILENT)$(BIN2C) -i $< $* | ||
49 | |||
50 | %.c: bootloader-%.ipodx $(BIN2C) | ||
51 | @echo BIN2C $< | ||
52 | $(SILENT)$(BIN2C) -i $< $* | ||
53 | |||