-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.mk
28 lines (23 loc) · 1.14 KB
/
Makefile.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
#EVPATH=/home/code/redis_client/libev
#HIREDIS_PATH=/home/code/redis_client/hiredis
#ZKPATH=/home/code/rp/zookeeper/include
EVPATH=/data/home/guangxiang.feng/proj/trunk/talkplus/online_base/libev
HIREDIS_PATH=/data/home/guangxiang.feng/proj/trunk/talkplus/online_base/hiredis
ZKPATH=/data/home/guangxiang.feng/proj/xoa2_client/xoa2_env
PROTOBUF_PATH=/usr/local/distcache-dev
# ============
CC=g++
#CCFLAGS=-c -Wall -g -fPIC -I$(EVPATH)/include -I$(HIREDIS_PATH) -I$(ZKPATH)/include -I../src
CCFLAGS=-c -Wall -g -fPIC -I$(EVPATH)/include -I$(HIREDIS_PATH) -I$(ZKPATH)/include -I$(PROTOBUF_PATH)/include
AR=ar
ARFLAGS=rcs
RPATH_EV=$(EVPATH)/lib
RPATH_HIREDIS=$(HIREDIS_PATH)
RPATH_ZK=$(ZKPATH)/lib
RPATH_PROTOBUF=$(PROTOBUF_PATH)/lib
LINK_FLAG=-lboost_thread -lcrypto
LINK_FLAG:=$(LINK_FLAG) -L$(RPATH_EV) -lev -Wl,-rpath,$(RPATH_EV)
LINK_FLAG:=$(LINK_FLAG) -L$(RPATH_HIREDIS) -lhiredis -Wl,-rpath,$(RPATH_HIREDIS)
LINK_FLAG:=$(LINK_FLAG) -L$(RPATH_ZK) -lzookeeper_mt -Wl,-rpath,$(RPATH_ZK)
LINK_FLAG:=$(LINK_FLAG) -L$(RPATH_PROTOBUF) -lprotobuf -Wl,-rpath,$(RPATH_PROTOBUF)
TEST_LINK_FLAG:= -L../src -L../logic_driver -lredis_client -llogic_driver $(LINK_FLAG)