From 24641678c68b5eadafa49c9341c7fcbfcff28262 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 18 一月 2021 11:19:44 +0800
Subject: [PATCH] Merge branch 'master' into dev

---
 test/Makefile |   45 ++++++++++++++++++++++++++++-----------------
 1 files changed, 28 insertions(+), 17 deletions(-)

diff --git a/test/Makefile b/test/Makefile
index 643b72d..c490f5e 100755
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,26 +1,37 @@
-#
-# Makefile for common library.
-#
-ROOT=..
-LDLIBS+=-Wl,-rpath=$(ROOT)/lib:$(ROOT)/build/lib
-# 寮�婧愬伐鍏峰寘璺緞
-LDDIR +=  -L$(ROOT)/lib -L$(ROOT)/build/lib
-# 寮�婧愬伐鍏峰寘
-LDLIBS += -lshm_queue -lusgcommon -lpthread
 
-INCLUDE += -I$(ROOT)/build/include
-
+ROOT := ..
 PLATFORM=$(shell $(ROOT)/systype.sh)
 include $(ROOT)/Make.defines.$(PLATFORM)
 
- 
-PROGS = dgram_socket_test
+RPATH += -Wl,-rpath=$(ROOT)/lib:$(DEST)/lib
+# 寮�婧愬伐鍏峰寘璺緞
+LDDIR += -L$(DEST)/lib
+
+#-lusgcommon
+# 寮�婧愬伐鍏峰寘
+LDLIBS += -lshm_queue -lpthread -lusgcommon
+
+#-I$(ROOT)/include/usgcommon
+INCLUDES += -I${ROOT}/src -I${ROOT}/src/shm -I${ROOT}/src/queue -I${ROOT}/src/socket  -I${ROOT}/include/usgcommon
+
+PROGS = ${DEST}/test_sem
+
+DEPENDENCES = $(patsubst %, %.d, $(PROGS)) 
+
+#LIBCOMMON=${ROOT}/lib/libusgcommon.a
 
 build: $(PROGS)
+ 
 
-# test1: $(LIBCOMMON)
-
-# 濡傛灉鍖匒 寮曠敤鍖匓锛� B 瑕佹斁鍦� A 鍚庨潰
 
 clean:
-	rm -f $(TEMPFILES) $(PROGS)
+	rm -f $(PROGS) $(DEPENDENCES) $(TEMPFILES)
+
+# $(LIBCOMMON):
+# 	@(cd $(ROOT)/common && $(MAKE))
+
+-include $(DEPENDENCES)
+include $(ROOT)/Make.common.inc
+
+
+

--
Gitblit v1.8.0