2
2
# with Go source code. If you know what GOPATH is then you probably
3
3
# don't need to bother with make.
4
4
5
- .PHONY : geth geth-cross geth-linux geth-darwin geth-windows geth-android evm all test travis-test-with-coverage xgo clean
5
+ .PHONY : geth geth-cross evm all test travis-test-with-coverage xgo clean
6
+ .PHONY : geth-linux geth-linux-arm geth-linux-386 geth-linux-amd64
7
+ .PHONY : geth-darwin geth-darwin-386 geth-darwin-amd64
8
+ .PHONY : geth-windows geth-windows-386 geth-windows-amd64
9
+ .PHONY : geth-android geth-android-16 geth-android-21
10
+
6
11
GOBIN = build/bin
7
12
13
+ CROSSDEPS = https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
14
+ GO ?= latest
15
+
8
16
geth :
9
17
build/env.sh go install -v $(shell build/flags.sh) ./cmd/geth
10
18
@echo " Done building."
@@ -14,26 +22,67 @@ geth-cross: geth-linux geth-darwin geth-windows geth-android
14
22
@echo " Full cross compilation done:"
15
23
@ls -l $(GOBIN ) /geth-*
16
24
17
- geth-linux : xgo
18
- build/env.sh $(GOBIN ) /xgo --dest=$(GOBIN ) --deps=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 --targets=linux/* -v $(shell build/flags.sh) ./cmd/geth
25
+ geth-linux : xgo geth-linux-arm geth-linux-386 geth-linux-amd64
19
26
@echo " Linux cross compilation done:"
20
27
@ls -l $(GOBIN ) /geth-linux-*
21
28
22
- geth-darwin : xgo
23
- build/env.sh $(GOBIN ) /xgo --dest=$(GOBIN ) --deps=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 --targets=darwin/* -v $(shell build/flags.sh) ./cmd/geth
29
+ geth-linux-arm : xgo
30
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=linux/arm -v $(shell build/flags.sh) ./cmd/geth
31
+ @echo " Linux ARM cross compilation done:"
32
+ @ls -l $(GOBIN ) /geth-linux-* | grep arm
33
+
34
+ geth-linux-386 : xgo
35
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=linux/386 -v $(shell build/flags.sh) ./cmd/geth
36
+ @echo " Linux 386 cross compilation done:"
37
+ @ls -l $(GOBIN ) /geth-linux-* | grep 386
38
+
39
+ geth-linux-amd64 : xgo
40
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=linux/amd64 -v $(shell build/flags.sh) ./cmd/geth
41
+ @echo " Linux amd64 cross compilation done:"
42
+ @ls -l $(GOBIN ) /geth-linux-* | grep amd64
43
+
44
+ geth-darwin : xgo geth-darwin-386 geth-darwin-amd64
24
45
@echo " Darwin cross compilation done:"
25
46
@ls -l $(GOBIN ) /geth-darwin-*
26
47
27
- geth-windows : xgo
28
- build/env.sh $(GOBIN ) /xgo --dest=$(GOBIN ) --deps=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 --targets=windows/* -v $(shell build/flags.sh) ./cmd/geth
48
+ geth-darwin-386 : xgo
49
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=darwin/386 -v $(shell build/flags.sh) ./cmd/geth
50
+ @echo " Darwin 386 cross compilation done:"
51
+ @ls -l $(GOBIN ) /geth-darwin-* | grep 386
52
+
53
+ geth-darwin-amd64 : xgo
54
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=darwin/amd64 -v $(shell build/flags.sh) ./cmd/geth
55
+ @echo " Darwin amd64 cross compilation done:"
56
+ @ls -l $(GOBIN ) /geth-darwin-* | grep amd64
57
+
58
+ geth-windows : xgo geth-windows-386 geth-windows-amd64
29
59
@echo " Windows cross compilation done:"
30
60
@ls -l $(GOBIN ) /geth-windows-*
31
61
32
- geth-android : xgo
33
- build/env.sh $(GOBIN ) /xgo --dest=$(GOBIN ) --deps=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 --targets=android-16/* ,android-21/* -v $(shell build/flags.sh) ./cmd/geth
62
+ geth-windows-386 : xgo
63
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=windows/386 -v $(shell build/flags.sh) ./cmd/geth
64
+ @echo " Windows 386 cross compilation done:"
65
+ @ls -l $(GOBIN ) /geth-windows-* | grep 386
66
+
67
+ geth-windows-amd64 : xgo
68
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=windows/amd64 -v $(shell build/flags.sh) ./cmd/geth
69
+ @echo " Windows amd64 cross compilation done:"
70
+ @ls -l $(GOBIN ) /geth-windows-* | grep amd64
71
+
72
+ geth-android : xgo geth-android-16 geth-android-21
34
73
@echo " Android cross compilation done:"
35
74
@ls -l $(GOBIN ) /geth-android-*
36
75
76
+ geth-android-16 : xgo
77
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=android-16/* -v $(shell build/flags.sh) ./cmd/geth
78
+ @echo " Android 16 cross compilation done:"
79
+ @ls -l $(GOBIN ) /geth-android-16-*
80
+
81
+ geth-android-21 : xgo
82
+ build/env.sh $(GOBIN ) /xgo --go=$(GO ) --dest=$(GOBIN ) --deps=$(CROSSDEPS ) --targets=android-21/* -v $(shell build/flags.sh) ./cmd/geth
83
+ @echo " Android 21 cross compilation done:"
84
+ @ls -l $(GOBIN ) /geth-android-21-*
85
+
37
86
evm :
38
87
build/env.sh $(GOROOT ) /bin/go install -v $(shell build/flags.sh) ./cmd/evm
39
88
@echo " Done building."
0 commit comments