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