Skip to content
This repository was archived by the owner on May 16, 2021. It is now read-only.

Commit f8c91b0

Browse files
author
Alexander Sowitzki
committed
Add Makefile
1 parent 774197d commit f8c91b0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
GOLDFLAGS=-s -w -extldflags '-zrelro -znow'
2+
GOGCFLAGS=all=-trimpath=$PWD
3+
GOASMFLAGS=all=-trimpath=$PWD
4+
5+
.PHONY: all dist/arm64/mauzr dist/amd64/mauzr
6+
all: dist/arm64/mauzr dist/amd64/mauzr
7+
8+
dist/arm64/mauzr:
9+
GOARCH=arm64 go build -asmflags "$(GOASMFLAGS)" -gcflags "$(GOGCFLAGS)" -ldflags "$(GOLDFLAGS)" -o $@ ./cmd/mauzr
10+
11+
dist/amd64/mauzr:
12+
GOARCH=amd64 go build -asmflags "$(GOASMFLAGS)" -gcflags "$(GOGCFLAGS)" -ldflags "$(GOLDFLAGS)" -o $@ ./cmd/mauzr

0 commit comments

Comments
 (0)