blob: b80bcc385e15161131cc0894c619e62414d9d1e6 [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
Marc Slemko6f038a72006-08-03 18:58:09 +00007
David Reiss79ae0f82007-09-17 21:15:47 +00008common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
9common_ldflags = -Wall $(BOOST_LDFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000010
11# Define the source file for the module
12
David Reiss79ae0f82007-09-17 21:15:47 +000013libthrift_la_SOURCES = src/Thrift.cpp \
14 src/reflection_limited_types.cpp \
15 src/concurrency/Mutex.cpp \
16 src/concurrency/Monitor.cpp \
17 src/concurrency/PosixThreadFactory.cpp \
18 src/concurrency/ThreadManager.cpp \
19 src/concurrency/TimerManager.cpp \
20 src/protocol/TBinaryProtocol.cpp \
21 src/protocol/TDebugProtocol.cpp \
22 src/protocol/TDenseProtocol.cpp \
23 src/transport/TTransportException.cpp \
24 src/transport/TFileTransport.cpp \
25 src/transport/THttpClient.cpp \
26 src/transport/TSocket.cpp \
27 src/transport/TSocketPool.cpp \
28 src/transport/TServerSocket.cpp \
29 src/transport/TTransportUtils.cpp \
30 src/server/TSimpleServer.cpp \
31 src/server/TThreadPoolServer.cpp \
32 src/server/TThreadedServer.cpp \
33 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000034
Mark Slee0788a702007-01-25 08:14:50 +000035
David Reiss79ae0f82007-09-17 21:15:47 +000036libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000037
David Reiss79ae0f82007-09-17 21:15:47 +000038libthrift_la_CXXFLAGS = $(common_cxxflags)
39libthriftnb_la_CXXFLAGS = $(common_cxxflags) $(LIBEVENT_CPPFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000040
Marc Slemko16698852006-08-04 03:16:10 +000041include_thriftdir = $(includedir)/thrift
42include_thrift_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000043 config.h \
44 src/Thrift.h \
David Reiss23753122007-08-27 19:57:34 +000045 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000046 src/TProcessor.h \
47 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000048
Marc Slemkod42a2c22006-08-10 03:30:18 +000049include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000050include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000051 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000052 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000053 src/concurrency/Monitor.h \
54 src/concurrency/PosixThreadFactory.h \
55 src/concurrency/Thread.h \
56 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000057 src/concurrency/TimerManager.h \
58 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000059
Marc Slemkod42a2c22006-08-10 03:30:18 +000060include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000061include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000062 src/protocol/TBinaryProtocol.h \
David Reiss4e7530d2007-09-04 21:49:53 +000063 src/protocol/TDenseProtocol.cpp \
David Reiss00dcccf2007-07-21 01:18:10 +000064 src/protocol/TDebugProtocol.h \
65 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000066 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000067 src/protocol/TProtocol.h
68
Marc Slemkod42a2c22006-08-10 03:30:18 +000069include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000070include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000071 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000072 src/transport/TServerSocket.h \
73 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000074 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000075 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +000076 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000077 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000078 src/transport/TTransportException.h \
David Reiss5aea7c82007-09-15 01:54:56 +000079 src/transport/TTransportUtils.h
Marc Slemko16698852006-08-04 03:16:10 +000080
Marc Slemkod42a2c22006-08-10 03:30:18 +000081include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000082include_server_HEADERS = \
83 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000084 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000085 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +000086 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000087 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000088
Aditya Agarwal000b1112007-08-31 08:03:05 +000089include_processordir = $(include_thriftdir)/processor
90include_processor_HEADERS = \
91 src/processor/PeekProcessor.h \
92 src/processor/StatsProcessor.h
93
Marc Slemko9d4a3e22006-07-21 19:53:48 +000094bin_PROGRAMS = concurrency_test
95
Mark Sleeb3bd81f2006-10-25 01:36:44 +000096concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000097 src/concurrency/test/ThreadFactoryTests.h \
98 src/concurrency/test/ThreadManagerTests.h \
99 src/concurrency/test/TimerManagerTests.h
100
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000101concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000102
Marc Slemko6f038a72006-08-03 18:58:09 +0000103concurrency_test_CXXFLAGS = $(common_cxxflags)
104concurrency_test_LDFLAGS = $(common_ldflags)