From: Aditya Agarwal Date: Tue, 5 Sep 2006 22:38:13 +0000 (+0000) Subject: -- generalize Makefile X-Git-Tag: 0.2.0~1686 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=0cc0c0ab6c39f2d3b5e46c1d5ec34dec213f8de9;p=common%2Fthrift.git -- generalize Makefile Summary: -- dont use /usr/local as the thrift directory now that multiple ppl are developing on dev007 Reviewed By: McSlee Test Plan: Tested by making and cleaning git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664786 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/cpp/Makefile.thrift b/test/cpp/Makefile.thrift index 374645d4..361eb57c 100644 --- a/test/cpp/Makefile.thrift +++ b/test/cpp/Makefile.thrift @@ -6,25 +6,25 @@ # Default target is everything ifndef thrift_home -thrift_home=/usr/local +thrift_home=../.. endif #thrift_home target: all ifndef boost_home -boost_home=../../../../../thirdparty/boost_1_33_1 +#boost_home=../../../../../thirdparty/boost_1_33_1 boost_home=/usr/local/include/boost-1_33_1 endif #boost_home target: all -include_paths = $(thrift_home)/include/thrift \ +include_paths = $(thrift_home)/lib/cpp/src \ $(boost_home) include_flags = $(patsubst %,-I%, $(include_paths)) # Tools ifndef THRIFT -THRIFT = thrift +THRIFT = ../../compiler/cpp/bin/thrift endif # THRIFT CC = g++ @@ -54,4 +54,4 @@ client: stubs g++ -o TestClient $(CFL) src/TestClient.cc ./gen-cpp/ThriftTest.cc ./gen-cpp/ThriftTest_types.cc clean: - rm -fr TestServer TestClient ../cpp-gen + rm -fr TestServer TestClient gen-cpp