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