forked from CodeSecurityTeam/frp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 1.64 KB
/
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
frps-linux:
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frps -o bin/frps ./cmd/frps
frps-darwin:
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frps -o bin/frps ./cmd/frps
frps-windows:
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frps -o bin/frps.exe ./cmd/frps
frpc-darwin:
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frpc -o bin/frpc ./cmd1/frpc
frpc-linux:
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frpc -o bin/frpc ./cmd1/frpc
frpc-windows:
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frpc -o bin/frpc.exe ./cmd1/frpc
frpc-windows-x:
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 garble build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frpc -o bin/frpc.exe ./cmd1/frpc
frpc-linux-x:
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 garble build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frpc -o bin/frpc ./cmd1/frpc
frpc-darwin-x:
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 garble build -ldflags "-s -w" -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags frpc -o bin/frpc ./cmd1/frpc