summaryrefslogtreecommitdiff
path: root/utils/ipodpatcher/Makefile
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-15 21:04:28 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-24 18:05:53 +0100
commitc876d3bbefe0dc00c27ca0c12d29da5874946962 (patch)
tree69f468a185a369b01998314bc3ecc19b70f4fcaa /utils/ipodpatcher/Makefile
parent6c6f0757d7a902feb293be165d1490c42bc8e7ad (diff)
downloadrockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.tar.gz
rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.zip
rbutil: Merge rbutil with utils folder.
rbutil uses several components from the utils folder, and can be considered part of utils too. Having it in a separate folder is an arbitrary split that doesn't help anymore these days, so merge them. This also allows other utils to easily use libtools.make without the need to navigate to a different folder. Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
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