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