add a makefile

main
Bill Mill 2 years ago
parent 95f1952791
commit 89e489de4f
  1. 13
      Makefile

@ -0,0 +1,13 @@
bin/springer:
go build -o bin/springer server/main.go
# Use zig as the cc to cross-compile mattn/sqlite for linux
#
# working off https://zig.news/kristoff/building-sqlite-with-cgo-for-every-os-4cic
#
# this is basically magic
#
# to run locally:
# docker run -it -v $(pwd)/bin:/app ubuntu /app/springer-linux
bin/springer-linux:
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC="zig cc -target x86_64-linux" CXX="zig cc -target x86_64-linux" go build -o bin/springer-linux server/main.go
Loading…
Cancel
Save