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