forked from baidu/tera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
depends.mk.template
55 lines (49 loc) · 2.2 KB
/
depends.mk.template
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
################################################################
# 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.
################################################################
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
INS_PREFIX=./thirdparty
BOOST_INCDIR=./thirdparty/boost_1_57_0
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
INS_INCDIR = $(INS_PREFIX)/include
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
INS_LIBDIR = $(INS_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$(BOOST_INCDIR) -I$(INS_INCDIR)
DEPS_LDPATH = -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$(INS_LIBDIR)
SO_DEPS_LDFLAGS = -lins_sdk -lsofa-pbrpc -lprotobuf -lsnappy -lzookeeper_mt \
-lgtest_main -lgtest -lglog -lgflags
DEPS_LDFLAGS = $(SO_DEPS_LDFLAGS) -ltcmalloc_minimal