-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 790 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 790 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
.PHONY: build build-linux-amd64 build-linux-arm64 build-all clean
# Build for current platform (requires embedded/slipnet to be placed manually)
build:
go build -o bin/dns-multiplexer
# Build for Linux amd64 with bundled slipnet
build-linux-amd64:
cp bin/slipnet-linux-amd64 embedded/slipnet
GOOS=linux GOARCH=amd64 go build -o bin/dns-multiplexer-linux-amd64
rm -f embedded/slipnet
# Build for Linux arm64 with bundled slipnet
build-linux-arm64:
cp bin/slipnet-linux-arm64 embedded/slipnet
GOOS=linux GOARCH=arm64 go build -o bin/dns-multiplexer-linux-arm64
rm -f embedded/slipnet
# Build both Linux targets
build-all: build-linux-amd64 build-linux-arm64
clean:
rm -f embedded/slipnet
rm -f bin/dns-multiplexer bin/dns-multiplexer-linux-amd64 bin/dns-multiplexer-linux-arm64