mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
122803bade
Patch: Peace add pipe crossplatform example to contrib git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351477 13f79535-47bb-0310-9956-ffa450edef68
26 lines
717 B
Makefile
26 lines
717 B
Makefile
THRIFT_DIR =../..
|
|
INCS_DIRS =-I${THRIFT_DIR}/lib/cpp/src -I.
|
|
THRIFT_LIB =${THRIFT_DIR}/lib/cpp/.libs/libthrift.a
|
|
BOOST_LIB =
|
|
CPP_DEFS =
|
|
CPP_OPTS =-Wall -O2
|
|
|
|
GEN_SRC = gen-cpp/SampleService.cpp \
|
|
gen-cpp/Sample_types.cpp \
|
|
gen-cpp/SampleCallback.cpp \
|
|
gen-cpp/Sample_constants.cpp
|
|
GEN_INC = -Igen-cpp
|
|
|
|
default: server client
|
|
.PHONY: server client
|
|
|
|
server:
|
|
g++ ${CPP_OPTS} ${CPP_DEFS} -o server/server ${GEN_INC} ${INCS_DIRS} server/server.cpp ${GEN_SRC} ${THRIFT_LIB} ${BOOST_LIB}
|
|
|
|
client:
|
|
g++ ${CPP_OPTS} ${CPP_DEFS} -o client/client ${GEN_INC} ${INCS_DIRS} client/client.cpp ${GEN_SRC} ${THRIFT_LIB} ${BOOST_LIB}
|
|
|
|
clean:
|
|
$(RM) -r client/client server/server
|
|
|