blob: ac5a7769c88eaed75775486bea7594611cfadf23 [file] [log] [blame]
David Reissb72d19f2007-09-18 19:46:00 +00001ACLOCAL_AMFLAGS = -I ./aclocal
2
Mark Sleeb16074d2007-11-28 05:54:33 +00003pkgconfigdir = $(libdir)/pkgconfig
4
David Reiss79ae0f82007-09-17 21:15:47 +00005lib_LTLIBRARIES = libthrift.la
Mark Sleeb16074d2007-11-28 05:54:33 +00006pkgconfig_DATA = thrift.pc
7
David Reiss79ae0f82007-09-17 21:15:47 +00008## We only build the extra libraries if we have the dependencies,
9## but we install all of the headers unconditionally.
10if AMX_HAVE_LIBEVENT
11lib_LTLIBRARIES += libthriftnb.la
Mark Sleeb16074d2007-11-28 05:54:33 +000012pkgconfig_DATA += thrift-nb.pc
David Reiss79ae0f82007-09-17 21:15:47 +000013endif
David Reissfaebedd2007-09-17 23:20:38 +000014if AMX_HAVE_ZLIB
15lib_LTLIBRARIES += libthriftz.la
Mark Sleeb16074d2007-11-28 05:54:33 +000016pkgconfig_DATA += thrift-z.pc
David Reissfaebedd2007-09-17 23:20:38 +000017endif
Marc Slemko6f038a72006-08-03 18:58:09 +000018
David Reiss79ae0f82007-09-17 21:15:47 +000019common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
20common_ldflags = -Wall $(BOOST_LDFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000021
David Reissfaebedd2007-09-17 23:20:38 +000022# Define the source files for the module
Marc Slemko9d4a3e22006-07-21 19:53:48 +000023
David Reiss79ae0f82007-09-17 21:15:47 +000024libthrift_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 \
David Reissdb0ea152008-02-18 01:49:37 +000034 src/protocol/TJSONProtocol.cpp \
35 src/protocol/TBase64Utils.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000036 src/transport/TTransportException.cpp \
David Reisse4db03d2008-04-08 05:06:59 +000037 src/transport/TFDTransport.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000038 src/transport/TFileTransport.cpp \
39 src/transport/THttpClient.cpp \
40 src/transport/TSocket.cpp \
41 src/transport/TSocketPool.cpp \
42 src/transport/TServerSocket.cpp \
43 src/transport/TTransportUtils.cpp \
veeve01d187c2008-02-26 05:12:08 +000044 src/server/TServer.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000045 src/server/TSimpleServer.cpp \
46 src/server/TThreadPoolServer.cpp \
47 src/server/TThreadedServer.cpp \
48 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000049
David Reiss79ae0f82007-09-17 21:15:47 +000050libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000051
David Reissfaebedd2007-09-17 23:20:38 +000052libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
53
54
55# Flags for the various libraries
56
David Reiss79ae0f82007-09-17 21:15:47 +000057libthrift_la_CXXFLAGS = $(common_cxxflags)
David Reissfaebedd2007-09-17 23:20:38 +000058
59libthriftnb_la_CXXFLAGS = $(common_cxxflags)
60libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
61
62libthriftz_la_CXXFLAGS = $(common_cxxflags)
63libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
64
Marc Slemko9d4a3e22006-07-21 19:53:48 +000065
Marc Slemko16698852006-08-04 03:16:10 +000066include_thriftdir = $(includedir)/thrift
67include_thrift_HEADERS = \
David Reiss832b2622007-12-28 18:25:33 +000068 $(top_srcdir)/config.h \
James Wang3e9d1772007-03-27 23:17:34 +000069 src/Thrift.h \
David Reiss0c90f6f2008-02-06 22:18:40 +000070 src/TReflectionLocal.h \
David Reiss23753122007-08-27 19:57:34 +000071 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000072 src/TProcessor.h \
73 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000074
Marc Slemkod42a2c22006-08-10 03:30:18 +000075include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000076include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000077 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000078 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000079 src/concurrency/Monitor.h \
80 src/concurrency/PosixThreadFactory.h \
81 src/concurrency/Thread.h \
82 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000083 src/concurrency/TimerManager.h \
Mark Sleeb16074d2007-11-28 05:54:33 +000084 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000085
Marc Slemkod42a2c22006-08-10 03:30:18 +000086include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000087include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000088 src/protocol/TBinaryProtocol.h \
David Reissb72d19f2007-09-18 19:46:00 +000089 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000090 src/protocol/TDebugProtocol.h \
91 src/protocol/TOneWayProtocol.h \
David Reiss94058452008-04-21 18:07:58 +000092 src/protocol/TBase64Utils.h \
93 src/protocol/TJSONProtocol.h \
David Reisse0e3d1b2008-04-08 05:06:45 +000094 src/protocol/TProtocolTap.h \
Mark Sleef9831082007-02-20 20:59:21 +000095 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000096 src/protocol/TProtocol.h
97
Marc Slemkod42a2c22006-08-10 03:30:18 +000098include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000099include_transport_HEADERS = \
David Reisse4db03d2008-04-08 05:06:59 +0000100 src/transport/TFDTransport.h \
Aditya Agarwal25b29362006-12-09 00:58:15 +0000101 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000102 src/transport/TServerSocket.h \
103 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +0000104 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000105 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +0000106 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000107 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +0000108 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +0000109 src/transport/TTransportUtils.h \
110 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +0000111
Marc Slemkod42a2c22006-08-10 03:30:18 +0000112include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +0000113include_server_HEADERS = \
114 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000115 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000116 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000117 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000118 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000119
Aditya Agarwal000b1112007-08-31 08:03:05 +0000120include_processordir = $(include_thriftdir)/processor
121include_processor_HEADERS = \
122 src/processor/PeekProcessor.h \
123 src/processor/StatsProcessor.h
124
David Reissb72d19f2007-09-18 19:46:00 +0000125noinst_PROGRAMS = concurrency_test
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000126
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000127concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000128 src/concurrency/test/ThreadFactoryTests.h \
129 src/concurrency/test/ThreadManagerTests.h \
130 src/concurrency/test/TimerManagerTests.h
131
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000132concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000133
Marc Slemko6f038a72006-08-03 18:58:09 +0000134concurrency_test_CXXFLAGS = $(common_cxxflags)
135concurrency_test_LDFLAGS = $(common_ldflags)
David Reissb72d19f2007-09-18 19:46:00 +0000136
David Reiss832b2622007-12-28 18:25:33 +0000137EXTRA_DIST = \
David Reiss0c90f6f2008-02-06 22:18:40 +0000138 README \
139 thrift-nb.pc.in \
140 thrift.pc.in \
141 thrift-z.pc.in