blob: 21c09ec53fc90d9e15c60f0433b2185c038479ba [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
Mark Slee95771002006-06-07 06:53:25 +000010THRIFT = thrift
Mark Sleee8540632006-05-30 09:24:40 +000011CC = g++
12LD = g++
13
14# Compiler flags
15LIBS = ../../lib/cpp/server/TSimpleServer.cc \
16 ../../lib/cpp/protocol/TBinaryProtocol.cc \
Mark Slee95771002006-06-07 06:53:25 +000017 ../../lib/cpp/transport/TBufferedTransport.cc \
Mark Sleee8540632006-05-30 09:24:40 +000018 ../../lib/cpp/transport/TServerSocket.cc \
19 ../../lib/cpp/transport/TSocket.cc
Mark Slee95771002006-06-07 06:53:25 +000020CFL = -Wall -O3 -Igen-cpp -I../../lib/cpp $(LIBS)
21CFL = -Wall -O3 -Igen-cpp -I../../lib/cpp -lthrift
Mark Sleee8540632006-05-30 09:24:40 +000022
23all: server client
24
25stubs: ../ThriftTest.thrift
Mark Slee95771002006-06-07 06:53:25 +000026 $(THRIFT) -cpp ../ThriftTest.thrift
Mark Sleee8540632006-05-30 09:24:40 +000027
28server: stubs
Mark Slee95771002006-06-07 06:53:25 +000029 g++ -o TestServer $(CFL) src/TestServer.cc gen-cpp/ThriftTest.cc
Mark Sleee8540632006-05-30 09:24:40 +000030
31client: stubs
Mark Slee95771002006-06-07 06:53:25 +000032 g++ -o TestClient $(CFL) src/TestClient.cc gen-cpp/ThriftTest.cc
Mark Sleee8540632006-05-30 09:24:40 +000033
34clean:
35 rm -fr TestServer TestClient gen-cpp