blob: 2045dbae7ba0365656e070fd2015b2b13ac7c275 [file] [log] [blame]
# Makefile for Thrift C++ library.
#
# Author:
# Mark Slee <mcslee@facebook.com>
target: libthrift
# Tools
LD = g++
LDFL = -shared -Wall -I. -fPIC -Wl,-soname=libthrift.so
# Source files
SRCS = client/TSimpleClient.cc \
protocol/TBinaryProtocol.cc \
server/TSimpleServer.cc \
transport/TSocket.cc \
transport/TServerSocket.cc
# Linked library
libthrift:
$(LD) -o libthrift.so $(LDFL) $(SRCS)
clean:
rm -f libthrift.so
# Install
install: libthrift
sudo install libthrift.so /usr/local/lib