goAdapter/Makefile

19 lines
879 B
Makefile
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#.PHONY用来定义伪目标。不创建目标文件而是去执行这个目标下面的命令
.PHONY: linux-armv5 linux-armv7 linux-386 linux-amd64 windows-386 windows-amd64
BINARY="openGW"
linux-armv5:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -o openGW_armV5 -ldflags "-s -w"
linux-armv7:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -o openGW_armV7 -ldflags "-s -w"
linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o openGW_arm64 -ldflags "-s -w"
linux-386:
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o openGW_linux386 -ldflags "-s -w"
linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o openGW_linux64 -ldflags "-s -w"
windows-386:
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o openGW_win386.exe -ldflags "-s -w"
windows-amd64:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o openGW_win64.exe -ldflags "-s -w"