-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdepends.mk
67 lines (55 loc) · 2.36 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
################################################################
# 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
INS_PREFIX=thirdparty
RAPID_JSON_PREFIX=thirdparty/rapidjson
COMMON_PREFIX=thirdparty
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
INS_INCDIR = $(INS_PREFIX)/include
TERA_INCDIR = $(TERA_PREFIX)/include
RAPID_JSON_INCDIR = $(RAPID_JSON_PREFIX)/include
COMMON_INCDIR=$(COMMON_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
INS_LIBDIR = $(INS_PREFIX)/lib
RAPID_JSON_LIBDIR = $(RAPID_JSON_PREFIX)/lib
COMMON_LIBDIR=$(COMMON_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$(BOOST_INCDIR) -I$(INS_INCDIR) \
-I$(RAPID_JSON_INCDIR) -I$(COMMON_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) \
-L$(RAPID_JSON_LIBDIR) \
-L$(COMMON_LIBDIR)
DEPS_LDFLAGS = -static -lins_sdk -lsofa-pbrpc -lprotobuf \
-lgflags -lcommon -lsnappy -lyaml-cpp