thrift/test/threads/Makefile
David Reiss 0c90f6f8af Thrift: Whitespace cleanup.
Summary:
- Expanded tabs to spaces where spaces were the norm.
- Deleted almost all trailing whitespace.
- Added newlines to the ends of a few files.
- Ran dos2unix on one file or two.

Reviewed By: mcslee

Test Plan: git diff -b

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665467 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 22:18:40 +00:00

50 lines
1023 B
Makefile

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