blob: 69ee5a640088451f5ab3a67a676fbed27fa6a526 [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 \
34 src/transport/TTransportException.cpp \
35 src/transport/TFileTransport.cpp \
36 src/transport/THttpClient.cpp \
37 src/transport/TSocket.cpp \
38 src/transport/TSocketPool.cpp \
39 src/transport/TServerSocket.cpp \
40 src/transport/TTransportUtils.cpp \
41 src/server/TSimpleServer.cpp \
42 src/server/TThreadPoolServer.cpp \
43 src/server/TThreadedServer.cpp \
44 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000045
David Reiss79ae0f82007-09-17 21:15:47 +000046libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000047
David Reissfaebedd2007-09-17 23:20:38 +000048libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
49
50
51# Flags for the various libraries
52
David Reiss79ae0f82007-09-17 21:15:47 +000053libthrift_la_CXXFLAGS = $(common_cxxflags)
David Reissfaebedd2007-09-17 23:20:38 +000054
55libthriftnb_la_CXXFLAGS = $(common_cxxflags)
56libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
57
58libthriftz_la_CXXFLAGS = $(common_cxxflags)
59libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
60
Marc Slemko9d4a3e22006-07-21 19:53:48 +000061
Marc Slemko16698852006-08-04 03:16:10 +000062include_thriftdir = $(includedir)/thrift
63include_thrift_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000064 config.h \
65 src/Thrift.h \
David Reissb72d19f2007-09-18 19:46:00 +000066 src/TReflectionLocal.h \
David Reiss23753122007-08-27 19:57:34 +000067 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000068 src/TProcessor.h \
69 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000070
Marc Slemkod42a2c22006-08-10 03:30:18 +000071include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000072include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000073 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000074 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000075 src/concurrency/Monitor.h \
76 src/concurrency/PosixThreadFactory.h \
77 src/concurrency/Thread.h \
78 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000079 src/concurrency/TimerManager.h \
Mark Sleeb16074d2007-11-28 05:54:33 +000080 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000081
Marc Slemkod42a2c22006-08-10 03:30:18 +000082include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000083include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000084 src/protocol/TBinaryProtocol.h \
David Reissb72d19f2007-09-18 19:46:00 +000085 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000086 src/protocol/TDebugProtocol.h \
87 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000088 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000089 src/protocol/TProtocol.h
90
Marc Slemkod42a2c22006-08-10 03:30:18 +000091include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000092include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000093 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000094 src/transport/TServerSocket.h \
95 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000096 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000097 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +000098 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000099 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +0000100 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +0000101 src/transport/TTransportUtils.h \
102 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +0000103
Marc Slemkod42a2c22006-08-10 03:30:18 +0000104include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +0000105include_server_HEADERS = \
106 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000107 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000108 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000109 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000110 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000111
Aditya Agarwal000b1112007-08-31 08:03:05 +0000112include_processordir = $(include_thriftdir)/processor
113include_processor_HEADERS = \
114 src/processor/PeekProcessor.h \
115 src/processor/StatsProcessor.h
116
David Reissb72d19f2007-09-18 19:46:00 +0000117noinst_PROGRAMS = concurrency_test
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000118
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000119concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000120 src/concurrency/test/ThreadFactoryTests.h \
121 src/concurrency/test/ThreadManagerTests.h \
122 src/concurrency/test/TimerManagerTests.h
123
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000124concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000125
Marc Slemko6f038a72006-08-03 18:58:09 +0000126concurrency_test_CXXFLAGS = $(common_cxxflags)
127concurrency_test_LDFLAGS = $(common_ldflags)
David Reissb72d19f2007-09-18 19:46:00 +0000128
Mark Sleeb16074d2007-11-28 05:54:33 +0000129EXTRA_DIST =
130 bootstrap.sh \
131 cleanup.sh \
132 LICENSE \
133 thrift-nb.pc.in \
134 thrift.pc.in \
135 thrift-z.pc.in