github.com/digdeepmining/go-atheios@v1.5.13-0.20180902133602-d5687a2e6f43/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: gath android ios gath-cross evm all test clean
     6  .PHONY: gath-linux gath-linux-386 gath-linux-amd64 gath-linux-mips64 gath-linux-mips64le
     7  .PHONY: gath-linux-arm gath-linux-arm-5 gath-linux-arm-6 gath-linux-arm-7 gath-linux-arm64
     8  .PHONY: gath-darwin gath-darwin-386 gath-darwin-amd64
     9  .PHONY: gath-windows gath-windows-386 gath-windows-amd64
    10  
    11  GOBIN = build/bin
    12  GO ?= latest
    13  
    14  gath:
    15  	build/env.sh go run build/ci.go install ./cmd/gath
    16  	@echo "Done building."
    17  	@echo "Run \"$(GOBIN)/gath\" to launch gath."
    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)/gath.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)/gath.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  gath-cross: gath-linux gath-darwin gath-windows gath-android gath-ios
    46  	@echo "Full cross compilation done:"
    47  	@ls -ld $(GOBIN)/gath-*
    48  
    49  gath-linux: gath-linux-386 gath-linux-amd64 gath-linux-arm gath-linux-mips64 gath-linux-mips64le
    50  	@echo "Linux cross compilation done:"
    51  	@ls -ld $(GOBIN)/gath-linux-*
    52  
    53  gath-linux-386:
    54  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/386 -v ./cmd/gath
    55  	@echo "Linux 386 cross compilation done:"
    56  	@ls -ld $(GOBIN)/gath-linux-* | grep 386
    57  
    58  gath-linux-amd64:
    59  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/amd64 -v ./cmd/gath
    60  	@echo "Linux amd64 cross compilation done:"
    61  	@ls -ld $(GOBIN)/gath-linux-* | grep amd64
    62  
    63  gath-linux-arm: gath-linux-arm-5 gath-linux-arm-6 gath-linux-arm-7 gath-linux-arm64
    64  	@echo "Linux ARM cross compilation done:"
    65  	@ls -ld $(GOBIN)/gath-linux-* | grep arm
    66  
    67  gath-linux-arm-5:
    68  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-5 -v ./cmd/gath
    69  	@echo "Linux ARMv5 cross compilation done:"
    70  	@ls -ld $(GOBIN)/gath-linux-* | grep arm-5
    71  
    72  gath-linux-arm-6:
    73  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-6 -v ./cmd/gath
    74  	@echo "Linux ARMv6 cross compilation done:"
    75  	@ls -ld $(GOBIN)/gath-linux-* | grep arm-6
    76  
    77  gath-linux-arm-7:
    78  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-7 -v ./cmd/gath
    79  	@echo "Linux ARMv7 cross compilation done:"
    80  	@ls -ld $(GOBIN)/gath-linux-* | grep arm-7
    81  
    82  gath-linux-arm64:
    83  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm64 -v ./cmd/gath
    84  	@echo "Linux ARM64 cross compilation done:"
    85  	@ls -ld $(GOBIN)/gath-linux-* | grep arm64
    86  
    87  gath-linux-mips64:
    88  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64 -v ./cmd/gath
    89  	@echo "Linux MIPS64 cross compilation done:"
    90  	@ls -ld $(GOBIN)/gath-linux-* | grep mips64
    91  
    92  gath-linux-mips64le:
    93  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64le -v ./cmd/gath
    94  	@echo "Linux MIPS64le cross compilation done:"
    95  	@ls -ld $(GOBIN)/gath-linux-* | grep mips64le
    96  
    97  gath-darwin: gath-darwin-386 gath-darwin-amd64
    98  	@echo "Darwin cross compilation done:"
    99  	@ls -ld $(GOBIN)/gath-darwin-*
   100  
   101  gath-darwin-386:
   102  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=darwin/386 -v ./cmd/gath
   103  	@echo "Darwin 386 cross compilation done:"
   104  	@ls -ld $(GOBIN)/gath-darwin-* | grep 386
   105  
   106  gath-darwin-amd64:
   107  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=darwin/amd64 -v ./cmd/gath
   108  	@echo "Darwin amd64 cross compilation done:"
   109  	@ls -ld $(GOBIN)/gath-darwin-* | grep amd64
   110  
   111  gath-windows: gath-windows-386 gath-windows-amd64
   112  	@echo "Windows cross compilation done:"
   113  	@ls -ld $(GOBIN)/gath-windows-*
   114  
   115  gath-windows-386:
   116  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=windows/386 -v ./cmd/gath
   117  	@echo "Windows 386 cross compilation done:"
   118  	@ls -ld $(GOBIN)/gath-windows-* | grep 386
   119  
   120  gath-windows-amd64:
   121  	build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=windows/amd64 -v ./cmd/gath
   122  	@echo "Windows amd64 cross compilation done:"
   123  	@ls -ld $(GOBIN)/gath-windows-* | grep amd64