blob: fa48e3ef7bd57bfabdf2734346b19aab58d3dbfb [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/processor/PeekProcessor.cpp \
16 src/protocol/TBinaryProtocol.cpp \
David Reiss00dcccf2007-07-21 01:18:10 +000017 src/protocol/TDebugProtocol.cpp \
David Reissbc3dddb2007-08-22 23:20:24 +000018 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 \
27 src/server/TThreadedServer.cpp
Mark Slee0788a702007-01-25 08:14:50 +000028
29libthriftnb_sources = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000030
Marc Slemko16698852006-08-04 03:16:10 +000031libthrift_la_SOURCES = $(libthrift_sources)
Mark Slee0788a702007-01-25 08:14:50 +000032libthriftnb_la_SOURCES = $(libthriftnb_sources)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000033
Marc Slemko6f038a72006-08-03 18:58:09 +000034libthrift_cxxflags = $(common_cxxflags)
35libthrift_ldflags = $(common_ldflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000036
Marc Slemko6f038a72006-08-03 18:58:09 +000037libthrift_la_CXXFLAGS = $(libthrift_cxxflags)
Mark Slee0788a702007-01-25 08:14:50 +000038libthriftnb_la_CXXFLAGS = $(libthrift_cxxflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000039
Marc Slemko16698852006-08-04 03:16:10 +000040include_thriftdir = $(includedir)/thrift
41include_thrift_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000042 config.h \
43 src/Thrift.h \
David Reiss23753122007-08-27 19:57:34 +000044 src/reflection_limited_types.h \
James Wang3e9d1772007-03-27 23:17:34 +000045 src/TProcessor.h \
46 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000047
Marc Slemkod42a2c22006-08-10 03:30:18 +000048include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000049include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000050 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000051 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000052 src/concurrency/Monitor.h \
53 src/concurrency/PosixThreadFactory.h \
54 src/concurrency/Thread.h \
55 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000056 src/concurrency/TimerManager.h \
57 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000058
Marc Slemkod42a2c22006-08-10 03:30:18 +000059include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000060include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000061 src/protocol/TBinaryProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +000062 src/protocol/TDebugProtocol.h \
63 src/protocol/TOneWayProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000064 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000065 src/protocol/TProtocol.h
66
Marc Slemkod42a2c22006-08-10 03:30:18 +000067include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000068include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000069 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000070 src/transport/TServerSocket.h \
71 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000072 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000073 src/transport/TSocket.h \
jsobele02e4242007-05-08 17:51:49 +000074 src/transport/TSocketPool.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000075 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000076 src/transport/TTransportException.h \
Mark Slee4af6ed72006-10-25 19:02:49 +000077 src/transport/TTransportUtils.h
Marc Slemko16698852006-08-04 03:16:10 +000078
Marc Slemkod42a2c22006-08-10 03:30:18 +000079include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000080include_server_HEADERS = \
81 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000082 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000083 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +000084 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000085 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000086
87bin_PROGRAMS = concurrency_test
88
Mark Sleeb3bd81f2006-10-25 01:36:44 +000089concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000090 src/concurrency/test/ThreadFactoryTests.h \
91 src/concurrency/test/ThreadManagerTests.h \
92 src/concurrency/test/TimerManagerTests.h
93
Marc Slemkoc09a65a2006-08-09 01:20:16 +000094concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +000095
Marc Slemko6f038a72006-08-03 18:58:09 +000096concurrency_test_CXXFLAGS = $(common_cxxflags)
97concurrency_test_LDFLAGS = $(common_ldflags)