Skip to content

Commit

Permalink
opt Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sharego committed May 24, 2020
1 parent 7de0432 commit c609906
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions Makefile
@@ -1,20 +1,21 @@

CGO_ENABLED:=0
NAME:=proxysocket

debug:
CGO_ENABLED=$(CGO_ENABLED) go build -o proxysocket .
CGO_ENABLED=$(CGO_ENABLED) go build -o $(NAME) .

.PHONY : all

all: clean binary

binary:
@test -d bin || mkdir bin
CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" go build -o bin/proxysocket-linux-amd64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="darwin" go build -o bin/proxysocket-darwin-amd64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="windows" go build -o bin/proxysocket-windows-amd64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" GOARCH="arm64" go build -o bin/proxysocket-linux-aarch64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" go build -o bin/$(NAME)-linux-amd64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="darwin" go build -o bin/$(NAME)-darwin-amd64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="windows" go build -o bin/$(NAME)-windows-amd64 .
CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" GOARCH="arm64" go build -o bin/$(NAME)-linux-aarch64 .

.PHONY : clean
clean:
rm -f bin/proxysocket-*
rm -f $(NAME) bin/$(NAME)-*
2 changes: 1 addition & 1 deletion lib/proxychain.go
Expand Up @@ -17,7 +17,7 @@ type ProxyChainConn struct {
IsClosed bool
}

// Exchange on Connection or NoConnection
// Exchange on connection-orintend or connectionless

// connection 1 : Client <-1-> ProxyServer
// connection 2 : ProxyDailer <-2-> UpstreamService
Expand Down

0 comments on commit c609906

Please sign in to comment.