22 lines
624 B
Makefile
22 lines
624 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/imserver_new/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/imserver/bin
|
|
@echo "compile done"
|
|
|
|
clean:
|
|
@rm -f ../../bin/imserver/bin
|
|
@echo "clean done"
|