修改:1、修改makefile文件,修改可执行文件名称

This commit is contained in:
pengwang 2021-08-05 22:19:05 +08:00
parent b82cb09966
commit 1090204641
3 changed files with 15 additions and 11 deletions

4
.gitignore vendored
View File

@ -7,3 +7,7 @@ log/
.DS_Store .DS_Store
openGW openGW
openGW.exe openGW.exe
openGW_arm64
openGW_armV5
openGW_linux64
openGW_win64.exe

View File

@ -4,16 +4,16 @@
BINARY="openGW" BINARY="openGW"
linux-armv5: linux-armv5:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -o openGW -ldflags "-s -w" CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -o openGW_armV5 -ldflags "-s -w"
linux-armv7: linux-armv7:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -o openGW -ldflags "-s -w" CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -o openGW_armV7 -ldflags "-s -w"
linux-arm64: linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o openGW -ldflags "-s -w" CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o openGW_arm64 -ldflags "-s -w"
linux-386: linux-386:
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o openGW -ldflags "-s -w" CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o openGW_linux386 -ldflags "-s -w"
linux-amd64: linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o openGW -ldflags "-s -w" CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o openGW_linux64 -ldflags "-s -w"
windows-386: windows-386:
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o openGW.exe -ldflags "-s -w" CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o openGW_win386.exe -ldflags "-s -w"
windows-amd64: windows-amd64:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o openGW.exe -ldflags "-s -w" CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o openGW_win64.exe -ldflags "-s -w"

View File

@ -1,8 +1,8 @@
make linux-armv5 make linux-armv5
cp openGW ../Release/linux-armv5/ cp openGW_armV5 ../Release/
make linux-arm64 make linux-arm64
cp openGW ../Release/linux-arm64/ cp openGW_arm64 ../Release/
make linux-amd64 make linux-amd64
cp openGW ../Release/linux-amd64/ cp openGW_linux64 ../Release/
make windows-amd64 make windows-amd64
cp openGW.exe ../Release/windows-amd64/ cp openGW_win64.exe ../Release/