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