-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (43 loc) · 1.47 KB
/
Makefile
File metadata and controls
52 lines (43 loc) · 1.47 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: help build build-mcp test lint clean
help:
@echo "ZeroTier SDK - Makefile"
@echo ""
@echo "Available targets:"
@echo " build - Build all packages"
@echo " build-mcp - Build MCP binaries for all platforms"
@echo " build-mcp-linux - Build MCP for Linux"
@echo " build-mcp-darwin - Build MCP for macOS"
@echo " build-mcp-windows - Build MCP for Windows"
@echo " test - Run tests"
@echo " lint - Run linter"
@echo " clean - Clean build artifacts"
build:
go build ./...
go build ./example/...
go build ./cmd/mcp/...
build-mcp: build-mcp-linux build-mcp-darwin build-mcp-windows
@echo "✅ All MCP binaries built successfully"
@ls -lh dist/zerotier-mcp-*
build-mcp-linux:
@mkdir -p dist
@echo "Building Linux x86_64..."
GOOS=linux GOARCH=amd64 go build -o dist/zerotier-mcp-linux-amd64 ./cmd/mcp
@echo "Building Linux ARM64..."
GOOS=linux GOARCH=arm64 go build -o dist/zerotier-mcp-linux-arm64 ./cmd/mcp
build-mcp-darwin:
@mkdir -p dist
@echo "Building macOS Intel..."
GOOS=darwin GOARCH=amd64 go build -o dist/zerotier-mcp-darwin-amd64 ./cmd/mcp
@echo "Building macOS Apple Silicon..."
GOOS=darwin GOARCH=arm64 go build -o dist/zerotier-mcp-darwin-arm64 ./cmd/mcp
build-mcp-windows:
@mkdir -p dist
@echo "Building Windows x86_64..."
GOOS=windows GOARCH=amd64 go build -o dist/zerotier-mcp-windows-amd64.exe ./cmd/mcp
test:
go test -v -race ./...
lint:
golangci-lint run ./...
clean:
rm -rf dist/
go clean ./...