wangzhengquan
2020-07-09 91f003aac4c95f4d2a2fc0782c9bea9d484b6919
test/Makefile
@@ -4,17 +4,17 @@
ROOT=..
#LDLIBS+=-Wl,-rpath=$(ROOT)/common:$(ROOT)/lib/jsoncpp
# 开源工具包路径
LDDIR += -L$(ROOT)/squeue
LDDIR += -L$(ROOT)/queue
# 开源工具包
LDLIBS += -lsqueue -lpthread
LDLIBS += -lshm_queue -lpthread
INCLUDE += -I$(ROOT)/squeue/ -I$(ROOT)/squeue/include
INCLUDE += -I$(ROOT)/queue/ -I$(ROOT)/queue/include
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)
 
PROGS =   test_queue single_productor single_consumer multiple_queue_productor multiple_queue_consumer test_timeout
PROGS =   test_queue single_productor single_consumer multiple_queue_productor multiple_queue_consumer test_timeout test_queue_wrapper
build: $(PROGS)
@@ -24,16 +24,16 @@
# 如果包A 引用包B, B 要放在 A 后面
 
test_queue: test.h  $(ROOT)/squeue/include/lock_free_queue.h
test_queue: test.h  $(ROOT)/queue/include/lock_free_queue.h
single_productor: test.h  $(ROOT)/squeue/include/lock_free_queue.h
single_productor: test.h  $(ROOT)/queue/include/lock_free_queue.h
single_consumer: test.h  $(ROOT)/squeue/include/lock_free_queue.h
single_consumer: test.h  $(ROOT)/queue/include/lock_free_queue.h
clean:
   rm -f $(TEMPFILES) $(PROGS)
$(LIBSQUEUE):
   (cd $(ROOT)/squeue && $(MAKE))
$(LIBQUEUE):
   (cd $(ROOT)/queue && $(MAKE))