blob: 07540a1eb9c3a3fa0af448520139fcf6be8cb34d [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 \
37 src/transport/TFileTransport.cpp \
38 src/transport/THttpClient.cpp \
39 src/transport/TSocket.cpp \
40 src/transport/TSocketPool.cpp \
41 src/transport/TServerSocket.cpp \
42 src/transport/TTransportUtils.cpp \
veeve01d187c2008-02-26 05:12:08 +000043 src/server/TServer.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000044 src/server/TSimpleServer.cpp \
45 src/server/TThreadPoolServer.cpp \
46 src/server/TThreadedServer.cpp \
47 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000048
David Reiss79ae0f82007-09-17 21:15:47 +000049libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000050
David Reissfaebedd2007-09-17 23:20:38 +000051libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
52
53
54# Flags for the various libraries
55
David Reiss79ae0f82007-09-17 21:15:47 +000056libthrift_la_CXXFLAGS = $(common_cxxflags)
David Reissfaebedd2007-09-17 23:20:38 +000057
58libthriftnb_la_CXXFLAGS = $(common_cxxflags)
59libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
60
61libthriftz_la_CXXFLAGS = $(common_cxxflags)
62libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
63
Marc Slemko9d4a3e22006-07-21 19:53:48 +000064
Marc Slemko16698852006-08-04 03:16:10 +000065include_thriftdir = $(includedir)/thrift
66include_thrift_HEADERS = \
David Reiss832b2622007-12-28 18:25:33 +000067 $(top_srcdir)/config.h \
James Wang3e9d1772007-03-27 23:17:34 +000068 src/Thrift.h \
David Reiss0c90f6f2008-02-06 22:18:40 +000069 src/TReflectionLocal.h \
David Reiss23753122007-08-27 19:57:34 +000070 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000071 src/TProcessor.h \
72 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000073
Marc Slemkod42a2c22006-08-10 03:30:18 +000074include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000075include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000076 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000077 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000078 src/concurrency/Monitor.h \
79 src/concurrency/PosixThreadFactory.h \
80 src/concurrency/Thread.h \
81 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000082 src/concurrency/TimerManager.h \
Mark Sleeb16074d2007-11-28 05:54:33 +000083 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000084
Marc Slemkod42a2c22006-08-10 03:30:18 +000085include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000086include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000087 src/protocol/TBinaryProtocol.h \
David Reissb72d19f2007-09-18 19:46:00 +000088 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000089 src/protocol/TDebugProtocol.h \
90 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000091 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000092 src/protocol/TProtocol.h
93
Marc Slemkod42a2c22006-08-10 03:30:18 +000094include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000095include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000096 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000097 src/transport/TServerSocket.h \
98 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000099 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000100 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +0000101 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000102 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +0000103 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +0000104 src/transport/TTransportUtils.h \
105 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
Marc Slemko6f038a72006-08-03 18:58:09 +0000129concurrency_test_CXXFLAGS = $(common_cxxflags)
130concurrency_test_LDFLAGS = $(common_ldflags)
David Reissb72d19f2007-09-18 19:46:00 +0000131
David Reiss832b2622007-12-28 18:25:33 +0000132EXTRA_DIST = \
David Reiss0c90f6f2008-02-06 22:18:40 +0000133 README \
134 thrift-nb.pc.in \
135 thrift.pc.in \
136 thrift-z.pc.in