Commit db1133ac authored by wei.xuan's avatar wei.xuan

fix:fix makefile

parent 315f3e76
UNAME := $(shell uname)
build: build:
CGO_ENABLE=0 go build -trimpath -ldflags '-w -s' -o majora-cli CGO_ENABLE=0 go build -trimpath -ldflags '-w -s' -o majora-cli
...@@ -9,7 +10,11 @@ releaseall: ...@@ -9,7 +10,11 @@ releaseall:
goreleaser build --rm-dist --snapshot goreleaser build --rm-dist --snapshot
sdk: sdk:
CGO_ENABLED=1 go build -trimpath -ldflags '-s -w --extldflags "-fpic"' --buildmode=c-shared -o lib/libmajora_mac.so lib/sdk.go CGO_ENABLED=1 go build -trimpath -ldflags '-s -w --extldflags "-fpic"' --buildmode=c-shared -o lib/libmajora_$(UNAME).so lib/sdk.go
sdk_win:
CGO_ENABLED=1 go build -trimpath -ldflags '-s -w --extldflags "-fpic"' --buildmode=c-shared -o lib/libmajora_win.so lib/sdk.go
clean: clean:
rm -fr dist rm -fr dist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment