summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-09 12:30:49 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-09 12:30:49 +0000
commita406a773d25aa9bd6021fad7aa69763f866aa905 (patch)
tree86558f688d63dd6f3351472c0a29f68e9746b4ed
parent19bb8206b2d0f706a1e223452b1c224be2928b16 (diff)
downloadrockbox-a406a773d25aa9bd6021fad7aa69763f866aa905.tar.gz
rockbox-a406a773d25aa9bd6021fad7aa69763f866aa905.tar.bz2
rockbox-a406a773d25aa9bd6021fad7aa69763f866aa905.zip
Backport r23036 to the bootloader branch.
git-svn-id: svn://svn.rockbox.org/rockbox/branches/bootloader_ams_pp@23038 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/mkamsboot/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/rbutil/mkamsboot/Makefile b/rbutil/mkamsboot/Makefile
index 378602167b..f2df210675 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
#change for releases
APPVERSION=1.1RC
@@ -25,7 +25,7 @@ CC?= gcc
all: $(OUTPUT)
$(LIBUCL):
- make -C ../../tools/ucl/src libucl.a
+ make -C ../../tools/ucl/src $(TARGET_DIR)libucl$(RBARCH).a
# This file can be generated in the dualboot/ directory
dualboot.o: dualboot.c
@@ -47,5 +47,21 @@ libmkamsboot.a: libmkamsboot.o md5.o dualboot.o
$(AR) ruv libmkamsboot.a libmkamsboot.o md5.o dualboot.o
clean:
- rm -f $(OUTPUT) mkamsboot.o *~ md5.o dualboot.o \
- libmkamsboot.o libmkamsboot.a
+ 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