|
@@ -1,4 +1,4 @@
|
|
-export PATH := $(GOPATH)/bin:$(PATH)
|
|
|
|
|
|
+export PATH := $(PATH):`go env GOPATH`/bin
|
|
export GO111MODULE=on
|
|
export GO111MODULE=on
|
|
LDFLAGS := -s -w
|
|
LDFLAGS := -s -w
|
|
|
|
|
|
@@ -15,8 +15,8 @@ app:
|
|
gomips=$(shell echo "$(n)" | cut -d : -f 3);\
|
|
gomips=$(shell echo "$(n)" | cut -d : -f 3);\
|
|
target_suffix=$${os}_$${arch};\
|
|
target_suffix=$${os}_$${arch};\
|
|
echo "Build $${os}-$${arch}...";\
|
|
echo "Build $${os}-$${arch}...";\
|
|
- env CGO_ENABLED=0 GOOS=$${os} GOARCH=$${arch} GOMIPS=$${gomips} go build -trimpath -ldflags "$(LDFLAGS)" -o ./release/frpc_$${target_suffix} ./cmd/frpc;\
|
|
|
|
- env CGO_ENABLED=0 GOOS=$${os} GOARCH=$${arch} GOMIPS=$${gomips} go build -trimpath -ldflags "$(LDFLAGS)" -o ./release/frps_$${target_suffix} ./cmd/frps;\
|
|
|
|
|
|
+ env CGO_ENABLED=0 GOOS=$${os} GOARCH=$${arch} GOMIPS=$${gomips} go build -trimpath -ldflags "$(LDFLAGS)" -tags frpc -o ./release/frpc_$${target_suffix} ./cmd/frpc;\
|
|
|
|
+ env CGO_ENABLED=0 GOOS=$${os} GOARCH=$${arch} GOMIPS=$${gomips} go build -trimpath -ldflags "$(LDFLAGS)" -tags frps -o ./release/frps_$${target_suffix} ./cmd/frps;\
|
|
echo "Build $${os}-$${arch} done";\
|
|
echo "Build $${os}-$${arch} done";\
|
|
)
|
|
)
|
|
@mv ./release/frpc_windows_amd64 ./release/frpc_windows_amd64.exe
|
|
@mv ./release/frpc_windows_amd64 ./release/frpc_windows_amd64.exe
|