summaryrefslogtreecommitdiff
path: root/utils/ipodpatcher/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ipodpatcher/Makefile')
-rw-r--r--utils/ipodpatcher/Makefile53
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
10CFLAGS += -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
19ifdef RELEASE
20CFLAGS += -DRELEASE
21BOOTOBJS=1
22endif
23
24ifdef BOOTOBJS
25BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini1g.c \
26 ipodmini2g.c ipodnano1g.c ipodvideo.c ipodnano2g.c
27CFLAGS += -DWITH_BOOTOBJS
28endif
29
30# additional frameworks to link on on OS X
31LDOPTS_OSX = -framework CoreFoundation -framework IOKit
32
33LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
34 ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c
35SOURCES = main.c $(BOOTSRC)
36ipodpatcher: SOURCES+= ipodio-posix.c
37
38OUTPUT = ipodpatcher
39include ../libtools.make
40
41ipodpatcher.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