This commit is contained in:
aozhiwei 2023-08-09 17:01:20 +08:00
parent 78b0d7bf2d
commit 25a08e1ddb
2 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ __pycache__
.user
node_modules/
nohup.out
bin/

View File

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