blob: 084404894c09ccd8a655654f18103aa70aae7f3b [file] [log] [blame]
Marc Slemko16698852006-08-04 03:16:10 +00001lib_LTLIBRARIES = libthrift.la
Marc Slemko6f038a72006-08-03 18:58:09 +00002
Mark Sleed788b2e2006-09-07 01:26:35 +00003common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
Mark Slee2f6404d2006-10-10 01:37:40 +00004common_ldflags = -Wall $(BOOST_LDFLAGS) -levent
Marc Slemko9d4a3e22006-07-21 19:53:48 +00005
6# Define the source file for the module
7
Mark Sleeb3bd81f2006-10-25 01:36:44 +00008libthrift_sources = src/concurrency/Monitor.cpp \
9 src/concurrency/PosixThreadFactory.cpp \
10 src/concurrency/ThreadManager.cpp \
11 src/concurrency/TimerManager.cpp \
12 src/protocol/TBinaryProtocol.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000013 src/transport/TBufferedFileWriter.cpp \
14 src/transport/TBufferedRouterTransport.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000015 src/transport/TSocket.cpp \
16 src/transport/TServerSocket.cpp \
Mark Slee4af6ed72006-10-25 19:02:49 +000017 src/transport/TTransportUtils.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000018 src/server/TSimpleServer.cpp \
19 src/server/TThreadPoolServer.cpp \
20 src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000021
Marc Slemko16698852006-08-04 03:16:10 +000022libthrift_la_SOURCES = $(libthrift_sources)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000023
Marc Slemko6f038a72006-08-03 18:58:09 +000024libthrift_cxxflags = $(common_cxxflags)
25libthrift_ldflags = $(common_ldflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000026
Marc Slemko6f038a72006-08-03 18:58:09 +000027libthrift_la_CXXFLAGS = $(libthrift_cxxflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000028
Marc Slemko16698852006-08-04 03:16:10 +000029include_thriftdir = $(includedir)/thrift
30include_thrift_HEADERS = \
Marc Slemkoe18890f2006-08-17 01:23:12 +000031 config.h \
Marc Slemko16698852006-08-04 03:16:10 +000032 src/Thrift.h \
Aditya Agarwale528c762006-10-11 02:48:43 +000033 src/TProcessor.h \
34 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000035
Marc Slemkod42a2c22006-08-10 03:30:18 +000036include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000037include_concurrency_HEADERS = \
38 src/concurrency/Exception.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000039 src/concurrency/Monitor.h \
40 src/concurrency/PosixThreadFactory.h \
41 src/concurrency/Thread.h \
42 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000043 src/concurrency/TimerManager.h \
44 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000045
Marc Slemkod42a2c22006-08-10 03:30:18 +000046include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000047include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000048 src/protocol/TBinaryProtocol.h \
Marc Slemko16698852006-08-04 03:16:10 +000049 src/protocol/TProtocol.h
50
Marc Slemkod42a2c22006-08-10 03:30:18 +000051include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000052include_transport_HEADERS = \
Mark Slee4af6ed72006-10-25 19:02:49 +000053 src/transport/TBufferedFileWriter.h \
54 src/transport/TBufferedRouterTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000055 src/transport/TServerSocket.h \
56 src/transport/TServerTransport.h \
57 src/transport/TSocket.h \
58 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000059 src/transport/TTransportException.h \
Mark Slee4af6ed72006-10-25 19:02:49 +000060 src/transport/TTransportUtils.h
Marc Slemko16698852006-08-04 03:16:10 +000061
Marc Slemkod42a2c22006-08-10 03:30:18 +000062include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000063include_server_HEADERS = \
64 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000065 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000066 src/server/TThreadPoolServer.h \
67 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000068
69bin_PROGRAMS = concurrency_test
70
Mark Sleeb3bd81f2006-10-25 01:36:44 +000071concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000072 src/concurrency/test/ThreadFactoryTests.h \
73 src/concurrency/test/ThreadManagerTests.h \
74 src/concurrency/test/TimerManagerTests.h
75
Marc Slemkoc09a65a2006-08-09 01:20:16 +000076concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +000077
Marc Slemko6f038a72006-08-03 18:58:09 +000078concurrency_test_CXXFLAGS = $(common_cxxflags)
79concurrency_test_LDFLAGS = $(common_ldflags)