blob: 20abe52766ab54992bd607696668098ee5d9c7dc [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 Slee0f70d772006-10-28 00:51:14 +00008libthrift_sources = src/concurrency/Mutex.cpp \
9 src/concurrency/Monitor.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000010 src/concurrency/PosixThreadFactory.cpp \
11 src/concurrency/ThreadManager.cpp \
12 src/concurrency/TimerManager.cpp \
13 src/protocol/TBinaryProtocol.cpp \
Aditya Agarwal25b29362006-12-09 00:58:15 +000014 src/transport/TFileTransport.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000015 src/transport/TBufferedRouterTransport.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000016 src/transport/TSocket.cpp \
17 src/transport/TServerSocket.cpp \
Mark Slee4af6ed72006-10-25 19:02:49 +000018 src/transport/TTransportUtils.cpp \
Mark Sleeb3bd81f2006-10-25 01:36:44 +000019 src/server/TSimpleServer.cpp \
Mark Slee0788a702007-01-25 08:14:50 +000020 src/server/TThreadPoolServer.cpp
21
22libthriftnb_sources = src/server/TNonblockingServer.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000023
Marc Slemko16698852006-08-04 03:16:10 +000024libthrift_la_SOURCES = $(libthrift_sources)
Mark Slee0788a702007-01-25 08:14:50 +000025libthriftnb_la_SOURCES = $(libthriftnb_sources)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000026
Marc Slemko6f038a72006-08-03 18:58:09 +000027libthrift_cxxflags = $(common_cxxflags)
28libthrift_ldflags = $(common_ldflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000029
Marc Slemko6f038a72006-08-03 18:58:09 +000030libthrift_la_CXXFLAGS = $(libthrift_cxxflags)
Mark Slee0788a702007-01-25 08:14:50 +000031libthriftnb_la_CXXFLAGS = $(libthrift_cxxflags)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000032
Marc Slemko16698852006-08-04 03:16:10 +000033include_thriftdir = $(includedir)/thrift
34include_thrift_HEADERS = \
Marc Slemkoe18890f2006-08-17 01:23:12 +000035 config.h \
Marc Slemko16698852006-08-04 03:16:10 +000036 src/Thrift.h \
Aditya Agarwale528c762006-10-11 02:48:43 +000037 src/TProcessor.h \
38 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000039
Marc Slemkod42a2c22006-08-10 03:30:18 +000040include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000041include_concurrency_HEADERS = \
42 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +000043 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000044 src/concurrency/Monitor.h \
45 src/concurrency/PosixThreadFactory.h \
46 src/concurrency/Thread.h \
47 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +000048 src/concurrency/TimerManager.h \
49 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +000050
Marc Slemkod42a2c22006-08-10 03:30:18 +000051include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +000052include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +000053 src/protocol/TBinaryProtocol.h \
Marc Slemko16698852006-08-04 03:16:10 +000054 src/protocol/TProtocol.h
55
Marc Slemkod42a2c22006-08-10 03:30:18 +000056include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +000057include_transport_HEADERS = \
Aditya Agarwal25b29362006-12-09 00:58:15 +000058 src/transport/TFileTransport.h \
Mark Slee4af6ed72006-10-25 19:02:49 +000059 src/transport/TBufferedRouterTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000060 src/transport/TServerSocket.h \
61 src/transport/TServerTransport.h \
62 src/transport/TSocket.h \
63 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +000064 src/transport/TTransportException.h \
Mark Slee4af6ed72006-10-25 19:02:49 +000065 src/transport/TTransportUtils.h
Marc Slemko16698852006-08-04 03:16:10 +000066
Marc Slemkod42a2c22006-08-10 03:30:18 +000067include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +000068include_server_HEADERS = \
69 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +000070 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +000071 src/server/TThreadPoolServer.h \
72 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +000073
74bin_PROGRAMS = concurrency_test
75
Mark Sleeb3bd81f2006-10-25 01:36:44 +000076concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +000077 src/concurrency/test/ThreadFactoryTests.h \
78 src/concurrency/test/ThreadManagerTests.h \
79 src/concurrency/test/TimerManagerTests.h
80
Marc Slemkoc09a65a2006-08-09 01:20:16 +000081concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +000082
Marc Slemko6f038a72006-08-03 18:58:09 +000083concurrency_test_CXXFLAGS = $(common_cxxflags)
84concurrency_test_LDFLAGS = $(common_ldflags)