| 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++ | 
 | 15 | LDFL  = -shared -Wall -I. -fPIC -Wl,-soname=libthrift.so | 
 | 16 |  | 
 | 17 | # Source files | 
| Mark Slee | 8d7e1f6 | 2006-06-07 06:48:56 +0000 | [diff] [blame] | 18 | SRCS  = protocol/TBinaryProtocol.cc \ | 
 | 19 | 	transport/TBufferedTransport.cc \ | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 20 | 	transport/TSocket.cc \ | 
| Mark Slee | 8d7e1f6 | 2006-06-07 06:48:56 +0000 | [diff] [blame] | 21 | 	transport/TServerSocket.cc \ | 
 | 22 | 	server/TSimpleServer.cc | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 23 |  | 
 | 24 | # Linked library | 
 | 25 | libthrift: | 
 | 26 | 	$(LD) -o libthrift.so $(LDFL) $(SRCS) | 
 | 27 |  | 
| Mark Slee | 8d7e1f6 | 2006-06-07 06:48:56 +0000 | [diff] [blame] | 28 | # Clean it up | 
| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 29 | clean: | 
 | 30 | 	rm -f libthrift.so | 
 | 31 |  | 
 | 32 | # Install | 
 | 33 | install: libthrift | 
 | 34 | 	sudo install libthrift.so /usr/local/lib |