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