|
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 android ios geth-cross evm all test clean |
6 | | -.PHONY: geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le |
7 | | -.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64 |
8 | | -.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64 |
9 | | -.PHONY: geth-windows geth-windows-386 geth-windows-amd64 |
| 5 | +.PHONY: geth android ios evm all test clean |
10 | 6 |
|
11 | 7 | GOBIN = ./build/bin |
12 | 8 | GO ?= latest |
@@ -53,95 +49,3 @@ devtools: |
53 | 49 | env GOBIN= go install ./cmd/abigen |
54 | 50 | @type "solc" 2> /dev/null || echo 'Please install solc' |
55 | 51 | @type "protoc" 2> /dev/null || echo 'Please install protoc' |
56 | | - |
57 | | -# Cross Compilation Targets (xgo) |
58 | | - |
59 | | -geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios |
60 | | - @echo "Full cross compilation done:" |
61 | | - @ls -ld $(GOBIN)/geth-* |
62 | | - |
63 | | -geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 geth-linux-mips64le |
64 | | - @echo "Linux cross compilation done:" |
65 | | - @ls -ld $(GOBIN)/geth-linux-* |
66 | | - |
67 | | -geth-linux-386: |
68 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/386 -v ./cmd/geth |
69 | | - @echo "Linux 386 cross compilation done:" |
70 | | - @ls -ld $(GOBIN)/geth-linux-* | grep 386 |
71 | | - |
72 | | -geth-linux-amd64: |
73 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 -v ./cmd/geth |
74 | | - @echo "Linux amd64 cross compilation done:" |
75 | | - @ls -ld $(GOBIN)/geth-linux-* | grep amd64 |
76 | | - |
77 | | -geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64 |
78 | | - @echo "Linux ARM cross compilation done:" |
79 | | - @ls -ld $(GOBIN)/geth-linux-* | grep arm |
80 | | - |
81 | | -geth-linux-arm-5: |
82 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm-5 -v ./cmd/geth |
83 | | - @echo "Linux ARMv5 cross compilation done:" |
84 | | - @ls -ld $(GOBIN)/geth-linux-* | grep arm-5 |
85 | | - |
86 | | -geth-linux-arm-6: |
87 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm-6 -v ./cmd/geth |
88 | | - @echo "Linux ARMv6 cross compilation done:" |
89 | | - @ls -ld $(GOBIN)/geth-linux-* | grep arm-6 |
90 | | - |
91 | | -geth-linux-arm-7: |
92 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm-7 -v ./cmd/geth |
93 | | - @echo "Linux ARMv7 cross compilation done:" |
94 | | - @ls -ld $(GOBIN)/geth-linux-* | grep arm-7 |
95 | | - |
96 | | -geth-linux-arm64: |
97 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm64 -v ./cmd/geth |
98 | | - @echo "Linux ARM64 cross compilation done:" |
99 | | - @ls -ld $(GOBIN)/geth-linux-* | grep arm64 |
100 | | - |
101 | | -geth-linux-mips: |
102 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mips --ldflags '-extldflags "-static"' -v ./cmd/geth |
103 | | - @echo "Linux MIPS cross compilation done:" |
104 | | - @ls -ld $(GOBIN)/geth-linux-* | grep mips |
105 | | - |
106 | | -geth-linux-mipsle: |
107 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mipsle --ldflags '-extldflags "-static"' -v ./cmd/geth |
108 | | - @echo "Linux MIPSle cross compilation done:" |
109 | | - @ls -ld $(GOBIN)/geth-linux-* | grep mipsle |
110 | | - |
111 | | -geth-linux-mips64: |
112 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mips64 --ldflags '-extldflags "-static"' -v ./cmd/geth |
113 | | - @echo "Linux MIPS64 cross compilation done:" |
114 | | - @ls -ld $(GOBIN)/geth-linux-* | grep mips64 |
115 | | - |
116 | | -geth-linux-mips64le: |
117 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mips64le --ldflags '-extldflags "-static"' -v ./cmd/geth |
118 | | - @echo "Linux MIPS64le cross compilation done:" |
119 | | - @ls -ld $(GOBIN)/geth-linux-* | grep mips64le |
120 | | - |
121 | | -geth-darwin: geth-darwin-386 geth-darwin-amd64 |
122 | | - @echo "Darwin cross compilation done:" |
123 | | - @ls -ld $(GOBIN)/geth-darwin-* |
124 | | - |
125 | | -geth-darwin-386: |
126 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=darwin/386 -v ./cmd/geth |
127 | | - @echo "Darwin 386 cross compilation done:" |
128 | | - @ls -ld $(GOBIN)/geth-darwin-* | grep 386 |
129 | | - |
130 | | -geth-darwin-amd64: |
131 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=darwin/amd64 -v ./cmd/geth |
132 | | - @echo "Darwin amd64 cross compilation done:" |
133 | | - @ls -ld $(GOBIN)/geth-darwin-* | grep amd64 |
134 | | - |
135 | | -geth-windows: geth-windows-386 geth-windows-amd64 |
136 | | - @echo "Windows cross compilation done:" |
137 | | - @ls -ld $(GOBIN)/geth-windows-* |
138 | | - |
139 | | -geth-windows-386: |
140 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=windows/386 -v ./cmd/geth |
141 | | - @echo "Windows 386 cross compilation done:" |
142 | | - @ls -ld $(GOBIN)/geth-windows-* | grep 386 |
143 | | - |
144 | | -geth-windows-amd64: |
145 | | - $(GORUN) build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth |
146 | | - @echo "Windows amd64 cross compilation done:" |
147 | | - @ls -ld $(GOBIN)/geth-windows-* | grep amd64 |
0 commit comments