-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (22 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FLAGS = -ldflags "-s -w"
default: linux/amd64/sx1k
all: darwin/amd64/sx1k linux/386/sx1k linux/amd64/sx1k linux/arm/sx1k linux/arm64/sx1k linux/ppc64/sx1k linux/ppc64le/sx1k linux/riscv64/sx1k linux/s390x/sx1k
darwin/amd64/sx1k: main.go
GOOS=darwin GOARCH=amd64 go build $(FLAGS) -o darwin/amd64/sx1k
linux/386/sx1k: main.go
GOOS=linux GOARCH=386 go build $(FLAGS) -o linux/386/sx1k
linux/amd64/sx1k: main.go
GOOS=linux GOARCH=amd64 go build $(FLAGS) -o linux/amd64/sx1k
upx --brute linux/amd64/sx1k
linux/arm/sx1k: main.go
GOOS=linux GOARCH=arm go build $(FLAGS) -o linux/arm/sx1k
linux/arm64/sx1k: main.go
GOOS=linux GOARCH=arm64 go build $(FLAGS) -o linux/arm64/sx1k
linux/ppc64/sx1k: main.go
GOOS=linux GOARCH=ppc64 go build $(FLAGS) -o linux/ppc64/sx1k
linux/ppc64le/sx1k: main.go
GOOS=linux GOARCH=ppc64le go build $(FLAGS) -o linux/ppc64le/sx1k
linux/riscv64/sx1k: main.go
GOOS=linux GOARCH=riscv64 go build $(FLAGS) -o linux/riscv64/sx1k
linux/s390x/sx1k: main.go
GOOS=linux GOARCH=s390x go build $(FLAGS) -o linux/s390x/sx1k