blob: 7b1f1b017b30b52e972a3bdb2c06dbcedd1d59d6 [file] [log] [blame]
David Reiss79ae0f82007-09-17 21:15:47 +00001lib_LTLIBRARIES = libthrift.la
2## We only build the extra libraries if we have the dependencies,
3## but we install all of the headers unconditionally.
4if AMX_HAVE_LIBEVENT
5lib_LTLIBRARIES += libthriftnb.la
6endif
David Reissfaebedd2007-09-17 23:20:38 +00007if AMX_HAVE_ZLIB
8lib_LTLIBRARIES += libthriftz.la
9endif
Marc Slemko6f038a72006-08-03 18:58:09 +000010
David Reiss79ae0f82007-09-17 21:15:47 +000011common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
12common_ldflags = -Wall $(BOOST_LDFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000013
David Reissfaebedd2007-09-17 23:20:38 +000014# Define the source files for the module
Marc Slemko9d4a3e22006-07-21 19:53:48 +000015
David Reiss79ae0f82007-09-17 21:15:47 +000016libthrift_la_SOURCES = src/Thrift.cpp \
17 src/reflection_limited_types.cpp \
18 src/concurrency/Mutex.cpp \
19 src/concurrency/Monitor.cpp \
20 src/concurrency/PosixThreadFactory.cpp \
21 src/concurrency/ThreadManager.cpp \
22 src/concurrency/TimerManager.cpp \
23 src/protocol/TBinaryProtocol.cpp \
24 src/protocol/TDebugProtocol.cpp \
25 src/protocol/TDenseProtocol.cpp \
26 src/transport/TTransportException.cpp \
27 src/transport/TFileTransport.cpp \
28 src/transport/THttpClient.cpp \
29 src/transport/TSocket.cpp \
30 src/transport/TSocketPool.cpp \
31 src/transport/TServerSocket.cpp \
32 src/transport/TTransportUtils.cpp \
33 src/server/TSimpleServer.cpp \
34 src/server/TThreadPoolServer.cpp \
35 src/server/TThreadedServer.cpp \
36 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000037
David Reiss79ae0f82007-09-17 21:15:47 +000038libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000039
David Reissfaebedd2007-09-17 23:20:38 +000040libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
41
42
43# Flags for the various libraries
44
David Reiss79ae0f82007-09-17 21:15:47 +000045libthrift_la_CXXFLAGS = $(common_cxxflags)
David Reissfaebedd2007-09-17 23:20:38 +000046
47libthriftnb_la_CXXFLAGS = $(common_cxxflags)
48libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
49
50libthriftz_la_CXXFLAGS = $(common_cxxflags)
51libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
52
Marc Slemko9d4a3e22006-07-21 19:53:48 +000053
Marc Slemko16698852006-08-04 03:16:10 +000054include_thriftdir = $(includedir)/thrift
55include_thrift_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000056 config.h \
57 src/Thrift.h \
David Reiss23753122007-08-27 19:57:34 +000058 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000059 src/TProcessor.h \
60 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000061
Marc Slemkod42a2c22006-08-10 03:30:18 +000062include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000063include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000064 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000065 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000066 src/concurrency/Monitor.h \
67 src/concurrency/PosixThreadFactory.h \
68 src/concurrency/Thread.h \
69 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000070 src/concurrency/TimerManager.h \
71 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000072
Marc Slemkod42a2c22006-08-10 03:30:18 +000073include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000074include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000075 src/protocol/TBinaryProtocol.h \
David Reiss4e7530d2007-09-04 21:49:53 +000076 src/protocol/TDenseProtocol.cpp \
David Reiss00dcccf2007-07-21 01:18:10 +000077 src/protocol/TDebugProtocol.h \
78 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000079 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000080 src/protocol/TProtocol.h
81
Marc Slemkod42a2c22006-08-10 03:30:18 +000082include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000083include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000084 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000085 src/transport/TServerSocket.h \
86 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000087 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000088 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +000089 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000090 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000091 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +000092 src/transport/TTransportUtils.h \
93 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +000094
Marc Slemkod42a2c22006-08-10 03:30:18 +000095include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000096include_server_HEADERS = \
97 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000098 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000099 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000100 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000101 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000102
Aditya Agarwal000b1112007-08-31 08:03:05 +0000103include_processordir = $(include_thriftdir)/processor
104include_processor_HEADERS = \
105 src/processor/PeekProcessor.h \
106 src/processor/StatsProcessor.h
107
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000108bin_PROGRAMS = concurrency_test
109
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000110concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000111 src/concurrency/test/ThreadFactoryTests.h \
112 src/concurrency/test/ThreadManagerTests.h \
113 src/concurrency/test/TimerManagerTests.h
114
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000115concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000116
Marc Slemko6f038a72006-08-03 18:58:09 +0000117concurrency_test_CXXFLAGS = $(common_cxxflags)
118concurrency_test_LDFLAGS = $(common_ldflags)