From 1a404167249bcc7e1db801f40d0db4843e3341ff Mon Sep 17 00:00:00 2001 From: debris Date: Thu, 10 Dec 2015 01:41:44 +0100 Subject: [PATCH] Makefile for cross-compilation --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..ad3c5230f --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +# Makefile for cross-compilation +IOS_ARCHS = i386-apple-ios x86_64-apple-ios armv7-apple-ios armv7s-apple-ios aarch64-apple-ios +IOS_LIB = libethcore_util.a + +ios: $(IOS_LIB) + +.PHONY: $(IOS_ARCHS) +$(IOS_ARCHS): %: + multirust run ios cargo build --target $@ + +$(IOS_LIB): $(IOS_ARCHS) + lipo -create -output $@ $(foreach arch,$(IOS_ARCHS),$(wildcard target/$(arch)/debug/$(IOS_LIB)))