| INCS_DIRS =-I${THRIFT_DIR}/lib/cpp/src -I. |
| THRIFT_LIB =${THRIFT_DIR}/lib/cpp/.libs/libthrift.a |
| GEN_SRC = gen-cpp/SampleService.cpp \ |
| gen-cpp/Sample_types.cpp \ |
| gen-cpp/SampleCallback.cpp \ |
| gen-cpp/Sample_constants.cpp |
| g++ ${CPP_OPTS} ${CPP_DEFS} -o server/server ${GEN_INC} ${INCS_DIRS} server/server.cpp ${GEN_SRC} ${THRIFT_LIB} ${BOOST_LIB} |
| g++ ${CPP_OPTS} ${CPP_DEFS} -o client/client ${GEN_INC} ${INCS_DIRS} client/client.cpp ${GEN_SRC} ${THRIFT_LIB} ${BOOST_LIB} |
| $(RM) -r client/client server/server |