2024-11-23 12:41:49 +09:00
|
|
|
SRCS=\
|
|
|
|
client.go \
|
2024-11-25 19:46:18 +09:00
|
|
|
client-ctl.go \
|
|
|
|
client-peer.go \
|
2024-11-23 12:41:49 +09:00
|
|
|
frame.go \
|
|
|
|
hodu.go \
|
|
|
|
hodu.pb.go \
|
|
|
|
hodu_grpc.pb.go \
|
|
|
|
packet.go \
|
|
|
|
server.go \
|
2024-12-01 21:47:11 +09:00
|
|
|
server-ctl.go \
|
2024-11-25 19:46:18 +09:00
|
|
|
server-peer.go \
|
2024-12-07 00:54:19 +09:00
|
|
|
server-ws.go
|
|
|
|
|
|
|
|
CMD_SRCS=\
|
|
|
|
cmd/config.go \
|
2024-11-23 12:41:49 +09:00
|
|
|
cmd/main.go
|
2024-11-23 12:34:23 +09:00
|
|
|
|
2024-11-23 12:41:49 +09:00
|
|
|
all: hodu
|
|
|
|
|
2024-12-07 00:54:19 +09:00
|
|
|
hodu: $(SRCS) $(CMD_SRCS)
|
|
|
|
CGO_ENABLED=0 go build -x -o $@ $(CMD_SRCS)
|
2024-11-23 12:41:49 +09:00
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean -x -i
|
|
|
|
rm -f hodu
|
2024-11-23 12:34:23 +09: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 22:59:37 +09:00
|
|
|
protoc --go_out=. --go_opt=paths=source_relative \
|
|
|
|
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
|
|
|
hodu.proto
|
2024-11-23 12:41:49 +09:00
|
|
|
|
|
|
|
.PHONY: clean
|