Added fiber supported mutex to folly
[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         AtomicLinkedList.h \
30         AtomicStruct.h \
31         Baton.h \
32         Benchmark.h \
33         Bits.h \
34         Checksum.h \
35         Chrono.h \
36         ConcurrentSkipList.h \
37         ConcurrentSkipList-inl.h \
38         Conv.h \
39         CpuId.h \
40         CPortability.h \
41         detail/AtomicHashUtils.h \
42         detail/BitIteratorDetail.h \
43         detail/BitsDetail.h \
44         detail/CacheLocality.h \
45         detail/ChecksumDetail.h \
46         detail/Clock.h \
47         detail/DiscriminatedPtrDetail.h \
48         detail/ExceptionWrapper.h \
49         detail/FileUtilDetail.h \
50         detail/FingerprintPolynomial.h \
51         detail/FunctionalExcept.h \
52         detail/Futex.h \
53         detail/GroupVarintDetail.h \
54         detail/IPAddress.h \
55         detail/Malloc.h \
56         detail/MemoryIdler.h \
57         detail/MPMCPipelineDetail.h \
58         detail/SlowFingerprint.h \
59         detail/SpinLockImpl.h \
60         detail/Stats.h \
61         detail/ThreadLocalDetail.h \
62         detail/TurnSequencer.h \
63         detail/UncaughtExceptionCounter.h \
64         Demangle.h \
65         DiscriminatedPtr.h \
66         DynamicConverter.h \
67         dynamic.h \
68         dynamic-inl.h \
69         Exception.h \
70         ExceptionWrapper.h \
71         Executor.h \
72         EvictingCacheMap.h \
73         experimental/AutoTimer.h \
74         experimental/Bits.h \
75         experimental/ExecutionObserver.h \
76         experimental/EliasFanoCoding.h \
77         experimental/EventCount.h \
78         experimental/fibers/AddTasks.h \
79         experimental/fibers/AddTasks-inl.h \
80         experimental/fibers/Baton.h \
81         experimental/fibers/Baton-inl.h \
82         experimental/fibers/BoostContextCompatibility.h \
83         experimental/fibers/EventBaseLoopController.h \
84         experimental/fibers/EventBaseLoopController-inl.h \
85         experimental/fibers/Fiber.h \
86         experimental/fibers/Fiber-inl.h \
87         experimental/fibers/FiberManager.h \
88         experimental/fibers/FiberManager-inl.h \
89         experimental/fibers/FiberManagerMap.h \
90         experimental/fibers/ForEach.h \
91         experimental/fibers/ForEach-inl.h \
92         experimental/fibers/GenericBaton.h \
93         experimental/fibers/GuardPageAllocator.h \
94         experimental/fibers/LoopController.h \
95         experimental/fibers/Promise.h \
96         experimental/fibers/Promise-inl.h \
97         experimental/fibers/SimpleLoopController.h \
98         experimental/fibers/TimedMutex.h \
99         experimental/fibers/TimedMutex-inl.h \
100         experimental/fibers/TimeoutController.h \
101         experimental/fibers/TimeoutController.h \
102         experimental/fibers/traits.h \
103         experimental/fibers/WhenN.h \
104         experimental/fibers/WhenN-inl.h \
105         experimental/FunctionScheduler.h \
106         experimental/FutureDAG.h \
107         experimental/io/FsUtil.h \
108         experimental/JSONSchema.h \
109         experimental/LockFreeRingBuffer.h \
110         experimental/Select64.h \
111         experimental/SharedMutex.h \
112         experimental/StringKeyedCommon.h \
113         experimental/StringKeyedUnorderedMap.h \
114         experimental/StringKeyedUnorderedSet.h \
115         experimental/TestUtil.h \
116         experimental/TupleOps.h \
117         FBString.h \
118         FBVector.h \
119         File.h \
120         FileUtil.h \
121         Fingerprint.h \
122         folly-config.h \
123         Foreach.h \
124         FormatArg.h \
125         Format.h \
126         Format-inl.h \
127         futures/Deprecated.h \
128         futures/DrivableExecutor.h \
129         futures/Future-pre.h \
130         futures/helpers.h \
131         futures/Future.h \
132         futures/Future-inl.h \
133         futures/FutureException.h \
134         futures/InlineExecutor.h \
135         futures/ManualExecutor.h \
136         futures/OpaqueCallbackShunt.h \
137         futures/Promise-inl.h \
138         futures/Promise.h \
139         futures/QueuedImmediateExecutor.h \
140         futures/ScheduledExecutor.h \
141         futures/SharedPromise.h \
142         futures/SharedPromise-inl.h \
143         futures/Timekeeper.h \
144         futures/Try-inl.h \
145         futures/Try.h \
146         futures/Unit.h \
147         futures/detail/Core.h \
148         futures/detail/FSM.h \
149         futures/detail/ThreadWheelTimekeeper.h \
150         futures/detail/Types.h \
151         gen/Base.h \
152         gen/Base-inl.h \
153         gen/Combine.h \
154         gen/Combine-inl.h \
155         gen/Core.h \
156         gen/Core-inl.h \
157         gen/File.h \
158         gen/File-inl.h \
159         gen/Parallel.h \
160         gen/Parallel-inl.h \
161         gen/ParallelMap.h \
162         gen/ParallelMap-inl.h \
163         gen/String.h \
164         gen/String-inl.h \
165         GroupVarint.h \
166         Hash.h \
167         IPAddress.h \
168         IPAddressV4.h \
169         IPAddressV6.h \
170         IPAddressException.h \
171         IndexedMemPool.h \
172         IntrusiveList.h \
173         io/Compression.h \
174         io/Cursor.h \
175         io/IOBuf.h \
176         io/IOBufQueue.h \
177         io/RecordIO.h \
178         io/RecordIO-inl.h \
179         io/TypedIOBuf.h \
180         io/ShutdownSocketSet.h \
181         io/async/AsyncTimeout.h \
182         io/async/AsyncTransport.h \
183         io/async/AsyncUDPServerSocket.h \
184         io/async/AsyncUDPSocket.h \
185         io/async/AsyncServerSocket.h \
186         io/async/AsyncSignalHandler.h \
187         io/async/AsyncSocket.h \
188         io/async/AsyncSocketBase.h \
189         io/async/AsyncSSLSocket.h \
190         io/async/AsyncSocketException.h \
191         io/async/DelayedDestruction.h \
192         io/async/EventBase.h \
193         io/async/EventBaseManager.h \
194         io/async/EventFDWrapper.h \
195         io/async/EventHandler.h \
196         io/async/EventUtil.h \
197         io/async/NotificationQueue.h \
198         io/async/HHWheelTimer.h \
199         io/async/Request.h \
200         io/async/SSLContext.h \
201         io/async/TimeoutManager.h \
202         io/async/test/AsyncSSLSocketTest.h \
203         io/async/test/BlockingSocket.h \
204         io/async/test/MockAsyncSocket.h \
205         io/async/test/MockAsyncServerSocket.h \
206         io/async/test/MockAsyncSSLSocket.h \
207         io/async/test/MockAsyncTransport.h \
208         io/async/test/TimeUtil.h \
209         io/async/test/UndelayedDestruction.h \
210         io/async/test/Util.h \
211         json.h \
212         Lazy.h \
213         LifoSem.h \
214         Likely.h \
215         Logging.h \
216         MacAddress.h \
217         Malloc.h \
218         MapUtil.h \
219         Memory.h \
220         MemoryMapping.h \
221         MoveWrapper.h \
222         MPMCPipeline.h \
223         MPMCQueue.h \
224         Optional.h \
225         PackedSyncPtr.h \
226         Padded.h \
227         Portability.h \
228         Preprocessor.h \
229         ProducerConsumerQueue.h \
230         Random.h \
231         Random-inl.h \
232         Range.h \
233         RWSpinLock.h \
234         ScopeGuard.h \
235         Singleton.h \
236         Singleton-inl.h \
237         SmallLocks.h \
238         small_vector.h \
239         SocketAddress.h \
240         sorted_vector_types.h \
241         SpinLock.h \
242         SpookyHashV1.h \
243         SpookyHashV2.h \
244         stats/BucketedTimeSeries-defs.h \
245         stats/BucketedTimeSeries.h \
246         stats/Histogram-defs.h \
247         stats/Histogram.h \
248         stats/MultiLevelTimeSeries-defs.h \
249         stats/MultiLevelTimeSeries.h \
250         String.h \
251         String-inl.h \
252         Subprocess.h \
253         Synchronized.h \
254         test/FBStringTestBenchmarks.cpp.h \
255         test/FBVectorTestBenchmarks.cpp.h \
256         test/function_benchmark/benchmark_impl.h \
257         test/function_benchmark/test_functions.h \
258         test/SynchronizedTestLib.h \
259         test/SynchronizedTestLib-inl.h \
260         ThreadCachedArena.h \
261         ThreadCachedInt.h \
262         ThreadLocal.h \
263         ThreadName.h \
264         TimeoutQueue.h \
265         Traits.h \
266         Unicode.h \
267         Uri.h \
268         Uri-inl.h \
269         Varint.h \
270         VersionCheck.h \
271         wangle/acceptor/Acceptor.h \
272         wangle/acceptor/ConnectionCounter.h \
273         wangle/acceptor/ConnectionManager.h \
274         wangle/acceptor/DomainNameMisc.h \
275         wangle/acceptor/LoadShedConfiguration.h \
276         wangle/acceptor/ManagedConnection.h \
277         wangle/acceptor/NetworkAddress.h \
278         wangle/acceptor/ServerSocketConfig.h \
279         wangle/acceptor/SocketOptions.h \
280         wangle/acceptor/TransportInfo.h \
281         wangle/bootstrap/ServerBootstrap.h \
282         wangle/bootstrap/ServerBootstrap-inl.h \
283         wangle/bootstrap/ServerSocketFactory.h \
284         wangle/bootstrap/ClientBootstrap.h \
285         wangle/channel/AsyncSocketHandler.h \
286         wangle/channel/EventBaseHandler.h \
287         wangle/channel/FileRegion.h \
288         wangle/channel/Handler.h \
289         wangle/channel/HandlerContext.h \
290         wangle/channel/HandlerContext-inl.h \
291         wangle/channel/OutputBufferingHandler.h \
292         wangle/channel/Pipeline.h \
293         wangle/channel/Pipeline-inl.h \
294         wangle/channel/StaticPipeline.h \
295         wangle/concurrent/BlockingQueue.h \
296         wangle/concurrent/Codel.h \
297         wangle/concurrent/CPUThreadPoolExecutor.h \
298         wangle/concurrent/FiberIOExecutor.h \
299         wangle/concurrent/FutureExecutor.h \
300         wangle/concurrent/IOExecutor.h \
301         wangle/concurrent/IOObjectCache.h \
302         wangle/concurrent/IOThreadPoolExecutor.h \
303         wangle/concurrent/GlobalExecutor.h \
304         wangle/concurrent/LifoSemMPMCQueue.h \
305         wangle/concurrent/NamedThreadFactory.h \
306         wangle/concurrent/ThreadFactory.h \
307         wangle/concurrent/ThreadPoolExecutor.h \
308         wangle/rx/Observable.h \
309         wangle/rx/Observer.h \
310         wangle/rx/Subject.h \
311         wangle/rx/Subscription.h \
312         wangle/rx/types.h \
313         wangle/ssl/ClientHelloExtStats.h \
314         wangle/ssl/DHParam.h \
315         wangle/ssl/PasswordInFile.h \
316         wangle/ssl/SSLCacheOptions.h \
317         wangle/ssl/SSLCacheProvider.h \
318         wangle/ssl/SSLContextConfig.h \
319         wangle/ssl/SSLContextManager.h \
320         wangle/ssl/SSLSessionCacheManager.h \
321         wangle/ssl/SSLStats.h \
322         wangle/ssl/SSLUtil.h \
323         wangle/ssl/TLSTicketKeyManager.h \
324         wangle/ssl/TLSTicketKeySeeds.h
325
326 FormatTables.cpp: build/generate_format_tables.py
327         $(PYTHON) build/generate_format_tables.py
328 CLEANFILES += FormatTables.cpp
329
330 EscapeTables.cpp: build/generate_escape_tables.py
331         $(PYTHON) build/generate_escape_tables.py
332 CLEANFILES += EscapeTables.cpp
333
334 GroupVarintTables.cpp: build/generate_varint_tables.py
335         $(PYTHON) build/generate_varint_tables.py
336 CLEANFILES += GroupVarintTables.cpp
337
338 libfollybase_la_SOURCES = \
339         Conv.cpp \
340         Demangle.cpp \
341         EscapeTables.cpp \
342         Format.cpp \
343         FormatTables.cpp \
344         Malloc.cpp \
345         Range.cpp \
346         StringBase.cpp \
347         String.cpp \
348         Unicode.cpp
349
350 libfolly_la_SOURCES = \
351         Bits.cpp \
352         detail/CacheLocality.cpp \
353         dynamic.cpp \
354         File.cpp \
355         FileUtil.cpp \
356         FingerprintTables.cpp \
357         futures/detail/ThreadWheelTimekeeper.cpp \
358         futures/Future.cpp \
359         futures/InlineExecutor.cpp \
360         futures/ManualExecutor.cpp \
361         futures/QueuedImmediateExecutor.cpp \
362         detail/Futex.cpp \
363         GroupVarint.cpp \
364         GroupVarintTables.cpp \
365         IPAddress.cpp \
366         IPAddressV4.cpp \
367         IPAddressV6.cpp \
368         LifoSem.cpp \
369         io/Compression.cpp \
370         io/IOBuf.cpp \
371         io/IOBufQueue.cpp \
372         io/RecordIO.cpp \
373         io/ShutdownSocketSet.cpp \
374         io/async/AsyncTimeout.cpp \
375         io/async/AsyncUDPSocket.cpp \
376         io/async/AsyncServerSocket.cpp \
377         io/async/AsyncSignalHandler.cpp \
378         io/async/AsyncSocket.cpp \
379         io/async/AsyncSSLSocket.cpp \
380         io/async/EventBase.cpp \
381         io/async/EventBaseManager.cpp \
382         io/async/EventHandler.cpp \
383         io/async/SSLContext.cpp \
384         io/async/HHWheelTimer.cpp \
385         io/async/test/TimeUtil.cpp \
386         json.cpp \
387         detail/MemoryIdler.cpp \
388         MacAddress.cpp \
389         MemoryMapping.cpp \
390         Random.cpp \
391         SafeAssert.cpp \
392         SocketAddress.cpp \
393         Singleton.cpp \
394         SpookyHashV1.cpp \
395         SpookyHashV2.cpp \
396         stats/Instantiations.cpp \
397         Subprocess.cpp \
398         ThreadCachedArena.cpp \
399         TimeoutQueue.cpp \
400         Uri.cpp \
401         Version.cpp \
402         experimental/fibers/Baton.cpp \
403         experimental/fibers/Fiber.cpp \
404         experimental/fibers/FiberManager.cpp \
405         experimental/fibers/FiberManagerMap.cpp \
406         experimental/fibers/GuardPageAllocator.cpp \
407         experimental/fibers/TimeoutController.cpp \
408         experimental/FunctionScheduler.cpp \
409         experimental/io/FsUtil.cpp \
410         experimental/JSONSchema.cpp \
411         experimental/Select64.cpp \
412         experimental/SharedMutex.cpp \
413         experimental/TestUtil.cpp \
414         wangle/acceptor/Acceptor.cpp \
415         wangle/acceptor/ConnectionManager.cpp \
416         wangle/acceptor/LoadShedConfiguration.cpp \
417         wangle/acceptor/ManagedConnection.cpp \
418         wangle/acceptor/SocketOptions.cpp \
419         wangle/acceptor/TransportInfo.cpp \
420         wangle/bootstrap/ServerBootstrap.cpp \
421         wangle/concurrent/CPUThreadPoolExecutor.cpp \
422         wangle/concurrent/Codel.cpp \
423         wangle/concurrent/IOThreadPoolExecutor.cpp \
424         wangle/concurrent/GlobalExecutor.cpp \
425         wangle/concurrent/ThreadPoolExecutor.cpp \
426         wangle/ssl/PasswordInFile.cpp \
427         wangle/ssl/SSLContextManager.cpp \
428         wangle/ssl/SSLSessionCacheManager.cpp \
429         wangle/ssl/SSLUtil.cpp \
430         wangle/ssl/TLSTicketKeyManager.cpp
431
432 if HAVE_LINUX
433 nobase_follyinclude_HEADERS += \
434         experimental/io/HugePages.h
435 libfolly_la_SOURCES += \
436         experimental/io/HugePages.cpp
437 endif
438
439 if !HAVE_LINUX
440 libfollybase_la_SOURCES += detail/Clock.cpp
441 endif
442
443 if !HAVE_WEAK_SYMBOLS
444 libfollybase_la_SOURCES += detail/MallocImpl.cpp
445 endif
446
447 if !HAVE_BITS_FUNCTEXCEPT
448 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
449 endif
450
451 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
452
453 libfolly_la_LIBADD = libfollybase.la
454 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
455
456 FingerprintTables.cpp: generate_fingerprint_tables
457         ./generate_fingerprint_tables
458 CLEANFILES += FingerprintTables.cpp
459
460 libfollybenchmark_la_SOURCES = Benchmark.cpp
461 libfollybenchmark_la_LIBADD = libfolly.la
462 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)