2007-09-18 19:46:00 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I ./aclocal
|
|
|
|
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
lib_LTLIBRARIES = libthrift.la
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfig_DATA = thrift.pc
|
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
## We only build the extra libraries if we have the dependencies,
|
|
|
|
## but we install all of the headers unconditionally.
|
|
|
|
if AMX_HAVE_LIBEVENT
|
|
|
|
lib_LTLIBRARIES += libthriftnb.la
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfig_DATA += thrift-nb.pc
|
2007-09-17 21:15:47 +00:00
|
|
|
endif
|
2007-09-17 23:20:38 +00:00
|
|
|
if AMX_HAVE_ZLIB
|
|
|
|
lib_LTLIBRARIES += libthriftz.la
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfig_DATA += thrift-z.pc
|
2007-09-17 23:20:38 +00:00
|
|
|
endif
|
2006-08-03 18:58:09 +00:00
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
|
|
|
|
common_ldflags = -Wall $(BOOST_LDFLAGS)
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2007-09-17 23:20:38 +00:00
|
|
|
# Define the source files for the module
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
libthrift_la_SOURCES = src/Thrift.cpp \
|
|
|
|
src/reflection_limited_types.cpp \
|
|
|
|
src/concurrency/Mutex.cpp \
|
|
|
|
src/concurrency/Monitor.cpp \
|
|
|
|
src/concurrency/PosixThreadFactory.cpp \
|
|
|
|
src/concurrency/ThreadManager.cpp \
|
|
|
|
src/concurrency/TimerManager.cpp \
|
|
|
|
src/protocol/TBinaryProtocol.cpp \
|
|
|
|
src/protocol/TDebugProtocol.cpp \
|
|
|
|
src/protocol/TDenseProtocol.cpp \
|
2008-02-18 01:49:37 +00:00
|
|
|
src/protocol/TJSONProtocol.cpp \
|
|
|
|
src/protocol/TBase64Utils.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TTransportException.cpp \
|
2008-04-08 05:06:59 +00:00
|
|
|
src/transport/TFDTransport.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TFileTransport.cpp \
|
|
|
|
src/transport/THttpClient.cpp \
|
|
|
|
src/transport/TSocket.cpp \
|
|
|
|
src/transport/TSocketPool.cpp \
|
|
|
|
src/transport/TServerSocket.cpp \
|
|
|
|
src/transport/TTransportUtils.cpp \
|
2008-02-26 05:12:08 +00:00
|
|
|
src/server/TServer.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/server/TSimpleServer.cpp \
|
|
|
|
src/server/TThreadPoolServer.cpp \
|
|
|
|
src/server/TThreadedServer.cpp \
|
|
|
|
src/processor/PeekProcessor.cpp
|
|
|
|
|
|
|
|
libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
|
|
|
|
|
2007-09-17 23:20:38 +00:00
|
|
|
libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
|
|
|
|
|
|
|
|
|
|
|
|
# Flags for the various libraries
|
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
libthrift_la_CXXFLAGS = $(common_cxxflags)
|
2007-09-17 23:20:38 +00:00
|
|
|
|
|
|
|
libthriftnb_la_CXXFLAGS = $(common_cxxflags)
|
|
|
|
libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
|
|
|
|
|
|
|
|
libthriftz_la_CXXFLAGS = $(common_cxxflags)
|
|
|
|
libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
|
|
|
|
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2006-08-04 03:16:10 +00:00
|
|
|
include_thriftdir = $(includedir)/thrift
|
|
|
|
include_thrift_HEADERS = \
|
2007-12-28 18:25:33 +00:00
|
|
|
$(top_srcdir)/config.h \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/Thrift.h \
|
2008-02-06 22:18:40 +00:00
|
|
|
src/TReflectionLocal.h \
|
2007-08-27 19:57:34 +00:00
|
|
|
src/reflection_limited_types.h \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/TProcessor.h \
|
|
|
|
src/TLogging.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_concurrencydir = $(include_thriftdir)/concurrency
|
2006-08-04 03:16:10 +00:00
|
|
|
include_concurrency_HEADERS = \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/concurrency/Exception.h \
|
2006-10-28 00:51:14 +00:00
|
|
|
src/concurrency/Mutex.h \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/concurrency/Monitor.h \
|
|
|
|
src/concurrency/PosixThreadFactory.h \
|
|
|
|
src/concurrency/Thread.h \
|
|
|
|
src/concurrency/ThreadManager.h \
|
2006-08-17 01:23:12 +00:00
|
|
|
src/concurrency/TimerManager.h \
|
2007-11-28 05:54:33 +00:00
|
|
|
src/concurrency/Util.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_protocoldir = $(include_thriftdir)/protocol
|
2006-08-04 03:16:10 +00:00
|
|
|
include_protocol_HEADERS = \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/protocol/TBinaryProtocol.h \
|
2007-09-18 19:46:00 +00:00
|
|
|
src/protocol/TDenseProtocol.h \
|
2007-07-21 01:18:10 +00:00
|
|
|
src/protocol/TDebugProtocol.h \
|
|
|
|
src/protocol/TOneWayProtocol.h \
|
2008-04-21 18:07:58 +00:00
|
|
|
src/protocol/TBase64Utils.h \
|
|
|
|
src/protocol/TJSONProtocol.h \
|
2008-04-08 05:06:45 +00:00
|
|
|
src/protocol/TProtocolTap.h \
|
2007-02-20 20:59:21 +00:00
|
|
|
src/protocol/TProtocolException.h \
|
2006-08-04 03:16:10 +00:00
|
|
|
src/protocol/TProtocol.h
|
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_transportdir = $(include_thriftdir)/transport
|
2006-08-04 03:16:10 +00:00
|
|
|
include_transport_HEADERS = \
|
2008-04-08 05:06:59 +00:00
|
|
|
src/transport/TFDTransport.h \
|
2006-12-09 00:58:15 +00:00
|
|
|
src/transport/TFileTransport.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TServerSocket.h \
|
|
|
|
src/transport/TServerTransport.h \
|
2007-02-27 05:16:23 +00:00
|
|
|
src/transport/THttpClient.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TSocket.h \
|
2007-05-08 17:51:49 +00:00
|
|
|
src/transport/TSocketPool.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TTransport.h \
|
2006-09-07 01:26:35 +00:00
|
|
|
src/transport/TTransportException.h \
|
2007-09-17 23:20:38 +00:00
|
|
|
src/transport/TTransportUtils.h \
|
|
|
|
src/transport/TZlibTransport.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_serverdir = $(include_thriftdir)/server
|
2006-08-04 03:16:10 +00:00
|
|
|
include_server_HEADERS = \
|
|
|
|
src/server/TServer.h \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/server/TSimpleServer.h \
|
2006-10-10 01:37:40 +00:00
|
|
|
src/server/TThreadPoolServer.h \
|
2007-02-01 22:55:00 +00:00
|
|
|
src/server/TThreadedServer.h \
|
2006-10-10 01:37:40 +00:00
|
|
|
src/server/TNonblockingServer.h
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2007-08-31 08:03:05 +00:00
|
|
|
include_processordir = $(include_thriftdir)/processor
|
|
|
|
include_processor_HEADERS = \
|
|
|
|
src/processor/PeekProcessor.h \
|
|
|
|
src/processor/StatsProcessor.h
|
|
|
|
|
2007-09-18 19:46:00 +00:00
|
|
|
noinst_PROGRAMS = concurrency_test
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2006-10-25 01:36:44 +00:00
|
|
|
concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/concurrency/test/ThreadFactoryTests.h \
|
|
|
|
src/concurrency/test/ThreadManagerTests.h \
|
|
|
|
src/concurrency/test/TimerManagerTests.h
|
|
|
|
|
2006-08-09 01:20:16 +00:00
|
|
|
concurrency_test_LDADD = libthrift.la
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2006-08-03 18:58:09 +00:00
|
|
|
concurrency_test_CXXFLAGS = $(common_cxxflags)
|
|
|
|
concurrency_test_LDFLAGS = $(common_ldflags)
|
2007-09-18 19:46:00 +00:00
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
EXTRA_DIST = \
|
2008-02-06 22:18:40 +00:00
|
|
|
README \
|
|
|
|
thrift-nb.pc.in \
|
|
|
|
thrift.pc.in \
|
|
|
|
thrift-z.pc.in
|