| Mark Slee | 8d7e1f6 | 2006-06-07 06:48:56 +0000 | [diff] [blame] | 1 | # Makefile for Thrift C++ library. Generates a shared object that can be | 
|  | 2 | # installed to /usr/local/lib | 
|  | 3 | # | 
|  | 4 | # TODO(mcslee): Add the ability to compile separate statis modules that can | 
|  | 5 | # be compiled directly into Thrift applications instead of dynamic runtime | 
|  | 6 | # loading of the full libs | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 7 | # | 
|  | 8 | # Author: | 
|  | 9 | #   Mark Slee <mcslee@facebook.com> | 
|  | 10 |  | 
|  | 11 | target: libthrift | 
|  | 12 |  | 
|  | 13 | # Tools | 
|  | 14 | LD    = g++ | 
| Mark Slee | 4e0d962 | 2006-06-26 23:56:08 +0000 | [diff] [blame] | 15 | LDFL  = -shared -Wall -Isrc -fPIC -Wl,-soname=libthrift.so | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 16 |  | 
|  | 17 | # Source files | 
| Mark Slee | 4e0d962 | 2006-06-26 23:56:08 +0000 | [diff] [blame] | 18 | SRCS  = src/protocol/TBinaryProtocol.cc \ | 
|  | 19 | src/transport/TBufferedTransport.cc \ | 
| Mark Slee | 6e53644 | 2006-06-30 18:28:50 +0000 | [diff] [blame^] | 20 | src/transport/TChunkedTransport.cc \ | 
| Mark Slee | 4e0d962 | 2006-06-26 23:56:08 +0000 | [diff] [blame] | 21 | src/transport/TSocket.cc \ | 
|  | 22 | src/transport/TServerSocket.cc \ | 
|  | 23 | src/server/TSimpleServer.cc | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 24 |  | 
|  | 25 | # Linked library | 
|  | 26 | libthrift: | 
|  | 27 | $(LD) -o libthrift.so $(LDFL) $(SRCS) | 
|  | 28 |  | 
| Mark Slee | 8d7e1f6 | 2006-06-07 06:48:56 +0000 | [diff] [blame] | 29 | # Clean it up | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 30 | clean: | 
|  | 31 | rm -f libthrift.so | 
|  | 32 |  | 
|  | 33 | # Install | 
|  | 34 | install: libthrift | 
|  | 35 | sudo install libthrift.so /usr/local/lib |