gfwproxyshadowsocksdocker-imagegogolanggvisornatnetworksocks4socks5tcpip-stacktortun-devicetun2sockstunneludpwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
470 B
18 lines
470 B
NAME=tun2socks
|
|
BUILDDIR=$(shell pwd)/build
|
|
CMDDIR=$(shell pwd)/cmd/tun2socks
|
|
VERSION=$(shell git describe --tags --long || echo "unknown version")
|
|
BUILD_TAGS='exception fakedns socks stats'
|
|
BUILD_LDFLAGS='-s -w -X "main.version=$(VERSION)"'
|
|
GOBUILD=go build -ldflags $(BUILD_LDFLAGS) -v -tags $(BUILD_TAGS)
|
|
|
|
all: build
|
|
|
|
build:
|
|
cd $(CMDDIR) && $(GOBUILD) -o $(BUILDDIR)/$(NAME)
|
|
|
|
debug:
|
|
cd $(CMDDIR) && $(GOBUILD) -race -o $(BUILDDIR)/$(NAME)
|
|
|
|
clean:
|
|
rm -rf $(BUILDDIR)
|