You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
639 B

bin/springerd: cmd/springerd/main.go server/main.go
go build -o bin/springerd ./cmd/springerd
bin/springer: client/main.go
go build -o bin/springer ./cmd/springer
# 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/springerd-linux
bin/springerd-linux: cmd/springerd/main.go server/main.go
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/springerd-linux ./cmd/springerd