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 travis-test-with-coverage xgo clean
6
- .PHONY : geth-linux geth-linux-386 geth-linux-amd64
5
+ .PHONY : geth geth-cross evm all test clean
6
+ .PHONY : geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
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
9
9
.PHONY : geth-windows geth-windows-386 geth-windows-amd64
@@ -13,109 +13,112 @@ GOBIN = build/bin
13
13
GO ?= latest
14
14
15
15
geth :
16
- build/env.sh go build -i -v $( shell build/flags.sh) -o $( GOBIN ) /geth ./cmd/geth
16
+ build/env.sh go run build/ci.go install ./cmd/geth
17
17
@echo " Done building."
18
18
@echo " Run \" $( GOBIN) /geth\" to launch geth."
19
19
20
+ evm :
21
+ build/env.sh go run build/ci.go install ./cmd/evm
22
+ @echo " Done building."
23
+ @echo " Run \" $( GOBIN) /evm to start the evm."
24
+
25
+ all :
26
+ build/env.sh go run build/ci.go install
27
+
28
+ test : all
29
+ build/env.sh go run build/ci.go test
30
+
31
+ clean :
32
+ rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN ) /*
33
+
34
+ # Cross Compilation Targets (xgo)
35
+
20
36
geth-cross : geth-linux geth-darwin geth-windows geth-android geth-ios
21
37
@echo " Full cross compilation done:"
22
38
@ls -ld $(GOBIN ) /geth-*
23
39
24
- geth-linux : geth-linux-386 geth-linux-amd64 geth-linux-arm
40
+ geth-linux : geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 geth-linux-mips64le
25
41
@echo " Linux cross compilation done:"
26
42
@ls -ld $(GOBIN ) /geth-linux-*
27
43
28
- geth-linux-386 : xgo
29
- 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
30
46
@echo " Linux 386 cross compilation done:"
31
47
@ls -ld $(GOBIN ) /geth-linux-* | grep 386
32
48
33
- geth-linux-amd64 : xgo
34
- 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
35
51
@echo " Linux amd64 cross compilation done:"
36
52
@ls -ld $(GOBIN ) /geth-linux-* | grep amd64
37
53
38
54
geth-linux-arm : geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
39
55
@echo " Linux ARM cross compilation done:"
40
56
@ls -ld $(GOBIN ) /geth-linux-* | grep arm
41
57
42
- geth-linux-arm-5 : xgo
43
- 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
44
60
@echo " Linux ARMv5 cross compilation done:"
45
61
@ls -ld $(GOBIN ) /geth-linux-* | grep arm-5
46
62
47
- geth-linux-arm-6 : xgo
48
- 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
49
65
@echo " Linux ARMv6 cross compilation done:"
50
66
@ls -ld $(GOBIN ) /geth-linux-* | grep arm-6
51
67
52
- geth-linux-arm-7 : xgo
53
- 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
54
70
@echo " Linux ARMv7 cross compilation done:"
55
71
@ls -ld $(GOBIN ) /geth-linux-* | grep arm-7
56
72
57
- geth-linux-arm64 : xgo
58
- 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
59
75
@echo " Linux ARM64 cross compilation done:"
60
76
@ls -ld $(GOBIN ) /geth-linux-* | grep arm64
61
77
78
+ geth-linux-mips64 :
79
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/mips64 -v ./cmd/geth
80
+ @echo " Linux MIPS64 cross compilation done:"
81
+ @ls -ld $(GOBIN ) /geth-linux-* | grep mips64
82
+
83
+ geth-linux-mips64le :
84
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=linux/mips64le -v ./cmd/geth
85
+ @echo " Linux MIPS64le cross compilation done:"
86
+ @ls -ld $(GOBIN ) /geth-linux-* | grep mips64le
87
+
62
88
geth-darwin : geth-darwin-386 geth-darwin-amd64
63
89
@echo " Darwin cross compilation done:"
64
90
@ls -ld $(GOBIN ) /geth-darwin-*
65
91
66
- geth-darwin-386 : xgo
67
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/386 -v $( shell build/flags.sh) ./cmd/geth
92
+ geth-darwin-386 :
93
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/386 -v ./cmd/geth
68
94
@echo " Darwin 386 cross compilation done:"
69
95
@ls -ld $(GOBIN ) /geth-darwin-* | grep 386
70
96
71
- geth-darwin-amd64 : xgo
72
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/amd64 -v $( shell build/flags.sh) ./cmd/geth
97
+ geth-darwin-amd64 :
98
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=darwin/amd64 -v ./cmd/geth
73
99
@echo " Darwin amd64 cross compilation done:"
74
100
@ls -ld $(GOBIN ) /geth-darwin-* | grep amd64
75
101
76
102
geth-windows : geth-windows-386 geth-windows-amd64
77
103
@echo " Windows cross compilation done:"
78
104
@ls -ld $(GOBIN ) /geth-windows-*
79
105
80
- geth-windows-386 : xgo
81
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/386 -v $( shell build/flags.sh) ./cmd/geth
106
+ geth-windows-386 :
107
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/386 -v ./cmd/geth
82
108
@echo " Windows 386 cross compilation done:"
83
109
@ls -ld $(GOBIN ) /geth-windows-* | grep 386
84
110
85
- geth-windows-amd64 : xgo
86
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/amd64 -v $( shell build/flags.sh) ./cmd/geth
111
+ geth-windows-amd64 :
112
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=windows/amd64 -v ./cmd/geth
87
113
@echo " Windows amd64 cross compilation done:"
88
114
@ls -ld $(GOBIN ) /geth-windows-* | grep amd64
89
115
90
- geth-android : xgo
91
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=android-21/aar -v $( shell build/flags.sh) ./cmd/geth
116
+ geth-android :
117
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=android-21/aar -v ./cmd/geth
92
118
@echo " Android cross compilation done:"
93
119
@ls -ld $(GOBIN ) /geth-android-*
94
120
95
- geth-ios : xgo
96
- build/env.sh $( GOBIN ) / xgo --go=$(GO ) --dest=$(GOBIN ) --targets=ios-7.0/framework -v $( shell build/flags.sh) ./cmd/geth
121
+ geth-ios :
122
+ build/env.sh go run build/ci.go xgo --go=$(GO ) --dest=$(GOBIN ) --targets=ios-7.0/framework -v ./cmd/geth
97
123
@echo " iOS framework cross compilation done:"
98
124
@ls -ld $(GOBIN ) /geth-ios-*
99
-
100
- evm :
101
- build/env.sh $(GOROOT ) /bin/go install -v $(shell build/flags.sh) ./cmd/evm
102
- @echo " Done building."
103
- @echo " Run \" $( GOBIN) /evm to start the evm."
104
-
105
- all :
106
- for cmd in ` ls ./cmd/` ; do \
107
- build/env.sh go build -i -v $(shell build/flags.sh) -o $(GOBIN ) /$$ cmd ./cmd/$$ cmd; \
108
- done
109
-
110
- test : all
111
- build/env.sh go test ./...
112
-
113
- travis-test-with-coverage : all
114
- build/env.sh go vet ./...
115
- build/env.sh build/test-global-coverage.sh
116
-
117
- xgo :
118
- build/env.sh go get github.com/karalabe/xgo
119
-
120
- clean :
121
- rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN ) /*
0 commit comments