aozhiwei ddc3ea0925 1
2020-10-27 21:10:44 +08:00

21 lines
526 B
Makefile

compile:
@. /etc/profile
protoc --proto_path=../tools/protobuild --go_out=./mt ../tools/protobuild/mt.proto
@export GOPROXY=https://goproxy.io
@go build -gcflags=all="-N -l" -o ../bin/statserver
@echo "compile done"
debug:
@. /etc/profile
protoc --proto_path=../tools/protobuild --go_out=./mt ../tools/protobuild/mt.proto
@export GOPROXY=https://goproxy.io
@go build -gcflags=all="-N -l" -ldflags "-X q5.optDebug=1" -o ../bin/statserver
@echo "compile done"
clean:
@rm -f ../bin/statserver
@echo "clean done"