aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-11-24 23:24:43 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-11-24 23:24:43 +0800
commit2c42e54519afaa5426e9c389fa2ee911b0699baa (patch)
tree3f7791cf54d06fc2d0061faa22c5d0025ab7a8a3 /Makefile
parentb0fb48c389460193d9fc0a5118d79ff6dec48ce0 (diff)
downloadgo-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.tar
go-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.tar.gz
go-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.tar.bz2
go-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.tar.lz
go-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.tar.xz
go-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.tar.zst
go-tangerine-2c42e54519afaa5426e9c389fa2ee911b0699baa.zip
Makefile: add support for iOS cross compilation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 41cbc1ce6..00db7cde7 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,11 @@
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
.PHONY: geth-windows geth-windows-386 geth-windows-amd64
.PHONY: geth-android geth-android-16 geth-android-21
+.PHONY: geth-ios geth-ios-5.0 geth-ios-8.1
GOBIN = build/bin
-CROSSDEPS = https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
+CROSSDEPS = https://gmplib.org/download/gmp/gmp-6.1.0.tar.bz2
GO ?= latest
geth:
@@ -83,6 +84,20 @@ geth-android-21: xgo
@echo "Android 21 cross compilation done:"
@ls -l $(GOBIN)/geth-android-21-*
+geth-ios: xgo geth-ios-5.0 geth-ios-8.1
+ @echo "iOS cross compilation done:"
+ @ls -l $(GOBIN)/geth-ios-*
+
+geth-ios-5.0:
+ build/env.sh $(GOBIN)/xgo --go=$(GO) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios-5.0/* -v $(shell build/flags.sh) ./cmd/geth
+ @echo "iOS 5.0 cross compilation done:"
+ @ls -l $(GOBIN)/geth-ios-5.0-*
+
+geth-ios-8.1:
+ build/env.sh $(GOBIN)/xgo --go=$(GO) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios-8.1/* -v $(shell build/flags.sh) ./cmd/geth
+ @echo "iOS 8.1 cross compilation done:"
+ @ls -l $(GOBIN)/geth-ios-8.1-*
+
evm:
build/env.sh $(GOROOT)/bin/go install -v $(shell build/flags.sh) ./cmd/evm
@echo "Done building."