2024-11-23 03:41:49 +00:00
|
|
|
SRCS=\
|
|
|
|
c-peer.go \
|
|
|
|
client.go \
|
|
|
|
frame.go \
|
|
|
|
hodu.go \
|
|
|
|
hodu.pb.go \
|
|
|
|
hodu_grpc.pb.go \
|
|
|
|
packet.go \
|
|
|
|
s-peer.go \
|
|
|
|
server.go \
|
|
|
|
cmd/main.go
|
2024-11-23 03:34:23 +00:00
|
|
|
|
2024-11-23 03:41:49 +00:00
|
|
|
all: hodu
|
|
|
|
|
|
|
|
hodu: $(SRCS)
|
|
|
|
go build -x -o $@ cmd/main.go
|
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean -x -i
|
|
|
|
rm -f hodu
|
2024-11-23 03:34:23 +00:00
|
|
|
|
|
|
|
hodu.pb.go: hodu.proto
|
|
|
|
protoc --go_out=. --go_opt=paths=source_relative \
|
|
|
|
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
|
|
|
hodu.proto
|
|
|
|
|
|
|
|
hodu_grpc.pb.go: hodu.proto
|
2024-11-12 13:59:37 +00:00
|
|
|
protoc --go_out=. --go_opt=paths=source_relative \
|
|
|
|
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
|
|
|
hodu.proto
|
2024-11-23 03:41:49 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|