forked from brosck/mantra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
18 lines (16 loc) · 774 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC = go
all:
mkdir build
export CGO_ENABLED=0
GOOS=linux GOARCH=amd64 $(CC) build -o build/mantra-amd64-linux
GOOS=linux GOARCH=386 $(CC) build -o build/mantra-i386-linux
GOOS=linux GOARCH=arm64 $(CC) build -o build/mantra-arm64-linux
GOOS=linux GOARCH=arm GOARM=5 $(CC) build -o build/mantra-armv5-linux
GOOS=linux GOARCH=arm GOARM=6 $(CC) build -o build/mantra-armv6-linux
GOOS=linux GOARCH=arm GOARM=7 $(CC) build -o build/mantra-armv7-linux
GOOS=darwin GOARCH=amd64 $(CC) build -o build/mantra-amd64-darwin
GOOS=darwin GOARCH=arm64 $(CC) build -o build/mantra-arm64-darwin
GOOS=windows GOARCH=386 $(CC) build -o build/mantra-i386-windows.exe
GOOS=windows GOARCH=amd64 $(CC) build -o build/mantra-amd64-windows.exe
clean:
rm -rf build