summaryrefslogtreecommitdiffstats
path: root/rbutil/mkamsboot
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-10-09 08:49:41 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-10-09 08:49:41 +0000
commit30ea0b6368294a04a37049f2567d654b6948270e (patch)
treef4113b475f0587b4a2285f5ba5609b9005f7ef25 /rbutil/mkamsboot
parentdb998b307833c2d6cffbb2176da51511753dc7d5 (diff)
downloadrockbox-30ea0b6368294a04a37049f2567d654b6948270e.tar.gz
rockbox-30ea0b6368294a04a37049f2567d654b6948270e.tar.bz2
rockbox-30ea0b6368294a04a37049f2567d654b6948270e.zip
mkamsboot: build and package (dmg) an universal OSX binary
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot')
-rw-r--r--rbutil/mkamsboot/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/rbutil/mkamsboot/Makefile b/rbutil/mkamsboot/Makefile
index 7c46a4233a..e2af93716b 100644
--- a/rbutil/mkamsboot/Makefile
+++ b/rbutil/mkamsboot/Makefile
@@ -1,6 +1,6 @@
# We use the UCL code available in the Rockbox tools/ directory
CFLAGS=-I../../tools/ucl/include -Wall
-LIBUCL=../../tools/ucl/src/libucl.a
+LIBUCL=../../tools/ucl/src/libucl$(RBARCH).a
CC = gcc
#change for releases
@@ -35,7 +35,7 @@ OUT = $(TARGET_DIR)build$(RBARCH)
all: $(OUTPUT)
$(LIBUCL):
- make -C ../../tools/ucl/src $(TARGET_DIR)libucl.a
+ make -C ../../tools/ucl/src $(TARGET_DIR)libucl$(RBARCH).a
# This file can be generated in the dualboot/ directory
$(OUT)/dualboot.o: dualboot.c
@@ -77,8 +77,24 @@ libmkamsboot-universal: libmkamsbooti386.a libmkamsbootppc.a
lipo -create $(TARGET_DIR)libmkamsbootppc.a $(TARGET_DIR)libmkamsbooti386.a -output $(TARGET_DIR)libmkamsboot.a
clean:
- rm -f $(OUTPUT) libmkamsboot.o $(TARGET_DIR)libmkamsboot*.a
- rm -rf build*
+ rm -f $(OUTPUT) libmkamsboot.o $(TARGET_DIR)libmkamsboot*.a mkamsboot.dmg
+ rm -rf build* mkamsboot-*
+
+mkamsboot-i386:
+ $(MAKE) RBARCH=i386
+ mv mkamsboot mkamsboot-i386
+
+mkamsboot-ppc:
+ make RBARCH=ppc
+ mv mkamsboot mkamsboot-ppc
+
+mkamsboot-mac: mkamsboot-i386 mkamsboot-ppc
+ lipo -create mkamsboot-ppc mkamsboot-i386 -output mkamsboot-mac
+
+mkamsboot.dmg: mkamsboot-mac
+ mkdir -p mkamsboot-dmg
+ cp -p mkamsboot-mac mkamsboot-dmg
+ hdiutil create -srcfolder mkamsboot-dmg mkamsboot.dmg
$(OUT):
@echo MKDIR $(OUT)