all: gen game IMGTIME := $(shell date "+%G%m%d_%H%M%S") pname = plugin-$(IMGTIME).so gen: protoc -I./protos --go_out=./protos --go-grpc_out=./protos ./protos/*proto protoc-go-inject-tag -input=./protos/pb/*.pb.go test: go run test/client.go http: go run cmd/http.go game:plugin go run cmd/game.go build: go build -o bin/account cmd/http.go go build -o bin/game cmd/game.go go build -o bin/test test/client.go plugin: #go build -ldflags -pluginpath="plugin/hot-1" --buildmode=plugin -o bin/plugin.so src/plugin/*.go go build --buildmode=plugin -o bin/$(pname) src/plugin/*.go cd bin && rm -rf plugin.so && ln -s $(pname) plugin.so && cd - .PHONY: all build protos test cert plugin