blob: 2045dbae7ba0365656e070fd2015b2b13ac7c275 [file] [log] [blame]
Mark Sleee8540632006-05-30 09:24:40 +00001# Makefile for Thrift C++ library.
2#
3# Author:
4# Mark Slee <mcslee@facebook.com>
5
6target: libthrift
7
8# Tools
9LD = g++
10LDFL = -shared -Wall -I. -fPIC -Wl,-soname=libthrift.so
11
12# Source files
13SRCS = client/TSimpleClient.cc \
14 protocol/TBinaryProtocol.cc \
15 server/TSimpleServer.cc \
16 transport/TSocket.cc \
17 transport/TServerSocket.cc
18
19# Linked library
20libthrift:
21 $(LD) -o libthrift.so $(LDFL) $(SRCS)
22
23clean:
24 rm -f libthrift.so
25
26# Install
27install: libthrift
28 sudo install libthrift.so /usr/local/lib