More boosification of thrift driver, server, transport and protocol code
Modified TestServer to use thread-pool manager
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664738 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/cpp/Makefile b/test/cpp/Makefile
index 36abb43..693dbad 100644
--- a/test/cpp/Makefile
+++ b/test/cpp/Makefile
@@ -4,6 +4,10 @@
# Mark Slee <mcslee@facebook.com>
# Default target is everything
+
+ifndef thrift_home
+thrift_home=../../build
+endif #thrift_home
target: all
# Tools
@@ -11,6 +15,8 @@
CC = g++
LD = g++
+include_flags = $(patsubst %,-I$(thrift_home)/include/%, thrift boost-1_33_1)
+
# Compiler flags
LIBS = ../../lib/cpp/src/server/TSimpleServer.cc \
../../lib/cpp/src/protocol/TBinaryProtocol.cc \
@@ -18,8 +24,8 @@
../../lib/cpp/src/transport/TChunkedTransport.cc \
../../lib/cpp/src/transport/TServerSocket.cc \
../../lib/cpp/src/transport/TSocket.cc
-DCFL = -Wall -O3 -g -Igen-cpp -I../../lib/cpp/src $(LIBS)
-CFL = -Wall -O3 -Igen-cpp -I../../lib/cpp/src -lthrift
+DCFL = -Wall -O3 -g -Igen-cpp $(include_flags) $(LIBS)
+CFL = -Wall -O3 -Igen-cpp $(include_flags) -L$(thrift_home)/lib -lthrift
all: server client