From 989dc0092712e8972679050a0ad21595338a6905 Mon Sep 17 00:00:00 2001 From: dusanb Date: Tue, 13 Oct 2020 12:03:09 +0200 Subject: [PATCH] Add Makefile Signed-off-by: dusanb --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..efee1bc --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +all: + CGO_ENABLED=0 GOOS=linux go build -mod=vendor -ldflags "-s -w" -o build/coap-cli-linux cmd/main.go + CGO_ENABLED=0 GOOS=darwin go build -mod=vendor -ldflags "-s -w" -o build/coap-cli-darwin cmd/main.go + CGO_ENABLED=0 GOOS=windows go build -mod=vendor -ldflags "-s -w" -o build/coap-cli-windows cmd/main.go \ No newline at end of file