blob: df64353eb29de4f06a4ed54b4e839250bbff4b68 [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 \
David Reiss28f298d2008-05-01 06:17:36 +000044 src/transport/TBufferTransports.cpp \
veeve01d187c2008-02-26 05:12:08 +000045 src/server/TServer.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000046 src/server/TSimpleServer.cpp \
47 src/server/TThreadPoolServer.cpp \
48 src/server/TThreadedServer.cpp \
49 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000050
David Reiss79ae0f82007-09-17 21:15:47 +000051libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000052
David Reissfaebedd2007-09-17 23:20:38 +000053libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
54
55
56# Flags for the various libraries
57
David Reiss79ae0f82007-09-17 21:15:47 +000058libthrift_la_CXXFLAGS = $(common_cxxflags)
David Reissfaebedd2007-09-17 23:20:38 +000059
60libthriftnb_la_CXXFLAGS = $(common_cxxflags)
61libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
62
63libthriftz_la_CXXFLAGS = $(common_cxxflags)
64libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
65
Marc Slemko9d4a3e22006-07-21 19:53:48 +000066
Marc Slemko16698852006-08-04 03:16:10 +000067include_thriftdir = $(includedir)/thrift
68include_thrift_HEADERS = \
David Reiss832b2622007-12-28 18:25:33 +000069 $(top_srcdir)/config.h \
James Wang3e9d1772007-03-27 23:17:34 +000070 src/Thrift.h \
David Reiss0c90f6f2008-02-06 22:18:40 +000071 src/TReflectionLocal.h \
David Reiss23753122007-08-27 19:57:34 +000072 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000073 src/TProcessor.h \
74 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000075
Marc Slemkod42a2c22006-08-10 03:30:18 +000076include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000077include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000078 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000079 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000080 src/concurrency/Monitor.h \
81 src/concurrency/PosixThreadFactory.h \
82 src/concurrency/Thread.h \
83 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000084 src/concurrency/TimerManager.h \
Mark Sleeb16074d2007-11-28 05:54:33 +000085 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000086
Marc Slemkod42a2c22006-08-10 03:30:18 +000087include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000088include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000089 src/protocol/TBinaryProtocol.h \
David Reissb72d19f2007-09-18 19:46:00 +000090 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000091 src/protocol/TDebugProtocol.h \
92 src/protocol/TOneWayProtocol.h \
David Reiss94058452008-04-21 18:07:58 +000093 src/protocol/TBase64Utils.h \
94 src/protocol/TJSONProtocol.h \
David Reisse0e3d1b2008-04-08 05:06:45 +000095 src/protocol/TProtocolTap.h \
Mark Sleef9831082007-02-20 20:59:21 +000096 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000097 src/protocol/TProtocol.h
98
Marc Slemkod42a2c22006-08-10 03:30:18 +000099include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +0000100include_transport_HEADERS = \
David Reisse4db03d2008-04-08 05:06:59 +0000101 src/transport/TFDTransport.h \
Aditya Agarwal25b29362006-12-09 00:58:15 +0000102 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000103 src/transport/TServerSocket.h \
104 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +0000105 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000106 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +0000107 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000108 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +0000109 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +0000110 src/transport/TTransportUtils.h \
David Reiss28f298d2008-05-01 06:17:36 +0000111 src/transport/TBufferTransports.h \
David Reissfaebedd2007-09-17 23:20:38 +0000112 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +0000113
Marc Slemkod42a2c22006-08-10 03:30:18 +0000114include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +0000115include_server_HEADERS = \
116 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000117 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000118 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000119 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000120 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000121
Aditya Agarwal000b1112007-08-31 08:03:05 +0000122include_processordir = $(include_thriftdir)/processor
123include_processor_HEADERS = \
124 src/processor/PeekProcessor.h \
125 src/processor/StatsProcessor.h
126
David Reissb72d19f2007-09-18 19:46:00 +0000127noinst_PROGRAMS = concurrency_test
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000128
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000129concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000130 src/concurrency/test/ThreadFactoryTests.h \
131 src/concurrency/test/ThreadManagerTests.h \
132 src/concurrency/test/TimerManagerTests.h
133
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000134concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000135
Marc Slemko6f038a72006-08-03 18:58:09 +0000136concurrency_test_CXXFLAGS = $(common_cxxflags)
137concurrency_test_LDFLAGS = $(common_ldflags)
David Reissb72d19f2007-09-18 19:46:00 +0000138
David Reiss832b2622007-12-28 18:25:33 +0000139EXTRA_DIST = \
David Reiss0c90f6f2008-02-06 22:18:40 +0000140 README \
141 thrift-nb.pc.in \
142 thrift.pc.in \
143 thrift-z.pc.in