diff --git a/Makefile b/Makefile index 9ad8070..71e9610 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,19 @@ -all: hivemind hivemind-lite +all: hivemind hivemind-musl hivemind-lite hivemind: go build -o build/hivemind ./cmd/hivemind +hivemind-musl: + CC=musl-gcc go build \ + -ldflags="-linkmode external -extldflags '-static'" \ + -o build/hivemind-musl \ + ./cmd/hivemind + hivemind-lite: CC=musl-gcc go build \ -ldflags="-linkmode external -extldflags '-static'" \ -o build/hivemind-lite \ ./cmd/hivemind-lite -.phony: all hivemind hivemind-lite +.phony: all hivemind hivemind-musl hivemind-lite