From 0defce43c97145172f10a5c114281e704820f95c Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期六, 13 六月 2020 13:53:38 +0800
Subject: [PATCH] update

---
 service/Makefile |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/service/Makefile b/service/Makefile
index 452d39d..81cb258 100644
--- a/service/Makefile
+++ b/service/Makefile
@@ -2,12 +2,15 @@
 # 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
@@ -16,7 +19,10 @@
 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
+
+all: $(PROGS)
 
 
 netdisk_service: $(ROOT)/device/hcnetdisk.c $(ROOT)/device/netdisk_factory.c login_store.c request_handler.c properties_config.c
@@ -26,7 +32,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