Merge commit '64f2f2734ad853784bdd260bcf31e065c47c0741' into fix-configure-pthread...
[folly.git] / folly / Makefile.am
1 SUBDIRS = . test
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 CLEANFILES =
6
7 noinst_PROGRAMS = generate_fingerprint_tables
8 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
9 generate_fingerprint_tables_LDADD = libfollybase.la
10
11 noinst_LTLIBRARIES = \
12         libfollybase.la
13
14 lib_LTLIBRARIES = \
15         libfolly.la \
16         libfollybenchmark.la
17
18 follyincludedir = $(includedir)/folly
19
20 nobase_follyinclude_HEADERS = \
21         ApplyTuple.h \
22         Arena.h \
23         Arena-inl.h \
24         AtomicBitSet.h \
25         AtomicHashArray.h \
26         AtomicHashArray-inl.h \
27         AtomicHashMap.h \
28         AtomicHashMap-inl.h \
29         AtomicStruct.h \
30         Baton.h \
31         Benchmark.h \
32         Bits.h \
33         Checksum.h \
34         Chrono.h \
35         ConcurrentSkipList.h \
36         ConcurrentSkipList-inl.h \
37         Conv.h \
38         CpuId.h \
39         CPortability.h \
40         detail/AtomicHashUtils.h \
41         detail/BitIteratorDetail.h \
42         detail/BitsDetail.h \
43         detail/CacheLocality.h \
44         detail/ChecksumDetail.h \
45         detail/Clock.h \
46         detail/DiscriminatedPtrDetail.h \
47         detail/ExceptionWrapper.h \
48         detail/FileUtilDetail.h \
49         detail/FingerprintPolynomial.h \
50         detail/FunctionalExcept.h \
51         detail/Futex.h \
52         detail/GroupVarintDetail.h \
53         detail/IPAddress.h \
54         detail/Malloc.h \
55         detail/MemoryIdler.h \
56         detail/MPMCPipelineDetail.h \
57         detail/SlowFingerprint.h \
58         detail/SpinLockImpl.h \
59         detail/Stats.h \
60         detail/ThreadLocalDetail.h \
61         detail/UncaughtExceptionCounter.h \
62         Demangle.h \
63         DiscriminatedPtr.h \
64         DynamicConverter.h \
65         dynamic.h \
66         dynamic-inl.h \
67         Exception.h \
68         ExceptionWrapper.h \
69         Executor.h \
70         EvictingCacheMap.h \
71         experimental/Bits.h \
72         experimental/EliasFanoCoding.h \
73         experimental/EventCount.h \
74         experimental/io/FsUtil.h \
75         experimental/Singleton.h \
76         experimental/TestUtil.h \
77         FBString.h \
78         FBVector.h \
79         File.h \
80         FileUtil.h \
81         Fingerprint.h \
82         folly-config.h \
83         Foreach.h \
84         FormatArg.h \
85         Format.h \
86         Format-inl.h \
87         futures/Deprecated.h \
88         futures/DrivableExecutor.h \
89         futures/Future-inl.h \
90         futures/Future.h \
91         futures/FutureException.h \
92         futures/InlineExecutor.h \
93         futures/ManualExecutor.h \
94         futures/OpaqueCallbackShunt.h \
95         futures/Promise-inl.h \
96         futures/Promise.h \
97         futures/QueuedImmediateExecutor.h \
98         futures/ScheduledExecutor.h \
99         futures/Timekeeper.h \
100         futures/Try-inl.h \
101         futures/Try.h \
102         futures/detail/Core.h \
103         futures/detail/FSM.h \
104         futures/detail/ThreadWheelTimekeeper.h \
105         futures/detail/Types.h \
106         gen/Base.h \
107         gen/Base-inl.h \
108         gen/Combine.h \
109         gen/Combine-inl.h \
110         gen/Core.h \
111         gen/Core-inl.h \
112         gen/File.h \
113         gen/File-inl.h \
114         gen/Parallel.h \
115         gen/Parallel-inl.h \
116         gen/ParallelMap.h \
117         gen/ParallelMap-inl.h \
118         gen/String.h \
119         gen/String-inl.h \
120         GroupVarint.h \
121         Hash.h \
122         IPAddress.h \
123         IPAddressV4.h \
124         IPAddressV6.h \
125         IPAddressException.h \
126         IndexedMemPool.h \
127         IntrusiveList.h \
128         io/Compression.h \
129         io/Cursor.h \
130         io/IOBuf.h \
131         io/IOBufQueue.h \
132         io/RecordIO.h \
133         io/RecordIO-inl.h \
134         io/TypedIOBuf.h \
135         io/ShutdownSocketSet.h \
136         io/async/AsyncTimeout.h \
137         io/async/AsyncTransport.h \
138         io/async/AsyncUDPServerSocket.h \
139         io/async/AsyncUDPSocket.h \
140         io/async/AsyncServerSocket.h \
141         io/async/AsyncSocket.h \
142         io/async/AsyncSSLSocket.h \
143         io/async/AsyncSocketException.h \
144         io/async/DelayedDestruction.h \
145         io/async/EventBase.h \
146         io/async/EventBaseManager.h \
147         io/async/EventFDWrapper.h \
148         io/async/EventHandler.h \
149         io/async/EventUtil.h \
150         io/async/NotificationQueue.h \
151         io/async/HHWheelTimer.h \
152         io/async/Request.h \
153         io/async/SSLContext.h \
154         io/async/TimeoutManager.h \
155         io/async/test/TimeUtil.h \
156         io/async/test/UndelayedDestruction.h \
157         io/async/test/Util.h \
158         json.h \
159         Lazy.h \
160         LifoSem.h \
161         Likely.h \
162         Logging.h \
163         MacAddress.h \
164         Malloc.h \
165         MapUtil.h \
166         Memory.h \
167         MemoryMapping.h \
168         MoveWrapper.h \
169         MPMCPipeline.h \
170         MPMCQueue.h \
171         Optional.h \
172         PackedSyncPtr.h \
173         Padded.h \
174         Portability.h \
175         Preprocessor.h \
176         ProducerConsumerQueue.h \
177         Random.h \
178         Random-inl.h \
179         Range.h \
180         RWSpinLock.h \
181         ScopeGuard.h \
182         SmallLocks.h \
183         small_vector.h \
184         SocketAddress.h \
185         sorted_vector_types.h \
186         SpinLock.h \
187         SpookyHashV1.h \
188         SpookyHashV2.h \
189         stats/BucketedTimeSeries-defs.h \
190         stats/BucketedTimeSeries.h \
191         stats/Histogram-defs.h \
192         stats/Histogram.h \
193         stats/MultiLevelTimeSeries-defs.h \
194         stats/MultiLevelTimeSeries.h \
195         String.h \
196         String-inl.h \
197         Subprocess.h \
198         Synchronized.h \
199         test/FBStringTestBenchmarks.cpp.h \
200         test/FBVectorTestBenchmarks.cpp.h \
201         test/function_benchmark/benchmark_impl.h \
202         test/function_benchmark/test_functions.h \
203         test/SynchronizedTestLib.h \
204         test/SynchronizedTestLib-inl.h \
205         ThreadCachedArena.h \
206         ThreadCachedInt.h \
207         ThreadLocal.h \
208         ThreadName.h \
209         TimeoutQueue.h \
210         Traits.h \
211         Unicode.h \
212         Uri.h \
213         Uri-inl.h \
214         Varint.h \
215         VersionCheck.h \
216         wangle/acceptor/Acceptor.h \
217         wangle/acceptor/ConnectionCounter.h \
218         wangle/acceptor/ConnectionManager.h \
219         wangle/acceptor/DomainNameMisc.h \
220         wangle/acceptor/LoadShedConfiguration.h \
221         wangle/acceptor/ManagedConnection.h \
222         wangle/acceptor/NetworkAddress.h \
223         wangle/acceptor/ServerSocketConfig.h \
224         wangle/acceptor/SocketOptions.h \
225         wangle/acceptor/TransportInfo.h \
226         wangle/channel/AsyncSocketHandler.h \
227         wangle/channel/ChannelHandler.h \
228         wangle/channel/ChannelHandlerContext.h \
229         wangle/channel/ChannelPipeline.h \
230         wangle/channel/OutputBufferingHandler.h \
231         wangle/concurrent/BlockingQueue.h \
232         wangle/concurrent/Codel.h \
233         wangle/concurrent/CPUThreadPoolExecutor.h \
234         wangle/concurrent/FutureExecutor.h \
235         wangle/concurrent/IOExecutor.h \
236         wangle/concurrent/IOThreadPoolExecutor.h \
237         wangle/concurrent/GlobalExecutor.h \
238         wangle/concurrent/LifoSemMPMCQueue.h \
239         wangle/concurrent/NamedThreadFactory.h \
240         wangle/concurrent/ThreadFactory.h \
241         wangle/concurrent/ThreadPoolExecutor.h \
242         wangle/rx/Observable.h \
243         wangle/rx/Observer.h \
244         wangle/rx/Subject.h \
245         wangle/rx/Subscription.h \
246         wangle/rx/types.h \
247         wangle/ssl/ClientHelloExtStats.h \
248         wangle/ssl/DHParam.h \
249         wangle/ssl/PasswordInFile.h \
250         wangle/ssl/SSLCacheOptions.h \
251         wangle/ssl/SSLCacheProvider.h \
252         wangle/ssl/SSLContextConfig.h \
253         wangle/ssl/SSLContextManager.h \
254         wangle/ssl/SSLSessionCacheManager.h \
255         wangle/ssl/SSLStats.h \
256         wangle/ssl/SSLUtil.h \
257         wangle/ssl/TLSTicketKeyManager.h \
258         wangle/ssl/TLSTicketKeySeeds.h
259
260 FormatTables.cpp: build/generate_format_tables.py
261         build/generate_format_tables.py
262 CLEANFILES += FormatTables.cpp
263
264 EscapeTables.cpp: build/generate_escape_tables.py
265         build/generate_escape_tables.py
266 CLEANFILES += EscapeTables.cpp
267
268 GroupVarintTables.cpp: build/generate_varint_tables.py
269         build/generate_varint_tables.py
270 CLEANFILES += GroupVarintTables.cpp
271
272 libfollybase_la_SOURCES = \
273         Conv.cpp \
274         Demangle.cpp \
275         EscapeTables.cpp \
276         Format.cpp \
277         FormatTables.cpp \
278         Malloc.cpp \
279         Range.cpp \
280         String.cpp \
281         Unicode.cpp
282
283 libfolly_la_SOURCES = \
284         Bits.cpp \
285         detail/CacheLocality.cpp \
286         dynamic.cpp \
287         File.cpp \
288         FileUtil.cpp \
289         FingerprintTables.cpp \
290         futures/detail/ThreadWheelTimekeeper.cpp \
291         futures/Future.cpp \
292         futures/InlineExecutor.cpp \
293         futures/ManualExecutor.cpp \
294         futures/QueuedImmediateExecutor.cpp \
295         detail/Futex.cpp \
296         GroupVarint.cpp \
297         GroupVarintTables.cpp \
298         IPAddress.cpp \
299         IPAddressV4.cpp \
300         IPAddressV6.cpp \
301         LifoSem.cpp \
302         io/Compression.cpp \
303         io/IOBuf.cpp \
304         io/IOBufQueue.cpp \
305         io/RecordIO.cpp \
306         io/ShutdownSocketSet.cpp \
307         io/async/AsyncTimeout.cpp \
308         io/async/AsyncUDPSocket.cpp \
309         io/async/AsyncServerSocket.cpp \
310         io/async/AsyncSocket.cpp \
311         io/async/AsyncSSLSocket.cpp \
312         io/async/EventBase.cpp \
313         io/async/EventBaseManager.cpp \
314         io/async/EventHandler.cpp \
315         io/async/Request.cpp \
316         io/async/SSLContext.cpp \
317         io/async/HHWheelTimer.cpp \
318         io/async/test/TimeUtil.cpp \
319         json.cpp \
320         detail/MemoryIdler.cpp \
321         MacAddress.cpp \
322         MemoryMapping.cpp \
323         Random.cpp \
324         SafeAssert.cpp \
325         SocketAddress.cpp \
326         SpookyHashV1.cpp \
327         SpookyHashV2.cpp \
328         stats/Instantiations.cpp \
329         Subprocess.cpp \
330         ThreadCachedArena.cpp \
331         TimeoutQueue.cpp \
332         Uri.cpp \
333         Version.cpp \
334         experimental/io/FsUtil.cpp \
335         experimental/Singleton.cpp \
336         experimental/TestUtil.cpp \
337         wangle/acceptor/Acceptor.cpp \
338         wangle/acceptor/ConnectionManager.cpp \
339         wangle/acceptor/LoadShedConfiguration.cpp \
340         wangle/acceptor/ManagedConnection.cpp \
341         wangle/acceptor/SocketOptions.cpp \
342         wangle/acceptor/TransportInfo.cpp \
343         wangle/concurrent/CPUThreadPoolExecutor.cpp \
344         wangle/concurrent/Codel.cpp \
345         wangle/concurrent/IOThreadPoolExecutor.cpp \
346         wangle/concurrent/GlobalExecutor.cpp \
347         wangle/concurrent/ThreadPoolExecutor.cpp \
348         wangle/ssl/PasswordInFile.cpp \
349         wangle/ssl/SSLContextManager.cpp \
350         wangle/ssl/SSLSessionCacheManager.cpp \
351         wangle/ssl/SSLUtil.cpp \
352         wangle/ssl/TLSTicketKeyManager.cpp
353
354 if HAVE_LINUX
355 nobase_follyinclude_HEADERS += \
356         experimental/io/HugePages.h
357 libfolly_la_SOURCES += \
358         experimental/io/HugePages.cpp
359 endif
360
361 if !HAVE_LINUX
362 nobase_follyinclude_HEADERS += detail/Clock.h
363 libfollybase_la_SOURCES += detail/Clock.cpp
364 endif
365
366 if !HAVE_WEAK_SYMBOLS
367 libfollybase_la_SOURCES += detail/MallocImpl.cpp
368 endif
369
370 if !HAVE_BITS_FUNCTEXCEPT
371 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
372 endif
373
374 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
375
376 libfolly_la_LIBADD = libfollybase.la
377 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
378
379 FingerprintTables.cpp: generate_fingerprint_tables
380         ./generate_fingerprint_tables
381 CLEANFILES += FingerprintTables.cpp
382
383 libfollybenchmark_la_SOURCES = Benchmark.cpp
384 libfollybenchmark_la_LIBADD = libfolly.la
385 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)