blob: e0952ddfdcb3f24070b6173da2eedd6fc0225e8d [file] [log] [blame]
Mark Slee0788a702007-01-25 08:14:50 +00001lib_LTLIBRARIES = libthrift.la libthriftnb.la
Marc Slemko6f038a72006-08-03 18:58:09 +00002
Marc Slemko85ca7a12007-01-17 08:32:16 +00003common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS) $(EVENT_CPPFLAGS)
4common_ldflags = -Wall $(BOOST_LDFLAGS) $(EVENT_LDFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +00005
6# Define the source file for the module
7
Mark Sleef9831082007-02-20 20:59:21 +00008libthrift_sources = src/Thrift.cpp \
David Reiss23753122007-08-27 19:57:34 +00009 src/reflection_limited_types.cpp \
Mark Sleef9831082007-02-20 20:59:21 +000010 src/concurrency/Mutex.cpp \
Mark Slee0f70d772006-10-28 00:51:14 +000011 src/concurrency/Monitor.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000012 src/concurrency/PosixThreadFactory.cpp \
13 src/concurrency/ThreadManager.cpp \
14 src/concurrency/TimerManager.cpp \
James Wang3e9d1772007-03-27 23:17:34 +000015 src/protocol/TBinaryProtocol.cpp \
David Reiss00dcccf2007-07-21 01:18:10 +000016 src/protocol/TDebugProtocol.cpp \
David Reiss4e7530d2007-09-04 21:49:53 +000017 src/protocol/TDenseProtocol.cpp \
18 src/transport/TTransportException.cpp \
Aditya Agarwal25b29362006-12-09 00:58:15 +000019 src/transport/TFileTransport.cpp \
Mark Slee8a98e1b2007-02-27 05:16:23 +000020 src/transport/THttpClient.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000021 src/transport/TSocket.cpp \
jsobele02e4242007-05-08 17:51:49 +000022 src/transport/TSocketPool.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000023 src/transport/TServerSocket.cpp \
Mark Slee4af6ed72006-10-25 19:02:49 +000024 src/transport/TTransportUtils.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000025 src/server/TSimpleServer.cpp \
Mark Sleeb3cb6292007-02-01 22:55:00 +000026 src/server/TThreadPoolServer.cpp \
Aditya Agarwal000b1112007-08-31 08:03:05 +000027 src/server/TThreadedServer.cpp \
28 src/processor/PeekProcessor.cpp
29
Mark Slee0788a702007-01-25 08:14:50 +000030
31libthriftnb_sources = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000032
Marc Slemko16698852006-08-04 03:16:10 +000033libthrift_la_SOURCES = $(libthrift_sources)
Mark Slee0788a702007-01-25 08:14:50 +000034libthriftnb_la_SOURCES = $(libthriftnb_sources)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000035
Marc Slemko6f038a72006-08-03 18:58:09 +000036libthrift_cxxflags = $(common_cxxflags)
37libthrift_ldflags = $(common_ldflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000038
Marc Slemko6f038a72006-08-03 18:58:09 +000039libthrift_la_CXXFLAGS = $(libthrift_cxxflags)
Mark Slee0788a702007-01-25 08:14:50 +000040libthriftnb_la_CXXFLAGS = $(libthrift_cxxflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000041
Marc Slemko16698852006-08-04 03:16:10 +000042include_thriftdir = $(includedir)/thrift
43include_thrift_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000044 config.h \
45 src/Thrift.h \
David Reiss23753122007-08-27 19:57:34 +000046 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000047 src/TProcessor.h \
48 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000049
Marc Slemkod42a2c22006-08-10 03:30:18 +000050include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000051include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000052 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000053 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000054 src/concurrency/Monitor.h \
55 src/concurrency/PosixThreadFactory.h \
56 src/concurrency/Thread.h \
57 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000058 src/concurrency/TimerManager.h \
59 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000060
Marc Slemkod42a2c22006-08-10 03:30:18 +000061include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000062include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000063 src/protocol/TBinaryProtocol.h \
David Reiss4e7530d2007-09-04 21:49:53 +000064 src/protocol/TDenseProtocol.cpp \
David Reiss00dcccf2007-07-21 01:18:10 +000065 src/protocol/TDebugProtocol.h \
66 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000067 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000068 src/protocol/TProtocol.h
69
Marc Slemkod42a2c22006-08-10 03:30:18 +000070include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000071include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000072 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000073 src/transport/TServerSocket.h \
74 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000075 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000076 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +000077 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000078 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000079 src/transport/TTransportException.h \
Mark Slee4af6ed72006-10-25 19:02:49 +000080 src/transport/TTransportUtils.h
Marc Slemko16698852006-08-04 03:16:10 +000081
Marc Slemkod42a2c22006-08-10 03:30:18 +000082include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000083include_server_HEADERS = \
84 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000085 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000086 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +000087 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000088 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000089
Aditya Agarwal000b1112007-08-31 08:03:05 +000090include_processordir = $(include_thriftdir)/processor
91include_processor_HEADERS = \
92 src/processor/PeekProcessor.h \
93 src/processor/StatsProcessor.h
94
Marc Slemko9d4a3e22006-07-21 19:53:48 +000095bin_PROGRAMS = concurrency_test
96
Mark Sleeb3bd81f2006-10-25 01:36:44 +000097concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000098 src/concurrency/test/ThreadFactoryTests.h \
99 src/concurrency/test/ThreadManagerTests.h \
100 src/concurrency/test/TimerManagerTests.h
101
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000102concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000103
Marc Slemko6f038a72006-08-03 18:58:09 +0000104concurrency_test_CXXFLAGS = $(common_cxxflags)
105concurrency_test_LDFLAGS = $(common_ldflags)