blob: 6df9ab4e8e94668aee9b7c28492bb070de0546b2 [file] [log] [blame]
David Reissb72d19f2007-09-18 19:46:00 +00001ACLOCAL_AMFLAGS = -I ./aclocal
2
David Reiss79ae0f82007-09-17 21:15:47 +00003lib_LTLIBRARIES = libthrift.la
4## We only build the extra libraries if we have the dependencies,
5## but we install all of the headers unconditionally.
6if AMX_HAVE_LIBEVENT
7lib_LTLIBRARIES += libthriftnb.la
8endif
David Reissfaebedd2007-09-17 23:20:38 +00009if AMX_HAVE_ZLIB
10lib_LTLIBRARIES += libthriftz.la
11endif
Marc Slemko6f038a72006-08-03 18:58:09 +000012
David Reiss79ae0f82007-09-17 21:15:47 +000013common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
14common_ldflags = -Wall $(BOOST_LDFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000015
David Reissfaebedd2007-09-17 23:20:38 +000016# Define the source files for the module
Marc Slemko9d4a3e22006-07-21 19:53:48 +000017
David Reiss79ae0f82007-09-17 21:15:47 +000018libthrift_la_SOURCES = src/Thrift.cpp \
19 src/reflection_limited_types.cpp \
20 src/concurrency/Mutex.cpp \
21 src/concurrency/Monitor.cpp \
22 src/concurrency/PosixThreadFactory.cpp \
23 src/concurrency/ThreadManager.cpp \
24 src/concurrency/TimerManager.cpp \
25 src/protocol/TBinaryProtocol.cpp \
26 src/protocol/TDebugProtocol.cpp \
27 src/protocol/TDenseProtocol.cpp \
28 src/transport/TTransportException.cpp \
29 src/transport/TFileTransport.cpp \
30 src/transport/THttpClient.cpp \
31 src/transport/TSocket.cpp \
32 src/transport/TSocketPool.cpp \
33 src/transport/TServerSocket.cpp \
34 src/transport/TTransportUtils.cpp \
35 src/server/TSimpleServer.cpp \
36 src/server/TThreadPoolServer.cpp \
37 src/server/TThreadedServer.cpp \
38 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000039
David Reiss79ae0f82007-09-17 21:15:47 +000040libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000041
David Reissfaebedd2007-09-17 23:20:38 +000042libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
43
44
45# Flags for the various libraries
46
David Reiss79ae0f82007-09-17 21:15:47 +000047libthrift_la_CXXFLAGS = $(common_cxxflags)
David Reissfaebedd2007-09-17 23:20:38 +000048
49libthriftnb_la_CXXFLAGS = $(common_cxxflags)
50libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
51
52libthriftz_la_CXXFLAGS = $(common_cxxflags)
53libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
54
Marc Slemko9d4a3e22006-07-21 19:53:48 +000055
Marc Slemko16698852006-08-04 03:16:10 +000056include_thriftdir = $(includedir)/thrift
57include_thrift_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000058 config.h \
59 src/Thrift.h \
David Reissb72d19f2007-09-18 19:46:00 +000060 src/TReflectionLocal.h \
David Reiss23753122007-08-27 19:57:34 +000061 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000062 src/TProcessor.h \
63 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000064
Marc Slemkod42a2c22006-08-10 03:30:18 +000065include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000066include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000067 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000068 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000069 src/concurrency/Monitor.h \
70 src/concurrency/PosixThreadFactory.h \
71 src/concurrency/Thread.h \
72 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000073 src/concurrency/TimerManager.h \
74 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000075
Marc Slemkod42a2c22006-08-10 03:30:18 +000076include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000077include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000078 src/protocol/TBinaryProtocol.h \
David Reissb72d19f2007-09-18 19:46:00 +000079 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000080 src/protocol/TDebugProtocol.h \
81 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000082 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000083 src/protocol/TProtocol.h
84
Marc Slemkod42a2c22006-08-10 03:30:18 +000085include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000086include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000087 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000088 src/transport/TServerSocket.h \
89 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000090 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000091 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +000092 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000093 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000094 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +000095 src/transport/TTransportUtils.h \
96 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +000097
Marc Slemkod42a2c22006-08-10 03:30:18 +000098include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000099include_server_HEADERS = \
100 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000101 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000102 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000103 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000104 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000105
Aditya Agarwal000b1112007-08-31 08:03:05 +0000106include_processordir = $(include_thriftdir)/processor
107include_processor_HEADERS = \
108 src/processor/PeekProcessor.h \
109 src/processor/StatsProcessor.h
110
David Reissb72d19f2007-09-18 19:46:00 +0000111noinst_PROGRAMS = concurrency_test
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000112
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000113concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000114 src/concurrency/test/ThreadFactoryTests.h \
115 src/concurrency/test/ThreadManagerTests.h \
116 src/concurrency/test/TimerManagerTests.h
117
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000118concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000119
Marc Slemko6f038a72006-08-03 18:58:09 +0000120concurrency_test_CXXFLAGS = $(common_cxxflags)
121concurrency_test_LDFLAGS = $(common_ldflags)
David Reissb72d19f2007-09-18 19:46:00 +0000122
123EXTRA_DIST = bootstrap.sh cleanup.sh LICENSE