blob: 6afb30bef0877548ebcb93ee578ebd2c0334afeb [file] [log] [blame]
Mark Sleee8540632006-05-30 09:24:40 +00001# Makefile for Thrift test project.
2#
3# Author:
4# Mark Slee <mcslee@facebook.com>
5
6# Default target is everything
7target: all
8
9# Tools
10THRIFT = /usr/local/bin/thrift
11CC = g++
12LD = g++
13
14# Compiler flags
15LIBS = ../../lib/cpp/server/TSimpleServer.cc \
16 ../../lib/cpp/protocol/TBinaryProtocol.cc \
17 ../../lib/cpp/transport/TServerSocket.cc \
18 ../../lib/cpp/transport/TSocket.cc
19CFL = -Wall -g -I../../lib/cpp $(LIBS)
20CFL = -Wall -g -lthrift -I../../lib/cpp
21
22all: server client
23
24stubs: ../ThriftTest.thrift
25 $(THRIFT) ../ThriftTest.thrift
26
27server: stubs
28 g++ -o TestServer $(CFL) TestServer.cc gen-cpp/ThriftTest.cc
29
30client: stubs
31 g++ -o TestClient $(CFL) TestClient.cc gen-cpp/ThriftTest.cc
32
33clean:
34 rm -fr TestServer TestClient gen-cpp