# # Makefile for common library. # ROOT=.. #LDLIBS+=-Wl,-rpath=$(ROOT)/common:$(ROOT)/lib/jsoncpp # 开源工具包路径 LDDIR += -L$(ROOT)/queue # 开源工具包 LDLIBS += -lshm_queue -lpthread 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 test_lostdata 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))