| # Makefile for Thrift test project. |
| # Marc Kwiatkowski <marc@facebook.com> |
| thrift_home=../../../../build |
| thirdparty = ../../../../../../../thirdparty |
| boost_home = /usr/local/include/boost-1_33_1 |
| include_paths = $(thrift_home)/include/thrift \ |
| include_flags = $(patsubst %,-I%, $(include_paths)) |
| DCFL = -Wall -O3 -g -I cpp-gen $(include_flags) -L$(thrift_home)/lib -lthrift |
| CFL = -Wall -O3 -I cpp-gen $(include_flags) -L$(thrift_home)/lib -lthrift |
| $(THRIFT) --cpp --php ../StressTest.thrift |
| g++ -o stress-test $(DCFL) src/main.cc cpp-gen/StressTest.cc |
| g++ -o stress-test $(CFL) src/main.cc cpp-gen/StressTest.cc |
| rm -fr stress-test cpp-gen |