blob: 4592008278d812bdad7c1de0a86ea4f6b58146d9 [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 Reissc6c64982008-06-11 01:16:45 +000019AM_CXXFLAGS = -Wall
20AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src
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 \
David Reiss79ae0f82007-09-17 21:15:47 +000025 src/concurrency/Mutex.cpp \
26 src/concurrency/Monitor.cpp \
27 src/concurrency/PosixThreadFactory.cpp \
28 src/concurrency/ThreadManager.cpp \
29 src/concurrency/TimerManager.cpp \
David Reiss53f18f02008-07-11 00:45:29 +000030 src/concurrency/Util.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000031 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
David Reissc6c64982008-06-11 01:16:45 +000057libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
58libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS)
David Reissfaebedd2007-09-17 23:20:38 +000059
Marc Slemko9d4a3e22006-07-21 19:53:48 +000060
Marc Slemko16698852006-08-04 03:16:10 +000061include_thriftdir = $(includedir)/thrift
62include_thrift_HEADERS = \
David Reissc6c64982008-06-11 01:16:45 +000063 $(top_builddir)/config.h \
James Wang3e9d1772007-03-27 23:17:34 +000064 src/Thrift.h \
David Reiss0c90f6f2008-02-06 22:18:40 +000065 src/TReflectionLocal.h \
James Wang3e9d1772007-03-27 23:17:34 +000066 src/TProcessor.h \
67 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000068
Marc Slemkod42a2c22006-08-10 03:30:18 +000069include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000070include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000071 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000072 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000073 src/concurrency/Monitor.h \
74 src/concurrency/PosixThreadFactory.h \
75 src/concurrency/Thread.h \
76 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000077 src/concurrency/TimerManager.h \
Mark Sleeb16074d2007-11-28 05:54:33 +000078 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000079
Marc Slemkod42a2c22006-08-10 03:30:18 +000080include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000081include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000082 src/protocol/TBinaryProtocol.h \
David Reissb72d19f2007-09-18 19:46:00 +000083 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000084 src/protocol/TDebugProtocol.h \
85 src/protocol/TOneWayProtocol.h \
David Reiss94058452008-04-21 18:07:58 +000086 src/protocol/TBase64Utils.h \
87 src/protocol/TJSONProtocol.h \
David Reisse0e3d1b2008-04-08 05:06:45 +000088 src/protocol/TProtocolTap.h \
Mark Sleef9831082007-02-20 20:59:21 +000089 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000090 src/protocol/TProtocol.h
91
Marc Slemkod42a2c22006-08-10 03:30:18 +000092include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000093include_transport_HEADERS = \
David Reisse4db03d2008-04-08 05:06:59 +000094 src/transport/TFDTransport.h \
Aditya Agarwal25b29362006-12-09 00:58:15 +000095 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000096 src/transport/TServerSocket.h \
97 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000098 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000099 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +0000100 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000101 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +0000102 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +0000103 src/transport/TTransportUtils.h \
David Reiss28f298d2008-05-01 06:17:36 +0000104 src/transport/TBufferTransports.h \
David Reissfaebedd2007-09-17 23:20:38 +0000105 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +0000106
Marc Slemkod42a2c22006-08-10 03:30:18 +0000107include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +0000108include_server_HEADERS = \
109 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000110 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000111 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000112 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000113 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000114
Aditya Agarwal000b1112007-08-31 08:03:05 +0000115include_processordir = $(include_thriftdir)/processor
116include_processor_HEADERS = \
117 src/processor/PeekProcessor.h \
118 src/processor/StatsProcessor.h
119
David Reissb72d19f2007-09-18 19:46:00 +0000120noinst_PROGRAMS = concurrency_test
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000121
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000122concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000123 src/concurrency/test/ThreadFactoryTests.h \
124 src/concurrency/test/ThreadManagerTests.h \
125 src/concurrency/test/TimerManagerTests.h
126
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000127concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000128
David Reiss832b2622007-12-28 18:25:33 +0000129EXTRA_DIST = \
David Reiss0c90f6f2008-02-06 22:18:40 +0000130 README \
131 thrift-nb.pc.in \
132 thrift.pc.in \
133 thrift-z.pc.in