From 26ed48c4e616014ee760fd13d13dbdc8539c34e3 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 22 十二月 2020 19:21:55 +0800 Subject: [PATCH] 解决sendandrecv发送到一个不存在key的情况 --- test/Makefile | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/test/Makefile b/test/Makefile index eee9f77..f719401 100755 --- a/test/Makefile +++ b/test/Makefile @@ -1,39 +1,39 @@ -# -# Makefile for common library. -# -ROOT=.. -LDLIBS+=-Wl,-rpath=$(ROOT)/queue:$(ROOT)/lib -# 寮�婧愬伐鍏峰寘璺緞 -LDDIR += -L$(ROOT)/queue -# 寮�婧愬伐鍏峰寘 -LDLIBS += -lshm_queue -lusgcommon -lpthread -INCLUDE += -I$(ROOT)/queue/ -I$(ROOT)/queue/include - +ROOT := .. PLATFORM=$(shell $(ROOT)/systype.sh) include $(ROOT)/Make.defines.$(PLATFORM) - -PROGS = communication +#RPATH += -Wl,-rpath=${ROOT}/lib +# 寮�婧愬伐鍏峰寘璺緞 +LDDIR += -L${DEST}/lib + +# 寮�婧愬伐鍏峰寘 +LDLIBS += -lshm_queue -lusgcommon -lpthread + +INCLUDES += -I${DEST}/include/shmqueue -I$(ROOT)/include/usgcommon -build: $(PROGS) +PROGS = ${DEST}/test -# test1: $(LIBCOMMON) +DEPENDENCES = $(patsubst %, %.d, $(PROGS)) -# 濡傛灉鍖匒 寮曠敤鍖匓锛� B 瑕佹斁鍦� A 鍚庨潰 - +#LIBCOMMON=${ROOT}/lib/libusgcommon.a -test_queue: test.h $(ROOT)/queue/include/lock_free_queue.h +build: $(PROGS) -single_productor: test.h $(ROOT)/queue/include/lock_free_queue.h -single_consumer: test.h $(ROOT)/queue/include/lock_free_queue.h +# class +#$(DEST)/kucker : kucker.c + clean: - rm -f $(TEMPFILES) $(PROGS) + rm -f $(PROGS) $(DEPENDENCES) $(TEMPFILES) + +# $(LIBCOMMON): +# @(cd $(ROOT)/common && $(MAKE)) + +-include $(DEPENDENCES) +include $(ROOT)/Make.common.inc -$(LIBQUEUE): - (cd $(ROOT)/queue && $(MAKE)) -- Gitblit v1.8.0