forked from bdtbd/mdt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdepends.mk
92 lines (81 loc) · 3.96 KB
/
depends.mk
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
################################################################
# Note: Edit the variable below to help find your own package
# that tera depends on.
# If you build tera using build.sh or travis.yml, it will
# automatically config this for you.
################################################################
BOOST_INCDIR=thirdparty/boost_1_57_0
SOFA_PBRPC_PREFIX=thirdparty
PROTOBUF_PREFIX=thirdparty
SNAPPY_PREFIX=thirdparty
ZOOKEEPER_PREFIX=thirdparty
GFLAGS_PREFIX=thirdparty
GLOG_PREFIX=thirdparty
GTEST_PREFIX=thirdparty
GPERFTOOLS_PREFIX=thirdparty
UNWIND_PREFIX=thirdparty
INS_PREFIX=thirdparty
TERA_PREFIX=thirdparty
GALAXY_PREFIX=thirdparty
COMMON_PREFIX=thirdparty
BSL_PREFIX=thirdparty/bsl
ULLIB_PREFIX=thirdparty/ullib
NAMEING_PREFIX=thirdparty/nameing-lib
SOFA_PBRPC_INCDIR = $(SOFA_PBRPC_PREFIX)/include
PROTOBUF_INCDIR = $(PROTOBUF_PREFIX)/include
SNAPPY_INCDIR = $(SNAPPY_PREFIX)/include
ZOOKEEPER_INCDIR = $(ZOOKEEPER_PREFIX)/include
GFLAGS_INCDIR = $(GFLAGS_PREFIX)/include
GLOG_INCDIR = $(GLOG_PREFIX)/include
GTEST_INCDIR = $(GTEST_PREFIX)/include
GPERFTOOLS_INCDIR = $(GPERFTOOLS_PREFIX)/include
UNWIND_INCDIR = $(UNWIND_PREFIX)/include
INS_INCDIR = $(INS_PREFIX)/include
TERA_INCDIR = $(TERA_PREFIX)/include
GALAXY_INCDIR = $(GALAXY_PREFIX)/include
BSL_INCDIR = $(BSL_PREFIX)/include
ULLIB_INCDIR = $(ULLIB_PREFIX)/include
NAMEING_INCDIR = $(NAMEING_PREFIX)/include
BOOST_LIBDIR=$(BOOST_INCDIR)/stage/lib
SOFA_PBRPC_LIBDIR = $(SOFA_PBRPC_PREFIX)/lib
PROTOBUF_LIBDIR = $(PROTOBUF_PREFIX)/lib
SNAPPY_LIBDIR = $(SNAPPY_PREFIX)/lib
ZOOKEEPER_LIBDIR = $(ZOOKEEPER_PREFIX)/lib
GFLAGS_LIBDIR = $(GFLAGS_PREFIX)/lib
GLOG_LIBDIR = $(GLOG_PREFIX)/lib
GTEST_LIBDIR = $(GTEST_PREFIX)/lib
GPERFTOOLS_LIBDIR = $(GPERFTOOLS_PREFIX)/lib
UNWIND_LIBDIR = $(UNWIND_PREFIX)/lib
INS_LIBDIR = $(INS_PREFIX)/lib
TERA_LIBDIR = $(TERA_PREFIX)/lib
GALAXY_LIBDIR = $(GALAXY_PREFIX)/lib
COMMON_LIBDIR = $(COMMON_PREFIX)/lib
BSL_LIBDIR = $(BSL_PREFIX)/lib
ULLIB_LIBDIR = $(ULLIB_PREFIX)/lib
NAMEING_LIBDIR = $(NAMEING_PREFIX)/lib
PROTOC = $(PROTOBUF_PREFIX)/bin/protoc
################################################################
# Note: No need to modify things below.
################################################################
DEPS_INCPATH = -I$(SOFA_PBRPC_INCDIR) -I$(PROTOBUF_INCDIR) \
-I$(SNAPPY_INCDIR) -I$(ZOOKEEPER_INCDIR) \
-I$(GFLAGS_INCDIR) -I$(GLOG_INCDIR) -I$(GTEST_INCDIR) \
-I$(GPERFTOOLS_INCDIR) -I$(UNWIND_INCDIR) -I$(BOOST_INCDIR) -I$(INS_INCDIR) \
-I$(TERA_INCDIR) -I$(GALAXY_INCDIR)
DEPS_LDPATH = -L$(TERA_LIBDIR) -L$(SOFA_PBRPC_LIBDIR) -L$(PROTOBUF_LIBDIR) \
-L$(SNAPPY_LIBDIR) -L$(ZOOKEEPER_LIBDIR) \
-L$(GFLAGS_LIBDIR) -L$(GLOG_LIBDIR) -L$(GTEST_LIBDIR) \
-L$(GPERFTOOLS_LIBDIR) -L$(UNWIND_LIBDIR) -L$(INS_LIBDIR) \
-L$(TERA_LIBDIR) -L$(GALAXY_LIBDIR) -L$(BOOST_LIBDIR)
DEPS_LDFLAGS = -ltera -lins_sdk -lsofa-pbrpc -lprotobuf -lsnappy -lzookeeper_mt \
-lgtest_main -lgtest -lglog -lgflags -lgalaxy -lcommon -ltcmalloc_minimal -lboost_regex -lprofiler -lunwind
DEPS_LIBRARIES = $(COMMON_LIBDIR)/libcommon.a $(GALAXY_LIBDIR)/libgalaxy.a $(TERA_LIBDIR)/libtera.a $(INS_LIBDIR)/libins_sdk.a \
$(SOFA_PBRPC_LIBDIR)/libsofa-pbrpc.a $(PROTOBUF_LIBDIR)/libprotobuf.a \
$(SNAPPY_LIBDIR)/libsnappy.a $(ZOOKEEPER_LIBDIR)/libzookeeper_mt.a \
$(GTEST_LIBDIR)/libgtest_main.a $(GTEST_LIBDIR)/libgtest.a \
$(GLOG_LIBDIR)/libglog.a $(GFLAGS_LIBDIR)/libgflags.a $(GPERFTOOLS_LIBDIR)/libtcmalloc_minimal.a \
$(BOOST_LIBDIR)/libboost_regex.a $(GPERFTOOLS_LIBDIR)/libprofiler.a $(UNWIND_LIBDIR)/libunwind.a
BNS_INCDIR = -I$(BSL_INCDIR) -I$(ULLIB_INCDIR) -I$(NAMEING_INCDIR) -I$(PROTOBUF_INCDIR)
BNS_LIBDIR = -L$(BSL_LIBDIR) -L$(ULLIB_LIBDIR) -L$(NAMEING_LIBDIR) -L$(PROTOBUF_LIBDIR)
BNS_LDFLAGS = -lbsl -lullib -lwebfoot_naming -lprotobuf
BNS_LIBRARIES = -Xlinker "-(" $(BNS_LIBDIR) $(BNS_LDFLAGS) -Xlinker "-)"