Files
tun2socks/Makefile
T
2019-08-20 16:55:44 +08:00

17 lines
405 B
Makefile

NAME=tun2socks
BINDIR=$(shell pwd)/bin
VERSION=$(shell git describe --tags --long || echo "unknown version")
BUILDTAGS='fakedns session'
GOBUILD=go build -ldflags '-s -w -X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)"'
all: build
build:
$(GOBUILD) -v -tags $(BUILDTAGS) -o $(BINDIR)/$(NAME)
debug:
$(GOBUILD) -v -tags $(BUILDTAGS) -race -o $(BINDIR)/$(NAME)
clean:
rm -rf $(BINDIR)