| David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 1 | lib_LTLIBRARIES = libthrift.la | 
|  | 2 | ## We only build the extra libraries if we have the dependencies, | 
|  | 3 | ## but we install all of the headers unconditionally. | 
|  | 4 | if AMX_HAVE_LIBEVENT | 
|  | 5 | lib_LTLIBRARIES += libthriftnb.la | 
|  | 6 | endif | 
| David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame^] | 7 | if AMX_HAVE_ZLIB | 
|  | 8 | lib_LTLIBRARIES += libthriftz.la | 
|  | 9 | endif | 
| Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 10 |  | 
| David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 11 | common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS) | 
|  | 12 | common_ldflags = -Wall $(BOOST_LDFLAGS) | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 13 |  | 
| David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame^] | 14 | # Define the source files for the module | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 15 |  | 
| David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 16 | libthrift_la_SOURCES = src/Thrift.cpp \ | 
|  | 17 | src/reflection_limited_types.cpp \ | 
|  | 18 | src/concurrency/Mutex.cpp \ | 
|  | 19 | src/concurrency/Monitor.cpp \ | 
|  | 20 | src/concurrency/PosixThreadFactory.cpp \ | 
|  | 21 | src/concurrency/ThreadManager.cpp \ | 
|  | 22 | src/concurrency/TimerManager.cpp \ | 
|  | 23 | src/protocol/TBinaryProtocol.cpp \ | 
|  | 24 | src/protocol/TDebugProtocol.cpp \ | 
|  | 25 | src/protocol/TDenseProtocol.cpp \ | 
|  | 26 | src/transport/TTransportException.cpp \ | 
|  | 27 | src/transport/TFileTransport.cpp \ | 
|  | 28 | src/transport/THttpClient.cpp \ | 
|  | 29 | src/transport/TSocket.cpp \ | 
|  | 30 | src/transport/TSocketPool.cpp \ | 
|  | 31 | src/transport/TServerSocket.cpp \ | 
|  | 32 | src/transport/TTransportUtils.cpp \ | 
|  | 33 | src/server/TSimpleServer.cpp \ | 
|  | 34 | src/server/TThreadPoolServer.cpp \ | 
|  | 35 | src/server/TThreadedServer.cpp \ | 
|  | 36 | src/processor/PeekProcessor.cpp | 
| Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 37 |  | 
| David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 38 | libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 39 |  | 
| David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame^] | 40 | libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp | 
|  | 41 |  | 
|  | 42 |  | 
|  | 43 | # Flags for the various libraries | 
|  | 44 |  | 
| David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 45 | libthrift_la_CXXFLAGS =  $(common_cxxflags) | 
| David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame^] | 46 |  | 
|  | 47 | libthriftnb_la_CXXFLAGS =  $(common_cxxflags) | 
|  | 48 | libthriftnb_la_CPPFLAGS =  $(LIBEVENT_CPPFLAGS) | 
|  | 49 |  | 
|  | 50 | libthriftz_la_CXXFLAGS =  $(common_cxxflags) | 
|  | 51 | libthriftz_la_CPPFLAGS =  $(ZLIB_CPPFLAGS) | 
|  | 52 |  | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 53 |  | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 54 | include_thriftdir = $(includedir)/thrift | 
|  | 55 | include_thrift_HEADERS = \ | 
| James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 56 | config.h \ | 
|  | 57 | src/Thrift.h \ | 
| David Reiss | 2375312 | 2007-08-27 19:57:34 +0000 | [diff] [blame] | 58 | src/reflection_limited_types.h \ | 
| James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 59 | src/TProcessor.h \ | 
|  | 60 | src/TLogging.h | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 61 |  | 
| Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 62 | include_concurrencydir = $(include_thriftdir)/concurrency | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 63 | include_concurrency_HEADERS = \ | 
| James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 64 | src/concurrency/Exception.h \ | 
| Mark Slee | 0f70d77 | 2006-10-28 00:51:14 +0000 | [diff] [blame] | 65 | src/concurrency/Mutex.h \ | 
| Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 66 | src/concurrency/Monitor.h \ | 
|  | 67 | src/concurrency/PosixThreadFactory.h \ | 
|  | 68 | src/concurrency/Thread.h \ | 
|  | 69 | src/concurrency/ThreadManager.h \ | 
| Marc Slemko | e18890f | 2006-08-17 01:23:12 +0000 | [diff] [blame] | 70 | src/concurrency/TimerManager.h \ | 
|  | 71 | src/concurrency/Util.h | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 72 |  | 
| Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 73 | include_protocoldir = $(include_thriftdir)/protocol | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 74 | include_protocol_HEADERS = \ | 
| Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 75 | src/protocol/TBinaryProtocol.h \ | 
| David Reiss | 4e7530d | 2007-09-04 21:49:53 +0000 | [diff] [blame] | 76 | src/protocol/TDenseProtocol.cpp \ | 
| David Reiss | 00dcccf | 2007-07-21 01:18:10 +0000 | [diff] [blame] | 77 | src/protocol/TDebugProtocol.h \ | 
|  | 78 | src/protocol/TOneWayProtocol.h \ | 
| Mark Slee | f983108 | 2007-02-20 20:59:21 +0000 | [diff] [blame] | 79 | src/protocol/TProtocolException.h \ | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 80 | src/protocol/TProtocol.h | 
|  | 81 |  | 
| Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 82 | include_transportdir = $(include_thriftdir)/transport | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 83 | include_transport_HEADERS = \ | 
| Aditya Agarwal | 25b2936 | 2006-12-09 00:58:15 +0000 | [diff] [blame] | 84 | src/transport/TFileTransport.h \ | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 85 | src/transport/TServerSocket.h \ | 
|  | 86 | src/transport/TServerTransport.h \ | 
| Mark Slee | 8a98e1b | 2007-02-27 05:16:23 +0000 | [diff] [blame] | 87 | src/transport/THttpClient.h \ | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 88 | src/transport/TSocket.h \ | 
| jsobel | e02e424 | 2007-05-08 17:51:49 +0000 | [diff] [blame] | 89 | src/transport/TSocketPool.h \ | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 90 | src/transport/TTransport.h \ | 
| Mark Slee | d788b2e | 2006-09-07 01:26:35 +0000 | [diff] [blame] | 91 | src/transport/TTransportException.h \ | 
| David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame^] | 92 | src/transport/TTransportUtils.h \ | 
|  | 93 | src/transport/TZlibTransport.h | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 94 |  | 
| Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 95 | include_serverdir = $(include_thriftdir)/server | 
| Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 96 | include_server_HEADERS = \ | 
|  | 97 | src/server/TServer.h \ | 
| Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 98 | src/server/TSimpleServer.h \ | 
| Mark Slee | 2f6404d | 2006-10-10 01:37:40 +0000 | [diff] [blame] | 99 | src/server/TThreadPoolServer.h \ | 
| Mark Slee | b3cb629 | 2007-02-01 22:55:00 +0000 | [diff] [blame] | 100 | src/server/TThreadedServer.h \ | 
| Mark Slee | 2f6404d | 2006-10-10 01:37:40 +0000 | [diff] [blame] | 101 | src/server/TNonblockingServer.h | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 102 |  | 
| Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 103 | include_processordir = $(include_thriftdir)/processor | 
|  | 104 | include_processor_HEADERS = \ | 
|  | 105 | src/processor/PeekProcessor.h \ | 
|  | 106 | src/processor/StatsProcessor.h | 
|  | 107 |  | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 108 | bin_PROGRAMS = concurrency_test | 
|  | 109 |  | 
| Mark Slee | b3bd81f | 2006-10-25 01:36:44 +0000 | [diff] [blame] | 110 | concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \ | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 111 | src/concurrency/test/ThreadFactoryTests.h \ | 
|  | 112 | src/concurrency/test/ThreadManagerTests.h \ | 
|  | 113 | src/concurrency/test/TimerManagerTests.h | 
|  | 114 |  | 
| Marc Slemko | c09a65a | 2006-08-09 01:20:16 +0000 | [diff] [blame] | 115 | concurrency_test_LDADD = libthrift.la | 
| Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 116 |  | 
| Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 117 | concurrency_test_CXXFLAGS =  $(common_cxxflags) | 
|  | 118 | concurrency_test_LDFLAGS =  $(common_ldflags) |