aozhiwei 4b2eca9989 1
2023-12-02 13:17:38 +08:00

22 lines
629 B
Makefile

compile:
@. /etc/profile
protoc --proto_path=proto --go_out=./cs proto/cs_msgid.proto
protoc --proto_path=proto --go_out=./cs proto/cs_proto.proto
protoc --proto_path=proto --go_out=./ss proto/ss_msgid.proto
protoc --proto_path=proto --go_out=./ss proto/ss_proto.proto
@export GOPROXY=https://goproxy.io
@go build -gcflags=all="-N -l" -o ../../bin/matchserver/bin
@echo "compile done"
debug:
@. /etc/profile
@export GOPROXY=https://goproxy.io
@go build -gcflags=all="-N -l" -ldflags "-X q5.optDebug=1" -o ../../bin/matchserver/bin
@echo "compile done"
clean:
@rm -f ../../bin/matchserver/bin
@echo "clean done"