21 lines
526 B
Makefile
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"
|