Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame^] | 1 | BOOST_DIR = /usr/local/boost/include/boost-1_33_1/ |
| 2 | THRIFT_DIR = /usr/local/include/thrift |
| 3 | LIB_DIR = /usr/local/lib |
| 4 | |
| 5 | GEN_SRC = ../gen-cpp/SharedService.cpp ../gen-cpp/shared_types.cpp ../gen-cpp/tutorial_types.cpp ../gen-cpp/Calculator.cpp |
| 6 | |
| 7 | default: server client |
| 8 | |
| 9 | server: CppServer.cpp |
| 10 | g++ -o CppServer -I${THRIFT_DIR} -I${BOOST_DIR} -I../gen-cpp -L${LIB_DIR} -lthrift CppServer.cpp ${GEN_SRC} |
| 11 | |
| 12 | client: CppClient.cpp |
| 13 | g++ -o CppClient -I${THRIFT_DIR} -I${BOOST_DIR} -I../gen-cpp -L${LIB_DIR} -lthrift CppClient.cpp ${GEN_SRC} |
| 14 | |
| 15 | clean: |
| 16 | rm -fr CppClient CppServer |