Makefile 455 B

1234567891011121314151617181920212223
  1. CFLAGS="-O3 \
  2. -DSQLITE_ENABLE_JSON1 \
  3. -DSQLITE_ENABLE_RTREE \
  4. -DSQLITE_ENABLE_FTS5 \
  5. -DSQLITE_SOUNDEX \
  6. -DSQLITE_ENABLE_GEOPOLY \
  7. -DSQLITE_USE_ALLOCA \
  8. -DUHAHA_GOODIES"
  9. all: local
  10. .PHONY: linux
  11. linux:
  12. CGO_ENABLED=1 CC=x86_64-linux-musl-gcc GOOS=linux GOARCH=amd64 go install -ldflags "-linkmode external -extldflags -static -s -w"
  13. .PHONY: local
  14. local:
  15. CGO_ENABLED=1 CGO_CFLAGS=$(CFLAGS) go build
  16. .PHONY: clean
  17. clean:
  18. rm -f gosqlite