THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
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
diff --git a/contrib/transport-sample/Makefile b/contrib/transport-sample/Makefile
new file mode 100644
index 0000000..89e03b8
--- /dev/null
+++ b/contrib/transport-sample/Makefile
@@ -0,0 +1,25 @@
+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
+