feat: build proect for restproxy

This commit is contained in:
zhangsz
2025-03-06 20:02:40 +08:00
parent aca2bace68
commit fea044e6fe
3962 changed files with 979480 additions and 222551 deletions

26
proxy_go/Makefile Normal file
View File

@@ -0,0 +1,26 @@
# Makefile for rest agent project
PROJECT = restproxy_go
VERSION = 2.2502.3
PLATFORM = amd64
# ARMPLATFORM = aarch64
# BUILDDIR = ../../build
# DEBBUILDDIR = ../../debbuild
# RPMBUILDDIR = $(HOME)/goprojects/rpmbuild
# INSTALLDIR = /usr/local/omc
# RELEASEDIR = ../../release
# LIBDIR = be.ems/lib
BINDIR = ../bin
BINNAME = $(BINDIR)/restproxy_go
.PHONY: build $(BINNAME)
build $(BINNAME):
go build -o $(BINNAME) -v -ldflags "-s -w -X '$(LIBDIR)/global.Version=$(VERSION)' \
-X '$(LIBDIR)/global.BuildTime=`date`' \
-X '$(LIBDIR)/global.GoVer=`go version`'"
run: $(BINNAME)
./$(BINNAME)
clean:
rm ./$(BINNAME)

4
proxy_go/make.log Normal file
View File

@@ -0,0 +1,4 @@
go build -o ../bin/restproxy_go -v -ldflags "-s -w -X '/global.Version=2.2502.3' \
-X '/global.BuildTime=`date`' \
-X '/global.GoVer=`go version`'"
proxy