1 Star 0 Fork 0

fabsnail / dog-tunnel

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Makefile 1.18 KB
Copy Edit Web IDE Raw Blame History
James Jin authored 2017-06-14 21:52 . add muti os bin for cross-platform
all:
@make release
release:
make mac
make linux
make win
make pi
mac:
make client
make server
linux:
make client_linux
make server_linux
pi:
make client_pi
make server_pi
win:
make client_win
make server_win
debug:
make client_debug
make server_debug
client_debug:
@go build -gcflags "-N -l" -o dtunnel_d client.go
server_debug:
@go build -gcflags "-N -l" -o dtunnel_s_d server.go
client:
@go build -ldflags "-s -w" -o bin/dtunnel client.go
client_linux:
@GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/linux/dtunnel client.go
client_pi:
@GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o bin/pi/dtunnel client.go
client_win:
@GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o bin/windows/dtunnel.exe client.go
server:
@go build -ldflags "-s -w" -o bin/dtunnel_s server.go
server_linux:
@GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/linux/dtunnel_s server.go
server_pi:
@GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o bin/pi/dtunnel_s server.go
server_win:
@GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o bin/windows/dtunnel_s.exe server.go
clean:
@rm -rf bin/*
.PHONY: all debug release client_debug server_debug client server clean

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/fabsnail/dog-tunnel.git
git@gitee.com:fabsnail/dog-tunnel.git
fabsnail
dog-tunnel
dog-tunnel
master

Search