forked from shadowsocks/shadowsocks-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 640 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 640 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
# Use shadowsocks as command prefix to avoid name conflict
# Maybe ss-local/server is better because easier to type
PREFIX := shadowsocks
LOCAL := $(GOPATH)/bin/$(PREFIX)-local
SERVER := $(GOPATH)/bin/$(PREFIX)-server
CGO := CGO_ENABLED=1
all: $(LOCAL) $(SERVER) $(TEST)
.PHONY: clean
clean:
rm -f $(LOCAL) $(SERVER) $(TEST)
# -a option is needed to ensure we disabled CGO
$(LOCAL): shadowsocks/*.go cmd/$(PREFIX)-local/*.go
cd cmd/$(PREFIX)-local; $(CGO) go install
$(SERVER): shadowsocks/*.go cmd/$(PREFIX)-server/*.go
cd cmd/$(PREFIX)-server; $(CGO) go install
local: $(LOCAL)
server: $(SERVER)
test:
cd shadowsocks; go test