github.com/murrekatt/go-ethereum@v1.5.8-0.20170123175102-fc52f2c007fb/Makefile (about) 1 # This Makefile is meant to be used by people that do not usually work 2 # with Go source code. If you know what GOPATH is then you probably 3 # don't need to bother with make. 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 10 11 GOBIN = build/bin 12 GO ?= latest 13 14 geth: 15 build/env.sh go run build/ci.go install ./cmd/geth 16 @echo "Done building." 17 @echo "Run \"$(GOBIN)/geth\" to launch geth." 18 19 evm: 20 build/env.sh go run build/ci.go install ./cmd/evm 21 @echo "Done building." 22 @echo "Run \"$(GOBIN)/evm\" to start the evm." 23 24 all: 25 build/env.sh go run build/ci.go install 26 27 android: 28 build/env.sh go run build/ci.go aar --local 29 @echo "Done building." 30 @echo "Import \"$(GOBIN)/geth.aar\" to use the library." 31 32 ios: 33 build/env.sh go run build/ci.go xcode --local 34 @echo "Done building." 35 @echo "Import \"$(GOBIN)/Geth.framework\" to use the library." 36 37 test: all 38 build/env.sh go run build/ci.go test 39 40 clean: 41 rm -fr build/_workspace/pkg/ $(GOBIN)/* 42 43 # Cross Compilation Targets (xgo) 44 45 geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios 46 @echo "Full cross compilation done:" 47 @ls -ld $(GOBIN)/geth-* 48 49 geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 geth-linux-mips64le 50 @echo "Linux cross compilation done:" 51 @ls -ld $(GOBIN)/geth-linux-* 52 53 geth-linux-386: 54 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/386 -v ./cmd/geth 55 @echo "Linux 386 cross compilation done:" 56 @ls -ld $(GOBIN)/geth-linux-* | grep 386 57 58 geth-linux-amd64: 59 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/amd64 -v ./cmd/geth 60 @echo "Linux amd64 cross compilation done:" 61 @ls -ld $(GOBIN)/geth-linux-* | grep amd64 62 63 geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64 64 @echo "Linux ARM cross compilation done:" 65 @ls -ld $(GOBIN)/geth-linux-* | grep arm 66 67 geth-linux-arm-5: 68 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-5 -v ./cmd/geth 69 @echo "Linux ARMv5 cross compilation done:" 70 @ls -ld $(GOBIN)/geth-linux-* | grep arm-5 71 72 geth-linux-arm-6: 73 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-6 -v ./cmd/geth 74 @echo "Linux ARMv6 cross compilation done:" 75 @ls -ld $(GOBIN)/geth-linux-* | grep arm-6 76 77 geth-linux-arm-7: 78 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-7 -v ./cmd/geth 79 @echo "Linux ARMv7 cross compilation done:" 80 @ls -ld $(GOBIN)/geth-linux-* | grep arm-7 81 82 geth-linux-arm64: 83 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm64 -v ./cmd/geth 84 @echo "Linux ARM64 cross compilation done:" 85 @ls -ld $(GOBIN)/geth-linux-* | grep arm64 86 87 geth-linux-mips64: 88 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64 -v ./cmd/geth 89 @echo "Linux MIPS64 cross compilation done:" 90 @ls -ld $(GOBIN)/geth-linux-* | grep mips64 91 92 geth-linux-mips64le: 93 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64le -v ./cmd/geth 94 @echo "Linux MIPS64le cross compilation done:" 95 @ls -ld $(GOBIN)/geth-linux-* | grep mips64le 96 97 geth-darwin: geth-darwin-386 geth-darwin-amd64 98 @echo "Darwin cross compilation done:" 99 @ls -ld $(GOBIN)/geth-darwin-* 100 101 geth-darwin-386: 102 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=darwin/386 -v ./cmd/geth 103 @echo "Darwin 386 cross compilation done:" 104 @ls -ld $(GOBIN)/geth-darwin-* | grep 386 105 106 geth-darwin-amd64: 107 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=darwin/amd64 -v ./cmd/geth 108 @echo "Darwin amd64 cross compilation done:" 109 @ls -ld $(GOBIN)/geth-darwin-* | grep amd64 110 111 geth-windows: geth-windows-386 geth-windows-amd64 112 @echo "Windows cross compilation done:" 113 @ls -ld $(GOBIN)/geth-windows-* 114 115 geth-windows-386: 116 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=windows/386 -v ./cmd/geth 117 @echo "Windows 386 cross compilation done:" 118 @ls -ld $(GOBIN)/geth-windows-* | grep 386 119 120 geth-windows-amd64: 121 build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=windows/amd64 -v ./cmd/geth 122 @echo "Windows amd64 cross compilation done:" 123 @ls -ld $(GOBIN)/geth-windows-* | grep amd64