Commit 3a8c079f authored by gejun's avatar gejun

Add config_brpc.sh to make deps customizable

Change-Id: I6fccbb87c29bee9d57ab28fc663f358a1009a4fd
parent 72a31074
include config.mk
CC=gcc
CXX=g++
CPPFLAGS=-D__const__= -DNDEBUG -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DBRPC_REVISION=\"$(shell git rev-parse --short HEAD)\"
CXXFLAGS=$(CPPFLAGS) -O2 -g -pipe -Wall -W -Werror -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -std=c++0x -include brpc/config.h
CFLAGS=$(CPPFLAGS) -O2 -g -pipe -Wall -W -Werror -fPIC -fstrict-aliasing -Wno-unused-parameter -fno-omit-frame-pointer
GFLAGS_PATH=../../../third-64/gflags
LEVELDB_PATH=../../../third-64/leveldb
PROTOBUF_PATH=../../../third-64/protobuf
INCPATH=-I. -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
LIBS= $(GFLAGS_PATH)/lib/libgflags.a \
......
......@@ -726,9 +726,7 @@ static void StartProfiling(ProfilingType type,
if (!use_html) {
if (!enabled) {
os << "Error: " << type_str << " profiler is not enabled yet.\n"
"Add following code in COMAKE to enable all profilers:\n"
" CPPFLAGS('-DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER')\n"
" CONFIGS('third-64/tcmalloc@1.7.0.200',Libraries('lib/libtcmalloc_and_profiler.a'))\n"
"To enable all profilers, link tcmalloc and define macros BRPC_ENABLE_CPU_PROFILER and BRPC_ENABLE_HEAP_PROFILER\n"
"Or read the wiki for more details:\n"
" http://wiki.baidu.com/display/RPC/Builtin+Services#BuiltinServices-Onlineprofiler\n";
os.move_to(cntl->response_attachment());
......@@ -972,10 +970,8 @@ static void StartProfiling(ProfilingType type,
if (!enabled && view == NULL) {
os << "<p><span style='color:red'>Error:</span> "
<< type_str << " profiler is not enabled yet.</p>"
"<p>Add following code in COMAKE to enable all profilers:<pre>"
" CPPFLAGS('-DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER')\n"
" CONFIGS('third-64/tcmalloc@1.7.0.200',Libraries('lib/libtcmalloc_and_profiler.a'))\n"
"</pre></p><p>Or read <a href='"
"<p>To enable all profilers, link tcmalloc and define macros BRPC_ENABLE_CPU_PROFILER and BRPC_ENABLE_HEAP_PROFILER"
"</p><p>Or read <a href='"
"http://wiki.baidu.com/display/RPC/Builtin+Services#BuiltinServices-Onlineprofiler"
"'>wiki</a> for more details.</p></body></html>";
os.move_to(cntl->response_attachment());
......
# NOTE: This requires GNU getopt. On Mac OS X and FreeBSD, you have to install this
# separately; see below.
TEMP=`getopt -o vdm: --long verbose:,gflags:,protobuf:,leveldb:,tcmalloc: -n 'config_brpc' -- "$@"`
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"
# Convert to abspath always so that generated mk is include-able from everywhere
VERBOSE=false
while true; do
case "$1" in
-v | --verbose ) VERBOSE=true; shift ;;
--gflags ) GFLAGS_PATH="$(readlink -f $2)"; shift 2 ;;
--protobuf ) PROTOBUF_PATH="$(readlink -f $2)"; shift 2 ;;
--leveldb ) LEVELDB_PATH="$(readlink -f $2)"; shift 2 ;;
--tcmalloc ) TCMALLOC_PATH="$(readlink -f $2)"; shift 2 ;;
-- ) shift; break ;;
* ) break ;;
esac
done
if [[ -z "$GFLAGS_PATH" ]];then
>&2 echo "config_brpc: --gflags=<GFLAGS_PATH> must be specified"
exit 1
fi
if [[ -z "$PROTOBUF_PATH" ]];then
>&2 echo "config_brpc: --protobuf=<PROTOBUF_PATH> must be specified"
exit 1
fi
if [[ -z "$LEVELDB_PATH" ]];then
>&2 echo "config_brpc: --leveldb=<LEVELDB_PATH> must be specified"
exit 1
fi
CONTENT1="GFLAGS_PATH=$GFLAGS_PATH\nPROTOBUF_PATH=$PROTOBUF_PATH\nLEVELDB_PATH=$LEVELDB_PATH"
echo -e $CONTENT1 > config.mk
if [[ ! -z "$TCMALLOC_PATH" ]]; then
CONTENT2="$CONTENT1\nTCMALLOC_PATH=$TCMALLOC_PATH"
else
CONTENT2="\$(info TCMALLOC_PATH is not defined, run config_brpc.sh with --tcmalloc again)\nall:\n\texit 1"
fi
echo -e $CONTENT2 > config_with_tcmalloc.mk
include ../../config.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
include ../../config.mk
BRPC_PATH = ../../output
CC = gcc
CXX = g++
CPPFLAGS = -std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS = $(CPPFLAGS)
INCPATH = -I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC = $(PROTOBUF_PATH)/bin/protoc
LIBS = $(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
include ../../config.mk
BRPC_PATH = ../../output
CC = gcc
CXX = g++
CPPFLAGS = -std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS = $(CPPFLAGS)
INCPATH = -I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC = $(PROTOBUF_PATH)/bin/protoc
LIBS = $(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
include ../../config.mk
BRPC_PATH = ../../output
CC = gcc
CXX = g++
CPPFLAGS = -std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS = $(CPPFLAGS)
INCPATH = -I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC = $(PROTOBUF_PATH)/bin/protoc
LIBS = $(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
include ../../config.mk
BRPC_PATH = ../../output
CC = gcc
CXX = g++
CPPFLAGS = -std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS = $(CPPFLAGS)
INCPATH = -I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC = $(PROTOBUF_PATH)/bin/protoc
LIBS = $(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
include ../../config.mk
BRPC_PATH = ../../output
CC = gcc
CXX = g++
CPPFLAGS = -std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS = $(CPPFLAGS)
INCPATH = -I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC = $(PROTOBUF_PATH)/bin/protoc
LIBS = $(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = http_client.cpp
BENCHMARK_SOURCES = benchmark_http.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
CLIENT_OBJS = $(addsuffix .o, $(basename $(CLIENT_SOURCES)))
SOURCES = $(wildcard *.cpp)
OBJS = $(addsuffix .o, $(basename $(SOURCES)))
.PHONY:all
all: memcache_client
......@@ -31,9 +19,9 @@ all: memcache_client
.PHONY:clean
clean:
@echo "Cleaning"
@rm -rf memcache_client $(CLIENT_OBJS)
@rm -rf memcache_client $(OBJS)
memcache_client:$(CLIENT_OBJS)
memcache_client:$(OBJS)
@echo "Linking $@"
@$(CXX) -Xlinker "-(" $^ $(LIBS) -Xlinker "-)" -o $@
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz -lreadline -lncurses
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz -lreadline -lncurses
PRESS_SOURCES = redis_press.cpp
CLI_SOURCES = redis_cli.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
include ../../config_with_tcmalloc.mk
BRPC_PATH=../../output
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__= -DBRPC_ENABLE_CPU_PROFILER -DBRPC_ENABLE_HEAP_PROFILER
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
TCMALLOC_PATH=../../../../../third-64/tcmalloc
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include -I$(TCMALLOC_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
$(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
LIBS=$(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a $(TCMALLOC_PATH)/lib/libtcmalloc_and_profiler.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
CC=gcc
CXX=g++
CPPFLAGS=-std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS=$(CPPFLAGS)
CFLAGS=$(CPPFLAGS)
GFLAGS_PATH=../../../../../third-64/gflags
LEVELDB_PATH=../../../../../third-64/leveldb
PROTOBUF_PATH=../../../../../third-64/protobuf
BRPC_PATH=../../output
INCPATH=-I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC=$(PROTOBUF_PATH)/bin/protoc
LIBS=$(BRPC_PATH)/lib/libbase.a \
$(BRPC_PATH)/lib/libbrpc.a \
$(BRPC_PATH)/lib/libbthread.a \
$(BRPC_PATH)/lib/libbvar.a \
$(BRPC_PATH)/lib/libjson2pb.a \
$(BRPC_PATH)/lib/libmcpack2pb.a \
$(GFLAGS_PATH)/lib/libgflags.a \
$(LEVELDB_PATH)/lib/libleveldb.a \
$(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread \
-lrt \
-lssl \
-lcrypto \
-ldl \
-lz
include ../../config.mk
BRPC_PATH = ../../output
CC = gcc
CXX = g++
CPPFLAGS = -std=c++0x -g -DNDEBUG -O2 -pipe -W -Wall -Werror -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -D__const__=
CXXFLAGS = $(CPPFLAGS)
INCPATH = -I$(BRPC_PATH)/include -I$(GFLAGS_PATH)/include -I$(LEVELDB_PATH)/include -I$(PROTOBUF_PATH)/include
PROTOC = $(PROTOBUF_PATH)/bin/protoc
LIBS = $(wildcard $(BRPC_PATH)/lib/lib*.a) $(GFLAGS_PATH)/lib/libgflags.a $(LEVELDB_PATH)/lib/libleveldb.a $(PROTOBUF_PATH)/lib/libprotobuf.a \
-lpthread -lrt -lssl -lcrypto -ldl -lz
CLIENT_SOURCES = client.cpp
SERVER_SOURCES = server.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment