blob: 89e03b8ef3d7b245a635ce996784e9a6cc294aef [file] [log] [blame]
Roger Meier122803b2012-06-18 20:23:58 +00001THRIFT_DIR =../..
2INCS_DIRS =-I${THRIFT_DIR}/lib/cpp/src -I.
3THRIFT_LIB =${THRIFT_DIR}/lib/cpp/.libs/libthrift.a
4BOOST_LIB =
5CPP_DEFS =
6CPP_OPTS =-Wall -O2
7
8GEN_SRC = gen-cpp/SampleService.cpp \
9 gen-cpp/Sample_types.cpp \
10 gen-cpp/SampleCallback.cpp \
11 gen-cpp/Sample_constants.cpp
12GEN_INC = -Igen-cpp
13
14default: server client
15.PHONY: server client
16
17server:
18 g++ ${CPP_OPTS} ${CPP_DEFS} -o server/server ${GEN_INC} ${INCS_DIRS} server/server.cpp ${GEN_SRC} ${THRIFT_LIB} ${BOOST_LIB}
19
20client:
21 g++ ${CPP_OPTS} ${CPP_DEFS} -o client/client ${GEN_INC} ${INCS_DIRS} client/client.cpp ${GEN_SRC} ${THRIFT_LIB} ${BOOST_LIB}
22
23clean:
24 $(RM) -r client/client server/server
25