-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 672 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 672 Bytes
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
NAME=truffleproxy
BUILD=CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath
default:
@ echo "Compiling"
$(BUILD) -o $(NAME)
clean:
@ echo "Removing binaries and certificate files"
rm -f $(NAME)*
linux:
@echo "Compiling for Linux x64"
GOOS=linux GOARCH=amd64 $(BUILD) -o $(NAME)-Linux64
windows:
@echo "Compiling for Windows x64"
GOOS=windows GOARCH=amd64 $(BUILD) -o $(NAME)-Windows64.exe
mac:
@echo "Compiling for Mac x64"
GOOS=darwin GOARCH=amd64 $(BUILD) -o $(NAME)-Darwin64
m1:
@echo "Compiling for Mac M1"
GOOS=darwin GOARCH=arm64 $(BUILD) -o $(NAME)-M1
arm:
@echo "Compiling for Linux Arm64"
GOOS=linux GOARCH=arm64 $(BUILD) -o $(NAME)-LinuxArm64