wings/Makefile

23 lines
787 B
Makefile
Raw Normal View History

2020-05-17 23:12:42 +00:00
build:
2020-10-17 20:52:38 +00:00
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags "all=-trimpath=$(pwd)" -o build/wings_linux_amd64 -v wings.go
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -gcflags "all=-trimpath=$(pwd)" -o build/wings_linux_arm64 -v wings.go
2017-06-27 10:42:56 +00:00
debug:
go build -race
2021-01-13 04:07:00 +00:00
sudo ./wings --debug --ignore-certificate-errors --config config.yml
# Runs a remotly debuggable session for Wings allowing an IDE to connect and target
# different breakpoints.
rmdebug:
go build -gcflags "all=-N -l" -race
sudo dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./wings -- --debug --ignore-certificate-errors --config config.yml
2020-05-17 23:12:42 +00:00
compress:
upx --brute build/wings_*
2017-06-27 10:42:56 +00:00
2020-05-17 23:12:42 +00:00
cross-build: clean build compress
2017-06-27 10:42:56 +00:00
2020-05-17 23:12:42 +00:00
clean:
2020-06-19 04:05:00 +00:00
rm -rf build/wings_*
.PHONY: all build compress clean