| # Makefile for Thrift test project. |
| # Mark Slee <mcslee@facebook.com> |
| # Default target is everything |
| boost_home=/usr/local/include/boost-1_33_1 |
| include_paths = $(thrift_home)/lib/cpp/src \ |
| include_flags = $(patsubst %,-I%, $(include_paths)) |
| THRIFT = ../../compiler/cpp/thrift |
| LFL = -L$(thrift_home)/lib/cpp/.libs -lthrift |
| CCFL = -Wall -O3 -g -I./gen-cpp $(include_flags) |
| stubs: ThreadsTest.thrift |
| $(THRIFT) -cpp -py ThreadsTest.thrift |
| g++ -o ThreadsServer $(CFL) ThreadsServer.cpp ./gen-cpp/ThreadsTest.cpp ./gen-cpp/ThreadsTest_types.cpp |
| g++ -o ThreadsClient $(CFL) ThreadsClient.cpp ./gen-cpp/ThreadsTest.cpp ./gen-cpp/ThreadsTest_types.cpp |
| rm -fr *.o ThreadsServer ThreadsClient gen-cpp gen-py |