From 5ee033b3f16717e3a437aa4cc207cb0d760ac93d Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 18 六月 2020 10:41:55 +0800 Subject: [PATCH] add script --- service/Makefile | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/service/Makefile b/service/Makefile index 452d39d..67e9f73 100644 --- a/service/Makefile +++ b/service/Makefile @@ -2,21 +2,28 @@ # Makefile for common library. # ROOT=.. -LDLIBS+=-Wl,-rpath=$(ROOT)/lib/hc:$(ROOT)/lib/hc/HCNetSDKCom:$(ROOT)/common +LDLIBS+=-Wl,-rpath=$(ROOT)/lib/hc:$(ROOT)/lib/hc/HCNetSDKCom:$(ROOT)/common:$(ROOT)/lib/jsoncpp # 娴峰悍鍖呰矾寰� LDDIR += -L$(ROOT)/lib/hc -L$(ROOT)/lib/hc/HCNetSDKCom -LDLIBS += +# 寮�婧愬伐鍏峰寘璺緞 +LDDIR += -L$(ROOT)/lib/jsoncpp -L$(ROOT)/lib/nng + # 娴峰悍鍖� -LDLIBS += -lhcnetsdk -lhpr -lHCCore +LDLIBS += -lhcnetsdk -lhpr -lHCCore +# 寮�婧愬伐鍏峰寘 LDLIBS += -ljsoncpp -lnng -lpthread INCLUDE += -I$(ROOT)/device/include -LIB_NETDISK = $(ROOT)/libnetdisk.a -DLIB_NETDISK = $(ROOT)/libnetdisk.so +#LIB_NETDISK = $(ROOT)/libnetdisk.a +#DLIB_NETDISK = $(ROOT)/libnetdisk.so PLATFORM=$(shell $(ROOT)/systype.sh) include $(ROOT)/Make.defines.$(PLATFORM) -all: netdisk_service test_client test test_queue test_properties + +PROGS = netdisk_service test_client test test_queue test_properties + + +build: $(PROGS) netdisk_service: $(ROOT)/device/hcnetdisk.c $(ROOT)/device/netdisk_factory.c login_store.c request_handler.c properties_config.c @@ -26,7 +33,7 @@ test_properties: properties_config.c clean: - rm -f test *.o a.out core temp.* *.a *.so + rm -f $(TEMPFILES) $(PROGS) include $(ROOT)/Make.common.inc -- Gitblit v1.8.0