7d28d8c0548f94bb224734a7e278184fef3d19c3
[folly.git] / folly / Makefile.am
1 if FOLLY_TESTMAIN
2 MAYBE_INIT = init
3 endif
4
5 # Note that the order of SUBDIRS matters.
6 # Many subdirectories depend on libfollytest from the test directory,
7 # so it must appear before other directories
8 SUBDIRS = . test experimental $(MAYBE_INIT) io/test stats/test
9
10 ACLOCAL_AMFLAGS = -I m4
11
12 CLEANFILES =
13
14
15 noinst_PROGRAMS = generate_fingerprint_tables
16 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
17 generate_fingerprint_tables_LDADD = libfollybase.la
18
19 noinst_LTLIBRARIES = \
20         libfollybasesse42.la \
21         libfollybase.la
22
23 lib_LTLIBRARIES = \
24         libfolly.la \
25         libfollybenchmark.la
26
27 follyincludedir = $(includedir)/folly
28
29 nobase_follyinclude_HEADERS = \
30         Array.h \
31         Assume.h \
32         AtomicBitSet.h \
33         AtomicHashArray.h \
34         AtomicHashArray-inl.h \
35         AtomicHashMap.h \
36         AtomicHashMap-inl.h \
37         AtomicIntrusiveLinkedList.h \
38         AtomicLinkedList.h \
39         AtomicStruct.h \
40         AtomicUnorderedMap.h \
41         Baton.h \
42         Benchmark.h \
43         Bits.h \
44         CachelinePadded.h \
45         Chrono.h \
46         ClockGettimeWrappers.h \
47         ConcurrentSkipList.h \
48         ConcurrentSkipList-inl.h \
49         ContainerTraits.h \
50         Conv.h \
51         CppAttributes.h \
52         CpuId.h \
53         CPortability.h \
54         compression/Compression.h \
55         compression/Utils.h \
56         compression/Zlib.h \
57         concurrency/CacheLocality.h \
58         concurrency/ConcurrentHashMap.h \
59         concurrency/CoreCachedSharedPtr.h \
60         concurrency/detail/ConcurrentHashMap-detail.h \
61         container/Iterator.h \
62         container/Enumerate.h \
63         container/EvictingCacheMap.h \
64         container/Foreach.h \
65         container/Foreach-inl.h \
66         container/SparseByteSet.h \
67         ConstexprMath.h \
68         detail/AtomicHashUtils.h \
69         detail/AtomicUnorderedMapUtils.h \
70         detail/AtomicUtils.h \
71         detail/BitIteratorDetail.h \
72         detail/DiscriminatedPtrDetail.h \
73         detail/FileUtilDetail.h \
74         detail/FingerprintPolynomial.h \
75         detail/Futex.h \
76         detail/GroupVarintDetail.h \
77         detail/IPAddress.h \
78         detail/IPAddressSource.h \
79         detail/MemoryIdler.h \
80         detail/MPMCPipelineDetail.h \
81         detail/RangeCommon.h \
82         detail/RangeSse42.h \
83         detail/Sleeper.h \
84         detail/SlowFingerprint.h \
85         detail/SocketFastOpen.h \
86         detail/StaticSingletonManager.h \
87         detail/ThreadLocalDetail.h \
88         detail/TurnSequencer.h \
89         detail/UncaughtExceptionCounter.h \
90         executors/Async.h \
91         executors/CPUThreadPoolExecutor.h \
92         executors/Codel.h \
93         executors/DrivableExecutor.h \
94         executors/FiberIOExecutor.h \
95         executors/FutureExecutor.h \
96         executors/GlobalExecutor.h \
97         executors/GlobalThreadPoolList.h \
98         executors/InlineExecutor.h \
99         executors/IOExecutor.h \
100         executors/IOObjectCache.h \
101         executors/IOThreadPoolExecutor.h \
102         executors/NotificationQueueExecutor.h \
103         executors/ScheduledExecutor.h \
104         executors/SerialExecutor.h \
105         executors/ThreadPoolExecutor.h \
106         executors/ThreadedExecutor.h \
107         executors/task_queue/BlockingQueue.h \
108         executors/task_queue/LifoSemMPMCQueue.h \
109         executors/task_queue/PriorityLifoSemMPMCQueue.h \
110         executors/task_queue/UnboundedBlockingQueue.h \
111         executors/thread_factory/NamedThreadFactory.h \
112         executors/thread_factory/PriorityThreadFactory.h \
113         executors/thread_factory/ThreadFactory.h \
114         functional/ApplyTuple.h \
115         Demangle.h \
116         DiscriminatedPtr.h \
117         DynamicConverter.h \
118         dynamic.h \
119         dynamic-inl.h \
120         Exception.h \
121         ExceptionString.h \
122         ExceptionWrapper.h \
123         ExceptionWrapper-inl.h \
124         Executor.h \
125         Expected.h \
126         concurrency/AtomicSharedPtr.h \
127         concurrency/detail/AtomicSharedPtr-detail.h \
128         experimental/AsymmetricMemoryBarrier.h \
129         experimental/AutoTimer.h \
130         experimental/ThreadedRepeatingFunctionRunner.h \
131         experimental/Bits.h \
132         experimental/BitVectorCoding.h \
133         experimental/CodingDetail.h \
134         experimental/DynamicParser.h \
135         experimental/DynamicParser-inl.h \
136         experimental/ExecutionObserver.h \
137         experimental/EliasFanoCoding.h \
138         experimental/EnvUtil.h \
139         experimental/EventCount.h \
140         experimental/Instructions.h \
141         experimental/bser/Bser.h \
142         experimental/exception_tracer/ExceptionAbi.h \
143         experimental/exception_tracer/ExceptionCounterLib.h \
144         experimental/exception_tracer/ExceptionTracer.h \
145         experimental/exception_tracer/ExceptionTracerLib.h \
146         experimental/exception_tracer/StackTrace.h \
147         experimental/FunctionScheduler.h \
148         experimental/FutureDAG.h \
149         experimental/hazptr/debug.h \
150         experimental/hazptr/hazptr.h \
151         experimental/hazptr/hazptr-impl.h \
152         experimental/hazptr/memory_resource.h \
153         experimental/io/FsUtil.h \
154         experimental/JemallocNodumpAllocator.h \
155         experimental/JSONSchema.h \
156         experimental/LockFreeRingBuffer.h \
157         experimental/logging/AsyncFileWriter.h \
158         experimental/logging/GlogStyleFormatter.h \
159         experimental/logging/ImmediateFileWriter.h \
160         experimental/logging/Init.h \
161         experimental/logging/LogCategory.h \
162         experimental/logging/LogFormatter.h \
163         experimental/logging/Logger.h \
164         experimental/logging/LoggerDB.h \
165         experimental/logging/LogHandler.h \
166         experimental/logging/LogLevel.h \
167         experimental/logging/LogMessage.h \
168         experimental/logging/LogName.h \
169         experimental/logging/LogStream.h \
170         experimental/logging/LogStreamProcessor.h \
171         experimental/logging/LogWriter.h \
172         experimental/logging/printf.h \
173         experimental/logging/RateLimiter.h \
174         experimental/logging/StandardLogHandler.h \
175         experimental/logging/xlog.h \
176         experimental/NestedCommandLineApp.h \
177         experimental/observer/detail/Core.h \
178         experimental/observer/detail/GraphCycleDetector.h \
179         experimental/observer/detail/ObserverManager.h \
180         experimental/observer/detail/Observer-pre.h \
181         experimental/observer/Observable.h \
182         experimental/observer/Observable-inl.h \
183         experimental/observer/Observer.h \
184         experimental/observer/Observer-inl.h \
185         experimental/observer/SimpleObservable.h \
186         experimental/observer/SimpleObservable-inl.h \
187         experimental/ProgramOptions.h \
188         experimental/ReadMostlySharedPtr.h \
189         experimental/Select64.h \
190         experimental/StampedPtr.h \
191         experimental/StringKeyedCommon.h \
192         experimental/StringKeyedMap.h \
193         experimental/StringKeyedSet.h \
194         experimental/StringKeyedUnorderedMap.h \
195         experimental/StringKeyedUnorderedSet.h \
196         experimental/TestUtil.h \
197         experimental/TLRefCount.h \
198         experimental/TupleOps.h \
199         FBString.h \
200         FBVector.h \
201         File.h \
202         FileUtil.h \
203         Fingerprint.h \
204         FixedString.h \
205         folly-config.h \
206         FormatArg.h \
207         FormatTraits.h \
208         Format.h \
209         Format-inl.h \
210         functional/Invoke.h \
211         functional/Partial.h \
212         futures/Barrier.h \
213         futures/Future-pre.h \
214         futures/helpers.h \
215         futures/Future.h \
216         futures/Future-inl.h \
217         futures/FutureException.h \
218         futures/FutureSplitter.h \
219         futures/Promise-inl.h \
220         futures/Promise.h \
221         futures/SharedPromise.h \
222         futures/SharedPromise-inl.h \
223         futures/ThreadWheelTimekeeper.h \
224         futures/Timekeeper.h \
225         futures/detail/Core.h \
226         futures/detail/FSM.h \
227         futures/detail/Types.h \
228         futures/test/TestExecutor.h \
229         hash/Checksum.h \
230         hash/detail/ChecksumDetail.h \
231         hash/SpookyHashV1.h \
232         hash/SpookyHashV2.h \
233         gen/Base.h \
234         gen/Base-inl.h \
235         gen/Combine.h \
236         gen/Combine-inl.h \
237         gen/Core.h \
238         gen/Core-inl.h \
239         gen/File.h \
240         gen/File-inl.h \
241         gen/Parallel.h \
242         gen/Parallel-inl.h \
243         gen/ParallelMap.h \
244         gen/ParallelMap-inl.h \
245         gen/String.h \
246         gen/String-inl.h \
247         GroupVarint.h \
248         Hash.h \
249         IPAddress.h \
250         IPAddressV4.h \
251         IPAddressV6.h \
252         IPAddressException.h \
253         Indestructible.h \
254         IndexedMemPool.h \
255         init/Init.h \
256         IntrusiveList.h \
257         io/Cursor.h \
258         io/Cursor-inl.h \
259         io/IOBuf.h \
260         io/IOBufQueue.h \
261         io/RecordIO.h \
262         io/RecordIO-inl.h \
263         io/TypedIOBuf.h \
264         io/ShutdownSocketSet.h \
265         io/async/AsyncPipe.h \
266         io/async/AsyncTimeout.h \
267         io/async/AsyncTransport.h \
268         io/async/AsyncUDPServerSocket.h \
269         io/async/AsyncUDPSocket.h \
270         io/async/AsyncServerSocket.h \
271         io/async/AsyncSignalHandler.h \
272         io/async/AsyncSocket.h \
273         io/async/AsyncSocketBase.h \
274         io/async/AsyncSSLSocket.h \
275         io/async/AsyncSocketException.h \
276         io/async/DecoratedAsyncTransportWrapper.h \
277         io/async/DelayedDestructionBase.h \
278         io/async/DelayedDestruction.h \
279         io/async/DestructorCheck.h \
280         io/async/EventBase.h \
281         io/async/EventBaseLocal.h \
282         io/async/EventBaseManager.h \
283         io/async/EventBaseThread.h \
284         io/async/EventFDWrapper.h \
285         io/async/EventHandler.h \
286         io/async/EventUtil.h \
287         io/async/NotificationQueue.h \
288         io/async/HHWheelTimer.h \
289         io/async/ssl/OpenSSLUtils.h \
290         io/async/ssl/SSLErrors.h \
291         io/async/ssl/TLSDefinitions.h \
292         io/async/Request.h \
293         io/async/SSLContext.h \
294         io/async/SSLOptions.h \
295         io/async/ScopedEventBaseThread.h \
296         io/async/TimeoutManager.h \
297         io/async/VirtualEventBase.h \
298         io/async/WriteChainAsyncTransportWrapper.h \
299         io/async/test/AsyncSSLSocketTest.h \
300         io/async/test/AsyncSocketTest2.h \
301         io/async/test/BlockingSocket.h \
302         io/async/test/MockAsyncSocket.h \
303         io/async/test/MockAsyncServerSocket.h \
304         io/async/test/MockAsyncSSLSocket.h \
305         io/async/test/MockAsyncTransport.h \
306         io/async/test/MockAsyncUDPSocket.h \
307         io/async/test/MockTimeoutManager.h \
308         io/async/test/ScopedBoundPort.h \
309         io/async/test/SocketPair.h \
310         io/async/test/TestSSLServer.h \
311         io/async/test/TimeUtil.h \
312         io/async/test/UndelayedDestruction.h \
313         io/async/test/Util.h \
314         json.h \
315         Launder.h \
316         Lazy.h \
317         LifoSem.h \
318         Likely.h \
319         LockTraits.h \
320         LockTraitsBoost.h \
321         Logging.h \
322         MacAddress.h \
323         MapUtil.h \
324         Math.h \
325         Memory.h \
326         memory/Arena.h \
327         memory/Arena-inl.h \
328         memory/MallctlHelper.h \
329         memory/Malloc.h \
330         memory/ThreadCachedArena.h \
331         memory/UninitializedMemoryHacks.h \
332         memory/detail/MallocImpl.h \
333         MicroSpinLock.h \
334         MicroLock.h \
335         MoveWrapper.h \
336         MPMCPipeline.h \
337         MPMCQueue.h \
338         Optional.h \
339         Overload.h \
340         PackedSyncPtr.h \
341         Padded.h \
342         PicoSpinLock.h \
343         Portability.h \
344         portability/Asm.h \
345         portability/Atomic.h \
346         portability/BitsFunctexcept.h \
347         portability/Builtins.h \
348         portability/Config.h \
349         portability/Constexpr.h \
350         portability/Dirent.h \
351         portability/Event.h \
352         portability/Fcntl.h \
353         portability/GFlags.h \
354         portability/GMock.h \
355         portability/GTest.h \
356         portability/IOVec.h \
357         portability/Libgen.h \
358         portability/Malloc.h \
359         portability/Math.h \
360         portability/Memory.h \
361         portability/OpenSSL.h \
362         portability/PThread.h \
363         portability/Semaphore.h \
364         portability/Sockets.h \
365         portability/Stdio.h \
366         portability/Stdlib.h \
367         portability/String.h \
368         portability/Syslog.h \
369         portability/SysFile.h \
370         portability/SysMembarrier.h \
371         portability/SysMman.h \
372         portability/SysResource.h \
373         portability/SysStat.h \
374         portability/SysSyscall.h \
375         portability/SysTime.h \
376         portability/SysTypes.h \
377         portability/SysUio.h \
378         portability/Time.h \
379         portability/TypeTraits.h \
380         portability/Unistd.h \
381         portability/Windows.h \
382         Preprocessor.h \
383         PriorityMPMCQueue.h \
384         ProducerConsumerQueue.h \
385         Random.h \
386         Random-inl.h \
387         Range.h \
388         Replaceable.h \
389         RWSpinLock.h \
390         SafeAssert.h \
391         ScopeGuard.h \
392         SharedMutex.h \
393         Singleton.h \
394         Singleton-inl.h \
395         SingletonThreadLocal.h \
396         SmallLocks.h \
397         small_vector.h \
398         SocketAddress.h \
399         sorted_vector_types.h \
400         SpinLock.h \
401         ssl/Init.h \
402         ssl/OpenSSLCertUtils.h \
403         ssl/OpenSSLHash.h \
404         ssl/OpenSSLPtrTypes.h \
405         ssl/OpenSSLVersionFinder.h \
406         ssl/SSLSession.h \
407         ssl/OpenSSLLockTypes.h \
408         ssl/detail/OpenSSLThreading.h \
409         ssl/detail/SSLSessionImpl.h \
410         stats/detail/Bucket.h \
411         stats/BucketedTimeSeries-defs.h \
412         stats/BucketedTimeSeries.h \
413         stats/Histogram-defs.h \
414         stats/Histogram.h \
415         stats/MultiLevelTimeSeries-defs.h \
416         stats/MultiLevelTimeSeries.h \
417         stats/TimeseriesHistogram-defs.h \
418         stats/TimeseriesHistogram.h \
419         synchronization/CallOnce.h \
420         system/MemoryMapping.h \
421         system/Shell.h \
422         system/ThreadId.h \
423         system/ThreadName.h \
424         system/VersionCheck.h \
425         stop_watch.h \
426         String.h \
427         String-inl.h \
428         Subprocess.h \
429         Synchronized.h \
430         SynchronizedPtr.h \
431         test/FBStringTestBenchmarks.cpp.h \
432         test/FBVectorTestBenchmarks.cpp.h \
433         test/function_benchmark/benchmark_impl.h \
434         test/function_benchmark/test_functions.h \
435         test/SynchronizedTestLib.h \
436         test/SynchronizedTestLib-inl.h \
437         test/TestUtils.h \
438         ThreadCachedInt.h \
439         ThreadLocal.h \
440         TimeoutQueue.h \
441         TokenBucket.h \
442         tracing/StaticTracepoint.h \
443         tracing/ScopedTraceSection.h \
444         Traits.h \
445         Try-inl.h \
446         Try.h \
447         Unicode.h \
448         Function.h \
449         Functional.h \
450         UncaughtExceptions.h \
451         Unit.h \
452         Uri.h \
453         Uri-inl.h \
454         Utility.h \
455         Varint.h
456
457 FormatTables.cpp: build/generate_format_tables.py
458         $(PYTHON) build/generate_format_tables.py
459 CLEANFILES += FormatTables.cpp
460
461 EscapeTables.cpp: build/generate_escape_tables.py
462         $(PYTHON) build/generate_escape_tables.py
463 CLEANFILES += EscapeTables.cpp
464
465 GroupVarintTables.cpp: build/generate_varint_tables.py
466         $(PYTHON) build/generate_varint_tables.py
467 CLEANFILES += GroupVarintTables.cpp
468
469 libfollybasesse42_la_SOURCES = \
470         detail/RangeSse42.cpp \
471         hash/detail/ChecksumDetail.cpp \
472         hash/detail/Crc32cDetail.cpp
473
474 libfollybase_la_SOURCES = \
475         Conv.cpp \
476         Demangle.cpp \
477         detail/RangeCommon.cpp \
478         EscapeTables.cpp \
479         Format.cpp \
480         FormatArg.cpp \
481         FormatTables.cpp \
482         memory/MallctlHelper.cpp \
483         portability/BitsFunctexcept.cpp \
484         String.cpp \
485         Unicode.cpp
486
487 libfolly_la_SOURCES = \
488         Assume.cpp \
489         ClockGettimeWrappers.cpp \
490         compression/Compression.cpp \
491         compression/Zlib.cpp \
492         concurrency/CacheLocality.cpp \
493         detail/Futex.cpp \
494         detail/IPAddress.cpp \
495         detail/StaticSingletonManager.cpp \
496         detail/ThreadLocalDetail.cpp \
497         dynamic.cpp \
498         ExceptionWrapper.cpp \
499         Executor.cpp \
500         File.cpp \
501         FileUtil.cpp \
502         FingerprintTables.cpp \
503         futures/Barrier.cpp \
504         futures/Future.cpp \
505         futures/FutureException.cpp \
506         futures/ThreadWheelTimekeeper.cpp \
507         futures/test/TestExecutor.cpp \
508         executors/CPUThreadPoolExecutor.cpp \
509         executors/Codel.cpp \
510         executors/GlobalExecutor.cpp \
511         executors/GlobalThreadPoolList.cpp \
512         executors/IOThreadPoolExecutor.cpp \
513         executors/InlineExecutor.cpp \
514         executors/ManualExecutor.cpp \
515         executors/SerialExecutor.cpp \
516         executors/ThreadPoolExecutor.cpp \
517         executors/ThreadedExecutor.cpp \
518         executors/QueuedImmediateExecutor.cpp \
519         experimental/hazptr/hazptr.cpp \
520         experimental/hazptr/memory_resource.cpp \
521         GroupVarint.cpp \
522         GroupVarintTables.cpp \
523         hash/Checksum.cpp \
524         hash/SpookyHashV1.cpp \
525         hash/SpookyHashV2.cpp \
526         IPAddress.cpp \
527         IPAddressV4.cpp \
528         IPAddressV6.cpp \
529         LifoSem.cpp \
530         init/Init.cpp \
531         io/Cursor.cpp \
532         io/IOBuf.cpp \
533         io/IOBufQueue.cpp \
534         io/RecordIO.cpp \
535         io/ShutdownSocketSet.cpp \
536         io/async/AsyncPipe.cpp \
537         io/async/AsyncTimeout.cpp \
538         io/async/AsyncUDPSocket.cpp \
539         io/async/AsyncServerSocket.cpp \
540         io/async/AsyncSignalHandler.cpp \
541         io/async/AsyncSocket.cpp \
542         io/async/AsyncSocketException.cpp \
543         io/async/AsyncSSLSocket.cpp \
544         io/async/EventBase.cpp \
545         io/async/EventBaseLocal.cpp \
546         io/async/EventBaseManager.cpp \
547         io/async/EventBaseThread.cpp \
548         io/async/EventHandler.cpp \
549         io/async/Request.cpp \
550         io/async/SSLContext.cpp \
551         io/async/SSLOptions.cpp \
552         io/async/ScopedEventBaseThread.cpp \
553         io/async/VirtualEventBase.cpp \
554         io/async/HHWheelTimer.cpp \
555         io/async/TimeoutManager.cpp \
556         io/async/test/ScopedBoundPort.cpp \
557         io/async/test/SocketPair.cpp \
558         io/async/test/TimeUtil.cpp \
559         io/async/ssl/OpenSSLUtils.cpp \
560         io/async/ssl/SSLErrors.cpp \
561         json.cpp \
562         detail/MemoryIdler.cpp \
563         detail/SocketFastOpen.cpp \
564         MacAddress.cpp \
565         memory/ThreadCachedArena.cpp \
566         portability/Dirent.cpp \
567         portability/Fcntl.cpp \
568         portability/Libgen.cpp \
569         portability/Malloc.cpp \
570         portability/Memory.cpp \
571         portability/OpenSSL.cpp \
572         portability/PThread.cpp \
573         portability/Sockets.cpp \
574         portability/Stdio.cpp \
575         portability/Stdlib.cpp \
576         portability/String.cpp \
577         portability/SysFile.cpp \
578         portability/SysMembarrier.cpp \
579         portability/SysMman.cpp \
580         portability/SysResource.cpp \
581         portability/SysStat.cpp \
582         portability/SysTime.cpp \
583         portability/SysUio.cpp \
584         portability/Time.cpp \
585         portability/Unistd.cpp \
586         Random.cpp \
587         SafeAssert.cpp \
588         ScopeGuard.cpp \
589         SharedMutex.cpp \
590         MicroLock.cpp \
591         Optional.cpp \
592         Singleton.cpp \
593         SocketAddress.cpp \
594         ssl/Init.cpp \
595         ssl/OpenSSLCertUtils.cpp \
596         ssl/OpenSSLHash.cpp \
597         ssl/detail/OpenSSLThreading.cpp \
598         ssl/detail/SSLSessionImpl.cpp \
599         stats/BucketedTimeSeries.cpp \
600         stats/Histogram.cpp \
601         stats/MultiLevelTimeSeries.cpp \
602         stats/TimeseriesHistogram.cpp \
603         system/MemoryMapping.cpp \
604         system/Shell.cpp \
605         system/ThreadName.cpp \
606         system/VersionCheck.cpp \
607         Subprocess.cpp \
608         TimeoutQueue.cpp \
609         Try.cpp \
610         Uri.cpp \
611         experimental/AsymmetricMemoryBarrier.cpp \
612         experimental/ThreadedRepeatingFunctionRunner.cpp \
613         experimental/bser/Dump.cpp \
614         experimental/bser/Load.cpp \
615         experimental/DynamicParser.cpp \
616         experimental/EnvUtil.cpp \
617         experimental/FunctionScheduler.cpp \
618         experimental/io/FsUtil.cpp \
619         experimental/JemallocNodumpAllocator.cpp \
620         experimental/JSONSchema.cpp \
621         experimental/NestedCommandLineApp.cpp \
622         experimental/observer/detail/Core.cpp \
623         experimental/observer/detail/ObserverManager.cpp \
624         experimental/ProgramOptions.cpp \
625         experimental/Select64.cpp \
626         experimental/TestUtil.cpp
627
628 if HAVE_LINUX
629 nobase_follyinclude_HEADERS += \
630         experimental/io/HugePages.h
631 libfolly_la_SOURCES += \
632         experimental/io/HugePages.cpp
633 endif
634
635 if !HAVE_WEAK_SYMBOLS
636 libfollybase_la_SOURCES += memory/detail/MallocImpl.cpp
637 endif
638
639 if HAVE_BOOST_CONTEXT
640 nobase_follyinclude_HEADERS += \
641         fibers/AddTasks.h \
642         fibers/AddTasks-inl.h \
643         fibers/AtomicBatchDispatcher.h \
644         fibers/AtomicBatchDispatcher-inl.h \
645         fibers/Baton.h \
646         fibers/Baton-inl.h \
647         fibers/BatchDispatcher.h \
648         fibers/BoostContextCompatibility.h \
649         fibers/detail/AtomicBatchDispatcher.h \
650         fibers/EventBaseLoopController.h \
651         fibers/EventBaseLoopController-inl.h \
652         fibers/Fiber.h \
653         fibers/Fiber-inl.h \
654         fibers/FiberManager.h \
655         fibers/FiberManager-inl.h \
656         fibers/FiberManagerInternal.h \
657         fibers/FiberManagerInternal-inl.h \
658         fibers/FiberManagerMap.h \
659         fibers/ForEach.h \
660         fibers/ForEach-inl.h \
661         fibers/GenericBaton.h \
662         fibers/GuardPageAllocator.h \
663         fibers/LoopController.h \
664         fibers/Promise.h \
665         fibers/Promise-inl.h \
666         fibers/Semaphore.h \
667         fibers/SimpleLoopController.h \
668         fibers/TimedMutex.h \
669         fibers/TimedMutex-inl.h \
670         fibers/TimeoutController.h \
671         fibers/traits.h \
672         fibers/WhenN.h \
673         fibers/WhenN-inl.h
674
675 libfolly_la_SOURCES += \
676         fibers/Baton.cpp \
677         fibers/detail/AtomicBatchDispatcher.cpp \
678         fibers/Fiber.cpp \
679         fibers/FiberManager.cpp \
680         fibers/FiberManagerMap.cpp \
681         fibers/GuardPageAllocator.cpp \
682         fibers/Semaphore.cpp \
683         fibers/TimeoutController.cpp
684 endif
685
686 if USE_SYMBOLIZER
687 nobase_follyinclude_HEADERS += \
688         experimental/symbolizer/Elf.h \
689         experimental/symbolizer/Elf-inl.h \
690         experimental/symbolizer/ElfCache.h \
691         experimental/symbolizer/Dwarf.h \
692         experimental/symbolizer/LineReader.h \
693         experimental/symbolizer/SignalHandler.h \
694         experimental/symbolizer/StackTrace.h \
695         experimental/symbolizer/Symbolizer.h
696
697 libfolly_la_SOURCES += \
698         experimental/symbolizer/Elf.cpp \
699         experimental/symbolizer/ElfCache.cpp \
700         experimental/symbolizer/Dwarf.cpp \
701         experimental/symbolizer/LineReader.cpp \
702         experimental/symbolizer/SignalHandler.cpp \
703         experimental/symbolizer/StackTrace.cpp \
704         experimental/symbolizer/Symbolizer.cpp
705 endif
706
707 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
708 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
709
710 libfollybase_la_LIBADD = libfollybasesse42.la
711 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
712
713 libfolly_la_LIBADD = libfollybase.la
714 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
715
716 FingerprintTables.cpp: generate_fingerprint_tables
717         ./generate_fingerprint_tables
718 CLEANFILES += FingerprintTables.cpp
719
720 libfollybenchmark_la_SOURCES = Benchmark.cpp
721 libfollybenchmark_la_LIBADD = libfolly.la
722 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
723
724 # install pkg-config metadata file
725 pkgconfigdir = $(libdir)/pkgconfig
726 nodist_pkgconfig_DATA = libfolly.pc