diff --git a/Makefile b/Makefile index 18f21a346..78ca69a59 100755 --- a/Makefile +++ b/Makefile @@ -28,9 +28,9 @@ MAKE_FLAGS += -j$(shell cat /proc/cpuinfo | grep processor | wc -l) endif endif -.PHONY : demo conntrack netlink trace +.PHONY : demo conntrack netlink trace openrpc -all: demo conntrack netlink trace +all: demo conntrack netlink trace openrpc ifeq ($(OPT), install) #$(shell `find ../release -name "*.zip" -delete`) @@ -111,3 +111,12 @@ else $(MLOG)make all $(MAKE_FLAGS) -C Platform/build -f user.trace.test.Makefile MLOG=$(MLOG) DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=trace-test endif +openrpc: +ifeq ($(OPT), clean) + $(MLOG)make $(MAKE_FLAGS) -C Platform/build -f user.openrpc.Makefile cleanall MLOG=$(MLOG) MAKE_TARGET=openrpc +else ifeq ($(OPT), install) + $(MLOG)make $(MAKE_FLAGS) -C Platform/build -f user.openrpc.Makefile install DIR=$(DIR) MLOG=$(MLOG) MAKE_TARGET=openrpc +else + $(MLOG)make all $(MAKE_FLAGS) -C Platform/build -f user.openrpc.Makefile MLOG=$(MLOG) DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=openrpc +endif + diff --git a/Platform/build/user.openrpc.Makefile b/Platform/build/user.openrpc.Makefile index a919f4610..6658ff0e2 100755 --- a/Platform/build/user.openrpc.Makefile +++ b/Platform/build/user.openrpc.Makefile @@ -1,5 +1,5 @@ # target name, the target name must have the same name of c source file -TARGET_NAME=test-trace +TARGET_NAME=openrpc # target # for linux module driver: KO @@ -43,8 +43,8 @@ PLAT_LINUX_LDFLAGS := $(PLAT_ARM64_LDFLAGS) #gcc libs -ARM64_LIBS := -lpthread -lev -lm -LINUX_LIBS := -lpthread -lev -lm +ARM64_LIBS := -lpthread -lm +LINUX_LIBS := -lpthread -lm ifeq ($(PLAT_ARM64), TRUE) DEPEND_LIB += @@ -52,7 +52,7 @@ USER_CLEAN_ITEMS += endif ifeq ($(PLAT_LINUX), TRUE) -DEPEND_LIB += +DEPEND_LIB += ../thirdparty/x86_64/libev.so USER_CLEAN_ITEMS += endif