mirror of
https://github.com/darmiel/yaxc.git
synced 2024-12-27 01:33:18 +08:00
Added -ldflags="-s -w"
to Makefile
This commit is contained in:
parent
2b5285e1d0
commit
27b473e675
1 changed files with 10 additions and 10 deletions
20
Makefile
20
Makefile
|
@ -3,19 +3,19 @@ compile:
|
|||
@echo "Compiling for every OS and Platform"
|
||||
|
||||
@echo "🐧 Compile for Linux"
|
||||
GOOS=linux GOARCH=amd64 go build -o ./bin/yaxc-linux-amd64 ./main.go
|
||||
GOOS=linux GOARCH=386 go build -o ./bin/yaxc-linux-386 ./main.go
|
||||
GOOS=linux GOARCH=arm go build -o ./bin/yaxc-linux-arm ./main.go
|
||||
GOOS=linux GOARCH=arm64 go build -o ./bin/yaxc-linux-arm64 ./main.go
|
||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/yaxc-linux-amd64 ./main.go
|
||||
GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o ./bin/yaxc-linux-386 ./main.go
|
||||
GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o ./bin/yaxc-linux-arm ./main.go
|
||||
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o ./bin/yaxc-linux-arm64 ./main.go
|
||||
|
||||
@echo "🍏 Compile for Apple"
|
||||
GOOS=darwin GOARCH=amd64 go build -o ./bin/yaxc-darwin-amd64 ./main.go
|
||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/yaxc-darwin-amd64 ./main.go
|
||||
|
||||
@echo "🪟 Compile for Windows"
|
||||
GOOS=windows GOARCH=amd64 go build -o ./bin/yaxc-windows-amd64.exe ./main.go
|
||||
GOOS=windows GOARCH=386 go build -o ./bin/yaxc-windows-386.exe ./main.go
|
||||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/yaxc-windows-amd64.exe ./main.go
|
||||
GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o ./bin/yaxc-windows-386.exe ./main.go
|
||||
|
||||
@echo "🐡 Compile for FreeBSD"
|
||||
GOOS=freebsd GOARCH=amd64 go build -o ./bin/yaxc-freebsd-amd64 ./main.go
|
||||
GOOS=freebsd GOARCH=386 go build -o ./bin/yaxc-freebsd-386 ./main.go
|
||||
GOOS=freebsd GOARCH=arm go build -o ./bin/yaxc-freebsd-arm ./main.go
|
||||
GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/yaxc-freebsd-amd64 ./main.go
|
||||
GOOS=freebsd GOARCH=386 go build -ldflags="-s -w" -o ./bin/yaxc-freebsd-386 ./main.go
|
||||
GOOS=freebsd GOARCH=arm go build -ldflags="-s -w" -o ./bin/yaxc-freebsd-arm ./main.go
|
||||
|
|
Loading…
Reference in a new issue