r1519@opsdev009 (orig r80499): mcslee | 2008-01-30 17:49:16 -0800
[amiethrift.git] / lib / cpp / Makefile.am
blob92ccf99410ab3a0355373896b3c4aeda26610969
1 ACLOCAL_AMFLAGS = -I ./aclocal
3 pkgconfigdir = $(libdir)/pkgconfig
5 lib_LTLIBRARIES = libthrift.la
6 pkgconfig_DATA = thrift.pc
8 ## We only build the extra libraries if we have the dependencies,
9 ## but we install all of the headers unconditionally.
10 if AMX_HAVE_LIBEVENT
11 lib_LTLIBRARIES += libthriftnb.la
12 pkgconfig_DATA += thrift-nb.pc
13 endif
14 if AMX_HAVE_ZLIB
15 lib_LTLIBRARIES += libthriftz.la
16 pkgconfig_DATA += thrift-z.pc
17 endif
19 common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
20 common_ldflags = -Wall $(BOOST_LDFLAGS)
22 # Define the source files for the module
24 libthrift_la_SOURCES = src/Thrift.cpp \
25                        src/reflection_limited_types.cpp \
26                        src/concurrency/Mutex.cpp \
27                        src/concurrency/Monitor.cpp \
28                        src/concurrency/PosixThreadFactory.cpp \
29                        src/concurrency/ThreadManager.cpp \
30                        src/concurrency/TimerManager.cpp \
31                        src/protocol/TBinaryProtocol.cpp \
32                        src/protocol/TDebugProtocol.cpp \
33                        src/protocol/TDenseProtocol.cpp \
34                        src/transport/TTransportException.cpp \
35                        src/transport/TFileTransport.cpp \
36                        src/transport/THttpClient.cpp \
37                        src/transport/TSocket.cpp \
38                        src/transport/TSocketPool.cpp \
39                        src/transport/TServerSocket.cpp \
40                        src/transport/TTransportUtils.cpp \
41                        src/server/TSimpleServer.cpp \
42                        src/server/TThreadPoolServer.cpp \
43                        src/server/TThreadedServer.cpp \
44                        src/processor/PeekProcessor.cpp
46 libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp
48 libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
51 # Flags for the various libraries
53 libthrift_la_CXXFLAGS =  $(common_cxxflags)
55 libthriftnb_la_CXXFLAGS =  $(common_cxxflags)
56 libthriftnb_la_CPPFLAGS =  $(LIBEVENT_CPPFLAGS)
58 libthriftz_la_CXXFLAGS =  $(common_cxxflags)
59 libthriftz_la_CPPFLAGS =  $(ZLIB_CPPFLAGS)
62 include_thriftdir = $(includedir)/thrift
63 include_thrift_HEADERS = \
64                          $(top_srcdir)/config.h \
65                          src/Thrift.h \
66                                                                                                  src/TReflectionLocal.h \
67                          src/reflection_limited_types.h \
68                          src/TProcessor.h \
69                          src/TLogging.h
71 include_concurrencydir = $(include_thriftdir)/concurrency
72 include_concurrency_HEADERS = \
73                          src/concurrency/Exception.h \
74                          src/concurrency/Mutex.h \
75                          src/concurrency/Monitor.h \
76                          src/concurrency/PosixThreadFactory.h \
77                          src/concurrency/Thread.h \
78                          src/concurrency/ThreadManager.h \
79                          src/concurrency/TimerManager.h \
80                          src/concurrency/Util.h
82 include_protocoldir = $(include_thriftdir)/protocol
83 include_protocol_HEADERS = \
84                          src/protocol/TBinaryProtocol.h \
85                          src/protocol/TDenseProtocol.h \
86                          src/protocol/TDebugProtocol.h \
87                          src/protocol/TOneWayProtocol.h \
88                          src/protocol/TProtocolException.h \
89                          src/protocol/TProtocol.h
91 include_transportdir = $(include_thriftdir)/transport
92 include_transport_HEADERS = \
93                          src/transport/TFileTransport.h \
94                          src/transport/TServerSocket.h \
95                          src/transport/TServerTransport.h \
96                          src/transport/THttpClient.h \
97                          src/transport/TSocket.h \
98                          src/transport/TSocketPool.h \
99                          src/transport/TTransport.h \
100                          src/transport/TTransportException.h \
101                          src/transport/TTransportUtils.h \
102                          src/transport/TZlibTransport.h
104 include_serverdir = $(include_thriftdir)/server
105 include_server_HEADERS = \
106                          src/server/TServer.h \
107                          src/server/TSimpleServer.h \
108                          src/server/TThreadPoolServer.h \
109                          src/server/TThreadedServer.h \
110                          src/server/TNonblockingServer.h
112 include_processordir = $(include_thriftdir)/processor
113 include_processor_HEADERS = \
114                          src/processor/PeekProcessor.h \
115                          src/processor/StatsProcessor.h
117 noinst_PROGRAMS = concurrency_test
119 concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
120                            src/concurrency/test/ThreadFactoryTests.h \
121                            src/concurrency/test/ThreadManagerTests.h \
122                            src/concurrency/test/TimerManagerTests.h
124 concurrency_test_LDADD = libthrift.la
126 concurrency_test_CXXFLAGS =  $(common_cxxflags)
127 concurrency_test_LDFLAGS =  $(common_ldflags)
129 EXTRA_DIST = \
130         README \
131         thrift-nb.pc.in \
132         thrift.pc.in \
133         thrift-z.pc.in