summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/Makefile
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-03-03 10:57:32 +0000
committerDave Chapman <dave@dchapman.com>2007-03-03 10:57:32 +0000
commit1602bf51729a3107ef4f3220cad6c518cdc17185 (patch)
treeef2c44b847b897c63b09d1782f35b892f3d8de20 /rbutil/ipodpatcher/Makefile
parentc8311f98b442c4c83587d3f91073c0f2e1b258c5 (diff)
downloadrockbox-1602bf51729a3107ef4f3220cad6c518cdc17185.tar.gz
rockbox-1602bf51729a3107ef4f3220cad6c518cdc17185.tar.bz2
rockbox-1602bf51729a3107ef4f3220cad6c518cdc17185.zip
Add ipodpatcher-mac target for creating a Mac OS X universal binary
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12566 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/Makefile')
-rw-r--r--rbutil/ipodpatcher/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile
index f5a4d7cfb3..5ed171d70f 100644
--- a/rbutil/ipodpatcher/Makefile
+++ b/rbutil/ipodpatcher/Makefile
@@ -32,6 +32,17 @@ ipodpatcher.exe: main.c ipodpatcher.c ipodio-win32.c parttypes.h $(BOOTSRC)
$(CC) $(CFLAGS) -o ipodpatcher.exe main.c ipodpatcher.c ipodio-win32.c $(BOOTSRC)
$(CROSS)strip ipodpatcher.exe
+ipodpatcher-mac: ipodpatcher-i386 ipodpatcher-ppc
+ lipo -create ipodpatcher-ppc ipodpatcher-i386 -output ipodpatcher-mac
+
+ipodpatcher-i386: main.c ipodpatcher.c ipodio-posix.c parttypes.h $(BOOTSRC)
+ gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o ipodpatcher-i386 main.c ipodpatcher.c ipodio-posix.c $(BOOTSRC)
+ strip ipodpatcher-i386
+
+ipodpatcher-ppc: main.c ipodpatcher.c ipodio-posix.c parttypes.h $(BOOTSRC)
+ gcc -arch ppc $(CFLAGS) -o ipodpatcher-ppc main.c ipodpatcher.c ipodio-posix.c $(BOOTSRC)
+ strip ipodpatcher-ppc
+
ipod2c: ipod2c.c
$(NATIVECC) $(CFLAGS) -o ipod2c ipod2c.c
@@ -58,4 +69,4 @@ ipodvideo.c: bootloader-ipodvideo.ipod ipod2c
clean:
- rm -f ipodpatcher.exe ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H)
+ rm -f ipodpatcher.exe ipodpatcher-mac ipodpatcher-i386 ipodpatcher-ppc ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H)