-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
26 lines (16 loc) · 889 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PACKAGE=github.com/genshen/wssocks-plugin-ustb/wssocks-ustb
.PHONY: clean all
FLAGS=--trimpath
# wssocks-ustb:
# go build -o wssocks-ustb
all: wssocks-ustb-linux-amd64 wssocks-ustb-linux-arm64 wssocks-ustb-darwin-amd64 wssocks-ustb-windows-amd64.exe
wssocks-ustb-linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ${FLAGS} -o wssocks-ustb-linux-amd64 ${PACKAGE}
wssocks-ustb-linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ${FLAGS} -o wssocks-ustb-linux-arm64 ${PACKAGE}
wssocks-ustb-darwin-amd64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build ${FLAGS} -o wssocks-ustb-darwin-amd64 ${PACKAGE}
wssocks-ustb-windows-amd64.exe:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ${FLAGS} -o wssocks-ustb-windows-amd64.exe ${PACKAGE}
clean:
rm -f wssocks-ustb-linux-amd64 wssocks-ustb-linux-arm64 wssocks-ustb-darwin-amd64 wssocks-ustb-windows-amd64.exe