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 evm all test xgo clean
5
+ .PHONY : geth geth-cross evm all test clean
6
6
.PHONY : geth-linux geth-linux-386 geth-linux-amd64
7
7
.PHONY : geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
8
8
.PHONY : geth-darwin geth-darwin-386 geth-darwin-amd64
33
33
34
34
# Cross Compilation Targets (xgo)
35
35
36
- xgo :
37
- build/env.sh go get github.com/karalabe/xgo
38
-
39
36
geth-cross : geth-linux geth-darwin geth-windows geth-android geth-ios
40
37
@echo " Full cross compilation done:"
41
38
@ls -ld $(GOBIN ) /geth-*
@@ -44,74 +41,74 @@ geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm
44
41
@echo " Linux cross compilation done:"
45
42
@ls -ld $(GOBIN ) /geth-linux-*
46
43
47
- geth-linux-386 : xgo
48
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/386 -v $( shell build/flags.sh) ./cmd/geth
44
+ geth-linux-386 :
45
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/386 -v ./cmd/geth
49
46
@echo " Linux 386 cross compilation done:"
50
47
@ls -ld $(GOBIN ) /geth-linux-* | grep 386
51
48
52
- geth-linux-amd64 : xgo
53
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/amd64 -v $( shell build/flags.sh) ./cmd/geth
49
+ geth-linux-amd64 :
50
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/amd64 -v ./cmd/geth
54
51
@echo " Linux amd64 cross compilation done:"
55
52
@ls -ld $(GOBIN ) /geth-linux-* | grep amd64
56
53
57
54
geth-linux-arm : geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
58
55
@echo " Linux ARM cross compilation done:"
59
56
@ls -ld $(GOBIN ) /geth-linux-* | grep arm
60
57
61
- geth-linux-arm-5 : xgo
62
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm-5 -v $( shell build/flags.sh) ./cmd/geth
58
+ geth-linux-arm-5 :
59
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm-5 -v ./cmd/geth
63
60
@echo " Linux ARMv5 cross compilation done:"
64
61
@ls -ld $(GOBIN ) /geth-linux-* | grep arm-5
65
62
66
- geth-linux-arm-6 : xgo
67
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm-6 -v $( shell build/flags.sh) ./cmd/geth
63
+ geth-linux-arm-6 :
64
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm-6 -v ./cmd/geth
68
65
@echo " Linux ARMv6 cross compilation done:"
69
66
@ls -ld $(GOBIN ) /geth-linux-* | grep arm-6
70
67
71
- geth-linux-arm-7 : xgo
72
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm-7 -v $( shell build/flags.sh) ./cmd/geth
68
+ geth-linux-arm-7 :
69
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm-7 -v ./cmd/geth
73
70
@echo " Linux ARMv7 cross compilation done:"
74
71
@ls -ld $(GOBIN ) /geth-linux-* | grep arm-7
75
72
76
- geth-linux-arm64 : xgo
77
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm64 -v $( shell build/flags.sh) ./cmd/geth
73
+ geth-linux-arm64 :
74
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/arm64 -v ./cmd/geth
78
75
@echo " Linux ARM64 cross compilation done:"
79
76
@ls -ld $(GOBIN ) /geth-linux-* | grep arm64
80
77
81
78
geth-darwin : geth-darwin-386 geth-darwin-amd64
82
79
@echo " Darwin cross compilation done:"
83
80
@ls -ld $(GOBIN ) /geth-darwin-*
84
81
85
- geth-darwin-386 : xgo
86
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/386 -v $( shell build/flags.sh) ./cmd/geth
82
+ geth-darwin-386 :
83
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/386 -v ./cmd/geth
87
84
@echo " Darwin 386 cross compilation done:"
88
85
@ls -ld $(GOBIN ) /geth-darwin-* | grep 386
89
86
90
- geth-darwin-amd64 : xgo
91
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/amd64 -v $( shell build/flags.sh) ./cmd/geth
87
+ geth-darwin-amd64 :
88
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/amd64 -v ./cmd/geth
92
89
@echo " Darwin amd64 cross compilation done:"
93
90
@ls -ld $(GOBIN ) /geth-darwin-* | grep amd64
94
91
95
92
geth-windows : geth-windows-386 geth-windows-amd64
96
93
@echo " Windows cross compilation done:"
97
94
@ls -ld $(GOBIN ) /geth-windows-*
98
95
99
- geth-windows-386 : xgo
100
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/386 -v $( shell build/flags.sh) ./cmd/geth
96
+ geth-windows-386 :
97
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/386 -v ./cmd/geth
101
98
@echo " Windows 386 cross compilation done:"
102
99
@ls -ld $(GOBIN ) /geth-windows-* | grep 386
103
100
104
- geth-windows-amd64 : xgo
105
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/amd64 -v $( shell build/flags.sh) ./cmd/geth
101
+ geth-windows-amd64 :
102
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/amd64 -v ./cmd/geth
106
103
@echo " Windows amd64 cross compilation done:"
107
104
@ls -ld $(GOBIN ) /geth-windows-* | grep amd64
108
105
109
- geth-android : xgo
110
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=android-21/aar -v $( shell build/flags.sh) ./cmd/geth
106
+ geth-android :
107
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=android-21/aar -v ./cmd/geth
111
108
@echo " Android cross compilation done:"
112
109
@ls -ld $(GOBIN ) /geth-android-*
113
110
114
- geth-ios : xgo
115
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=ios-7.0/framework -v $( shell build/flags.sh) ./cmd/geth
111
+ geth-ios :
112
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=ios-7.0/framework -v ./cmd/geth
116
113
@echo " iOS framework cross compilation done:"
117
114
@ls -ld $(GOBIN ) /geth-ios-*
0 commit comments