|
|
@ -2,7 +2,7 @@ export PATH := $(PATH):`go env GOPATH`/bin |
|
|
|
export GO111MODULE=on
|
|
|
|
export GO111MODULE=on
|
|
|
|
LDFLAGS := -s -w
|
|
|
|
LDFLAGS := -s -w
|
|
|
|
|
|
|
|
|
|
|
|
os-archs=darwin:amd64 darwin:arm64 freebsd:amd64 linux:amd64 linux:arm linux:arm:6 linux:arm64 windows:amd64 windows:arm64 linux:mips64 linux:mips64le linux:mips:softfloat linux:mipsle:softfloat linux:riscv64 android:arm64
|
|
|
|
os-archs=darwin:amd64 darwin:arm64 freebsd:amd64 linux:amd64 linux:arm:7 linux:arm:5 linux:arm64 windows:amd64 windows:arm64 linux:mips64 linux:mips64le linux:mips:softfloat linux:mipsle:softfloat linux:riscv64 android:arm64
|
|
|
|
|
|
|
|
|
|
|
|
all: build |
|
|
|
all: build |
|
|
|
|
|
|
|
|
|
|
@ -16,8 +16,13 @@ app: |
|
|
|
flags=''; \
|
|
|
|
flags=''; \
|
|
|
|
target_suffix=$${os}_$${arch}; \
|
|
|
|
target_suffix=$${os}_$${arch}; \
|
|
|
|
if [ "$${os}" = "linux" ] && [ "$${arch}" = "arm" ] && [ "$${extra}" != "" ] ; then \
|
|
|
|
if [ "$${os}" = "linux" ] && [ "$${arch}" = "arm" ] && [ "$${extra}" != "" ] ; then \
|
|
|
|
flags=GOARM=$${extra}; \
|
|
|
|
if [ "$${extra}" = "7" ]; then \
|
|
|
|
target_suffix=$${os}_$${arch}_$${extra}; \
|
|
|
|
flags=GOARM=7; \
|
|
|
|
|
|
|
|
target_suffix=$${os}_arm_hf; \
|
|
|
|
|
|
|
|
elif [ "$${extra}" = "5" ]; then \
|
|
|
|
|
|
|
|
flags=GOARM=5; \
|
|
|
|
|
|
|
|
target_suffix=$${os}_arm; \
|
|
|
|
|
|
|
|
fi; \
|
|
|
|
elif [ "$${os}" = "linux" ] && ([ "$${arch}" = "mips" ] || [ "$${arch}" = "mipsle" ]) && [ "$${extra}" != "" ] ; then \
|
|
|
|
elif [ "$${os}" = "linux" ] && ([ "$${arch}" = "mips" ] || [ "$${arch}" = "mipsle" ]) && [ "$${extra}" != "" ] ; then \
|
|
|
|
flags=GOMIPS=$${extra}; \
|
|
|
|
flags=GOMIPS=$${extra}; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|