# # 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 PLATFORM=$(shell $(ROOT)/systype.sh) include $(ROOT)/Make.defines.$(PLATFORM) PROGS = communication 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))