diff --git a/client/backend/Makefile b/client/backend/Makefile new file mode 100644 index 0000000..00afb28 --- /dev/null +++ b/client/backend/Makefile @@ -0,0 +1,18 @@ +CC := go +NAME := peer +OUT := bin/ + +all: clean windows linux darwin + +windows: peer.go types.go + GOOS=$@ GOARCH=amd64 $(CC) build -o $(OUT)$(NAME)_$@.exe $^ + +linux: peer.go types.go + GOOS=$@ GOARCH=amd64 $(CC) build -o $(OUT)$(NAME)_$@ $^ + +darwin: peer.go types.go + GOOS=$@ GOARCH=amd64 $(CC) build -o $(OUT)$(NAME)_$@_amd64 $^ + GOOS=$@ GOARCH=arm64 $(CC) build -o $(OUT)$(NAME)_$@_arm64 $^ + +clean: + $(RM) -r bin/ \ No newline at end of file