blob: b205e787cf508a1b10a2e76332f88d72752926d1 [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 \
9 src/concurrency/Mutex.cpp \
Mark Slee0f70d772006-10-28 00:51:14 +000010 src/concurrency/Monitor.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000011 src/concurrency/PosixThreadFactory.cpp \
12 src/concurrency/ThreadManager.cpp \
13 src/concurrency/TimerManager.cpp \
14 src/protocol/TBinaryProtocol.cpp \
Aditya Agarwal25b29362006-12-09 00:58:15 +000015 src/transport/TFileTransport.cpp \
Mark Slee8a98e1b2007-02-27 05:16:23 +000016 src/transport/THttpClient.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000017 src/transport/TSocket.cpp \
18 src/transport/TServerSocket.cpp \
Mark Slee4af6ed72006-10-25 19:02:49 +000019 src/transport/TTransportUtils.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000020 src/server/TSimpleServer.cpp \
Mark Sleeb3cb6292007-02-01 22:55:00 +000021 src/server/TThreadPoolServer.cpp \
22 src/server/TThreadedServer.cpp
Mark Slee0788a702007-01-25 08:14:50 +000023
24libthriftnb_sources = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000025
Marc Slemko16698852006-08-04 03:16:10 +000026libthrift_la_SOURCES = $(libthrift_sources)
Mark Slee0788a702007-01-25 08:14:50 +000027libthriftnb_la_SOURCES = $(libthriftnb_sources)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000028
Marc Slemko6f038a72006-08-03 18:58:09 +000029libthrift_cxxflags = $(common_cxxflags)
30libthrift_ldflags = $(common_ldflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000031
Marc Slemko6f038a72006-08-03 18:58:09 +000032libthrift_la_CXXFLAGS = $(libthrift_cxxflags)
Mark Slee0788a702007-01-25 08:14:50 +000033libthriftnb_la_CXXFLAGS = $(libthrift_cxxflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000034
Marc Slemko16698852006-08-04 03:16:10 +000035include_thriftdir = $(includedir)/thrift
36include_thrift_HEADERS = \
Marc Slemkoe18890f2006-08-17 01:23:12 +000037 config.h \
Marc Slemko16698852006-08-04 03:16:10 +000038 src/Thrift.h \
Aditya Agarwale528c762006-10-11 02:48:43 +000039 src/TProcessor.h \
40 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000041
Marc Slemkod42a2c22006-08-10 03:30:18 +000042include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000043include_concurrency_HEADERS = \
44 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000045 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000046 src/concurrency/Monitor.h \
47 src/concurrency/PosixThreadFactory.h \
48 src/concurrency/Thread.h \
49 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000050 src/concurrency/TimerManager.h \
51 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000052
Marc Slemkod42a2c22006-08-10 03:30:18 +000053include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000054include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000055 src/protocol/TBinaryProtocol.h \
Mark Sleef9831082007-02-20 20:59:21 +000056 src/protocol/TProtocolException.h \
Marc Slemko16698852006-08-04 03:16:10 +000057 src/protocol/TProtocol.h
58
Marc Slemkod42a2c22006-08-10 03:30:18 +000059include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000060include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000061 src/transport/TFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000062 src/transport/TServerSocket.h \
63 src/transport/TServerTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +000064 src/transport/THttpClient.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000065 src/transport/TSocket.h \
66 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000067 src/transport/TTransportException.h \
Mark Slee4af6ed72006-10-25 19:02:49 +000068 src/transport/TTransportUtils.h
Marc Slemko16698852006-08-04 03:16:10 +000069
Marc Slemkod42a2c22006-08-10 03:30:18 +000070include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000071include_server_HEADERS = \
72 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000073 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000074 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +000075 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000076 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000077
78bin_PROGRAMS = concurrency_test
79
Mark Sleeb3bd81f2006-10-25 01:36:44 +000080concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000081 src/concurrency/test/ThreadFactoryTests.h \
82 src/concurrency/test/ThreadManagerTests.h \
83 src/concurrency/test/TimerManagerTests.h
84
Marc Slemkoc09a65a2006-08-09 01:20:16 +000085concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +000086
Marc Slemko6f038a72006-08-03 18:58:09 +000087concurrency_test_CXXFLAGS = $(common_cxxflags)
88concurrency_test_LDFLAGS = $(common_ldflags)