hodu/Makefile

33 lines
544 B
Makefile
Raw Permalink Normal View History

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:41:49 +00:00
all: hodu
hodu: $(SRCS)
go build -x -o $@ cmd/main.go
clean:
go clean -x -i
rm -f hodu
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
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