blob: 134325c204f03a371ddf933bfd10913a5fb0cb73 [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 \
13 src/transport/TBufferedTransport.cpp \
14 src/transport/TBufferedFileWriter.cpp \
15 src/transport/TBufferedRouterTransport.cpp \
16 src/transport/TFramedTransport.cpp \
17 src/transport/TMemoryBuffer.cpp \
18 src/transport/TSocket.cpp \
19 src/transport/TServerSocket.cpp \
20 src/server/TSimpleServer.cpp \
21 src/server/TThreadPoolServer.cpp \
22 src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000023
Marc Slemko16698852006-08-04 03:16:10 +000024libthrift_la_SOURCES = $(libthrift_sources)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000025
Marc Slemko6f038a72006-08-03 18:58:09 +000026libthrift_cxxflags = $(common_cxxflags)
27libthrift_ldflags = $(common_ldflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000028
Marc Slemko6f038a72006-08-03 18:58:09 +000029libthrift_la_CXXFLAGS = $(libthrift_cxxflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000030
Marc Slemko16698852006-08-04 03:16:10 +000031include_thriftdir = $(includedir)/thrift
32include_thrift_HEADERS = \
Marc Slemkoe18890f2006-08-17 01:23:12 +000033 config.h \
Marc Slemko16698852006-08-04 03:16:10 +000034 src/Thrift.h \
Aditya Agarwale528c762006-10-11 02:48:43 +000035 src/TProcessor.h \
36 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000037
Marc Slemkod42a2c22006-08-10 03:30:18 +000038include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000039include_concurrency_HEADERS = \
40 src/concurrency/Exception.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000041 src/concurrency/Monitor.h \
42 src/concurrency/PosixThreadFactory.h \
43 src/concurrency/Thread.h \
44 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000045 src/concurrency/TimerManager.h \
46 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000047
Marc Slemkod42a2c22006-08-10 03:30:18 +000048include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000049include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000050 src/protocol/TBinaryProtocol.h \
Marc Slemko16698852006-08-04 03:16:10 +000051 src/protocol/TProtocol.h
52
Marc Slemkod42a2c22006-08-10 03:30:18 +000053include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000054include_transport_HEADERS = \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000055 src/transport/TBufferedTransport.h \
Mark Slee9e7734d2006-09-08 03:51:34 +000056 src/transport/TFramedTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000057 src/transport/TNullTransport.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000058 src/transport/TMemoryBuffer.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000059 src/transport/TServerSocket.h \
60 src/transport/TServerTransport.h \
61 src/transport/TSocket.h \
62 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000063 src/transport/TTransportException.h \
64 src/transport/TTransportFactory.h \
Aditya Agarwale528c762006-10-11 02:48:43 +000065 src/transport/TBufferedTransportFactory.h \
66 src/transport/TBufferedFileWriter.h \
67 src/transport/TBufferedRouterTransport.h
Marc Slemko16698852006-08-04 03:16:10 +000068
Marc Slemkod42a2c22006-08-10 03:30:18 +000069include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000070include_server_HEADERS = \
71 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000072 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000073 src/server/TThreadPoolServer.h \
74 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000075
76bin_PROGRAMS = concurrency_test
77
Mark Sleeb3bd81f2006-10-25 01:36:44 +000078concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000079 src/concurrency/test/ThreadFactoryTests.h \
80 src/concurrency/test/ThreadManagerTests.h \
81 src/concurrency/test/TimerManagerTests.h
82
Marc Slemkoc09a65a2006-08-09 01:20:16 +000083concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +000084
Marc Slemko6f038a72006-08-03 18:58:09 +000085concurrency_test_CXXFLAGS = $(common_cxxflags)
86concurrency_test_LDFLAGS = $(common_ldflags)