wangzhengquan
2020-07-20 f85c9b875b060681b51f57b15074ba1c7c9f5636
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
 
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))