From a5f8bdf484b74b4358974337ec07a3f18bbe0291 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 14 七月 2020 16:28:35 +0800
Subject: [PATCH] lib

---
 queue/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/queue/Makefile b/queue/Makefile
index c18e39a..c9a9e38 100644
--- a/queue/Makefile
+++ b/queue/Makefile
@@ -7,7 +7,7 @@
 #LDDIR += -L$(ROOT)/lib/jsoncpp -L$(ROOT)/lib/nng
 
 # 寮�婧愬伐鍏峰寘
-#LDLIBS += -ljsoncpp  -lnng  -lpthread
+LDLIBS += -lusgcommon
 
 #INCLUDE += -I$(ROOT)/device/include
 
@@ -20,7 +20,7 @@
 SOURCES := $(wildcard *.c)
 OBJS   = $(patsubst %.c, %.o, $(SOURCES)) 
 
-MYLIBS = $(LIBSQUEUE)
+MYLIBS = $(LIBSQUEUE) $(DLIBSQUEUE)
 
 all: build
  
@@ -29,13 +29,13 @@
 
 #static lib
 $(LIBSQUEUE): $(OBJS)
-	$(AR) rv $@ $?
+	$(AR) rv $@ $? $(ROOT)/lib/libusgcommon.a
 	$(RANLIB) $@
 
 #dynamic lib
 $(DLIBSQUEUE): $(SOURCES)
 	rm -f *.o
-	$(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS)
+	$(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS) $(ROOT)/lib/libusgcommon.so
 
 
 #PREFIX is environment variable, but if it is not set, then set default value

--
Gitblit v1.8.0