wangzhengquan
2020-07-21 91ec036cace39fd5b5f04644f6bced1f477005e0
test/Makefile
@@ -2,38 +2,25 @@
# Makefile for common library.
#
ROOT=..
LDLIBS+=-Wl,-rpath=$(ROOT)/queue:$(ROOT)/lib
LDLIBS+=-Wl,-rpath=$(ROOT)/lib:$(ROOT)/build/lib
# 开源工具包路径
LDDIR += -L$(ROOT)/queue
LDDIR +=  -L$(ROOT)/lib -L$(ROOT)/build/lib
# 开源工具包
LDLIBS += -lshm_queue -lusgcommon -lpthread
INCLUDE += -I$(ROOT)/queue/ -I$(ROOT)/queue/include
INCLUDE += -I$(ROOT)/build/include
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)
 
PROGS = communication
PROGS = dgram_socket_test
build: $(PROGS)
# test1: $(LIBCOMMON)
# 如果包A 引用包B, B 要放在 A 后面
test_queue: test.h  $(ROOT)/queue/include/lock_free_queue.h
single_productor: test.h  $(ROOT)/queue/include/lock_free_queue.h
single_consumer: test.h  $(ROOT)/queue/include/lock_free_queue.h
clean:
   rm -f $(TEMPFILES) $(PROGS)
$(LIBQUEUE):
   (cd $(ROOT)/queue && $(MAKE))