5 SUBDIRS = . experimental $(MAYBE_INIT) test io/test stats/test
7 ACLOCAL_AMFLAGS = -I m4
12 noinst_PROGRAMS = generate_fingerprint_tables
13 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
14 generate_fingerprint_tables_LDADD = libfollybase.la
16 noinst_LTLIBRARIES = \
17 libfollybasesse42.la \
24 follyincludedir = $(includedir)/folly
26 nobase_follyinclude_HEADERS = \
34 AtomicHashArray-inl.h \
37 AtomicIntrusiveLinkedList.h \
40 AtomicUnorderedMap.h \
48 ClockGettimeWrappers.h \
49 ConcurrentSkipList.h \
50 ConcurrentSkipList-inl.h \
56 concurrency/CoreCachedSharedPtr.h \
57 detail/AtomicHashUtils.h \
58 detail/AtomicUnorderedMapUtils.h \
59 detail/AtomicUtils.h \
60 detail/BitIteratorDetail.h \
61 detail/CacheLocality.h \
62 detail/CachelinePaddedImpl.h \
63 detail/ChecksumDetail.h \
64 detail/DiscriminatedPtrDetail.h \
65 detail/FileUtilDetail.h \
66 detail/FingerprintPolynomial.h \
68 detail/GroupVarintDetail.h \
70 detail/IPAddressSource.h \
72 detail/MemoryIdler.h \
73 detail/MPMCPipelineDetail.h \
74 detail/RangeCommon.h \
77 detail/SlowFingerprint.h \
78 detail/SocketFastOpen.h \
79 detail/StaticSingletonManager.h \
80 detail/ThreadLocalDetail.h \
82 detail/TurnSequencer.h \
83 detail/UncaughtExceptionCounter.h \
94 ExceptionWrapper-inl.h \
97 experimental/AsymmetricMemoryBarrier.h \
98 experimental/AtomicSharedPtr.h \
99 experimental/detail/AtomicSharedPtr-detail.h \
100 experimental/AutoTimer.h \
101 experimental/ThreadedRepeatingFunctionRunner.h \
102 experimental/Bits.h \
103 experimental/BitVectorCoding.h \
104 experimental/CodingDetail.h \
105 experimental/DynamicParser.h \
106 experimental/DynamicParser-inl.h \
107 experimental/ExecutionObserver.h \
108 experimental/EliasFanoCoding.h \
109 experimental/EnvUtil.h \
110 experimental/EventCount.h \
111 experimental/Instructions.h \
112 experimental/bser/Bser.h \
113 experimental/exception_tracer/ExceptionAbi.h \
114 experimental/exception_tracer/ExceptionCounterLib.h \
115 experimental/exception_tracer/ExceptionTracer.h \
116 experimental/exception_tracer/ExceptionTracerLib.h \
117 experimental/exception_tracer/StackTrace.h \
118 experimental/FunctionScheduler.h \
119 experimental/FutureDAG.h \
120 experimental/io/FsUtil.h \
121 experimental/JemallocNodumpAllocator.h \
122 experimental/JSONSchema.h \
123 experimental/LockFreeRingBuffer.h \
124 experimental/logging/LogCategory.h \
125 experimental/logging/LogHandler.h \
126 experimental/logging/LogLevel.h \
127 experimental/logging/LogMessage.h \
128 experimental/logging/LogName.h \
129 experimental/logging/LogStream.h \
130 experimental/logging/LogStreamProcessor.h \
131 experimental/logging/Logger.h \
132 experimental/logging/LoggerDB.h \
133 experimental/NestedCommandLineApp.h \
134 experimental/observer/detail/Core.h \
135 experimental/observer/detail/GraphCycleDetector.h \
136 experimental/observer/detail/ObserverManager.h \
137 experimental/observer/detail/Observer-pre.h \
138 experimental/observer/Observable.h \
139 experimental/observer/Observable-inl.h \
140 experimental/observer/Observer.h \
141 experimental/observer/Observer-inl.h \
142 experimental/observer/SimpleObservable.h \
143 experimental/observer/SimpleObservable-inl.h \
144 experimental/ProgramOptions.h \
145 experimental/ReadMostlySharedPtr.h \
146 experimental/symbolizer/Elf.h \
147 experimental/symbolizer/Elf-inl.h \
148 experimental/symbolizer/ElfCache.h \
149 experimental/symbolizer/Dwarf.h \
150 experimental/symbolizer/LineReader.h \
151 experimental/symbolizer/SignalHandler.h \
152 experimental/symbolizer/StackTrace.h \
153 experimental/symbolizer/Symbolizer.h \
154 experimental/Select64.h \
155 experimental/StampedPtr.h \
156 experimental/StringKeyedCommon.h \
157 experimental/StringKeyedMap.h \
158 experimental/StringKeyedSet.h \
159 experimental/StringKeyedUnorderedMap.h \
160 experimental/StringKeyedUnorderedSet.h \
161 experimental/TestUtil.h \
162 experimental/TLRefCount.h \
163 experimental/TupleOps.h \
177 futures/DrivableExecutor.h \
178 futures/Future-pre.h \
181 futures/Future-inl.h \
182 futures/FutureException.h \
183 futures/FutureSplitter.h \
184 futures/InlineExecutor.h \
185 futures/ManualExecutor.h \
186 futures/OpaqueCallbackShunt.h \
187 futures/Promise-inl.h \
189 futures/QueuedImmediateExecutor.h \
190 futures/ScheduledExecutor.h \
191 futures/SharedPromise.h \
192 futures/SharedPromise-inl.h \
193 futures/ThreadWheelTimekeeper.h \
194 futures/Timekeeper.h \
195 futures/detail/Core.h \
196 futures/detail/FSM.h \
197 futures/detail/Types.h \
198 futures/test/TestExecutor.h \
210 gen/ParallelMap-inl.h \
218 IPAddressException.h \
231 io/ShutdownSocketSet.h \
232 io/async/AsyncPipe.h \
233 io/async/AsyncTimeout.h \
234 io/async/AsyncTransport.h \
235 io/async/AsyncUDPServerSocket.h \
236 io/async/AsyncUDPSocket.h \
237 io/async/AsyncServerSocket.h \
238 io/async/AsyncSignalHandler.h \
239 io/async/AsyncSocket.h \
240 io/async/AsyncSocketBase.h \
241 io/async/AsyncSSLSocket.h \
242 io/async/AsyncSocketException.h \
243 io/async/DecoratedAsyncTransportWrapper.h \
244 io/async/DelayedDestructionBase.h \
245 io/async/DelayedDestruction.h \
246 io/async/DestructorCheck.h \
247 io/async/EventBase.h \
248 io/async/EventBaseLocal.h \
249 io/async/EventBaseManager.h \
250 io/async/EventBaseThread.h \
251 io/async/EventFDWrapper.h \
252 io/async/EventHandler.h \
253 io/async/EventUtil.h \
254 io/async/NotificationQueue.h \
255 io/async/HHWheelTimer.h \
256 io/async/ssl/OpenSSLUtils.h \
257 io/async/ssl/SSLErrors.h \
258 io/async/ssl/TLSDefinitions.h \
260 io/async/SSLContext.h \
261 io/async/ScopedEventBaseThread.h \
262 io/async/TimeoutManager.h \
263 io/async/VirtualEventBase.h \
264 io/async/WriteChainAsyncTransportWrapper.h \
265 io/async/test/AsyncSSLSocketTest.h \
266 io/async/test/AsyncSocketTest2.h \
267 io/async/test/BlockingSocket.h \
268 io/async/test/MockAsyncSocket.h \
269 io/async/test/MockAsyncServerSocket.h \
270 io/async/test/MockAsyncSSLSocket.h \
271 io/async/test/MockAsyncTransport.h \
272 io/async/test/MockAsyncUDPSocket.h \
273 io/async/test/MockTimeoutManager.h \
274 io/async/test/ScopedBoundPort.h \
275 io/async/test/SocketPair.h \
276 io/async/test/TestSSLServer.h \
277 io/async/test/TimeUtil.h \
278 io/async/test/UndelayedDestruction.h \
279 io/async/test/Util.h \
295 memory/UninitializedMemoryHacks.h \
309 portability/Atomic.h \
310 portability/BitsFunctexcept.h \
311 portability/Builtins.h \
312 portability/Config.h \
313 portability/Constexpr.h \
314 portability/Dirent.h \
315 portability/Event.h \
316 portability/Fcntl.h \
317 portability/GFlags.h \
318 portability/GMock.h \
319 portability/GTest.h \
320 portability/IOVec.h \
321 portability/Libgen.h \
322 portability/Malloc.h \
324 portability/Memory.h \
325 portability/OpenSSL.h \
326 portability/PThread.h \
327 portability/Sockets.h \
328 portability/Stdio.h \
329 portability/Stdlib.h \
330 portability/String.h \
331 portability/Syslog.h \
332 portability/SysFile.h \
333 portability/SysMembarrier.h \
334 portability/SysMman.h \
335 portability/SysResource.h \
336 portability/SysStat.h \
337 portability/SysSyscall.h \
338 portability/SysTime.h \
339 portability/SysTypes.h \
340 portability/SysUio.h \
342 portability/TypeTraits.h \
343 portability/Unistd.h \
344 portability/Windows.h \
346 PriorityMPMCQueue.h \
347 ProducerConsumerQueue.h \
358 SingletonThreadLocal.h \
362 sorted_vector_types.h \
367 ssl/OpenSSLCertUtils.h \
369 ssl/OpenSSLPtrTypes.h \
370 ssl/OpenSSLVersionFinder.h \
372 ssl/detail/SSLSessionImpl.h \
373 stats/detail/Bucket.h \
374 stats/BucketedTimeSeries-defs.h \
375 stats/BucketedTimeSeries.h \
376 stats/Histogram-defs.h \
378 stats/MultiLevelTimeSeries-defs.h \
379 stats/MultiLevelTimeSeries.h \
380 stats/TimeseriesHistogram-defs.h \
381 stats/TimeseriesHistogram.h \
387 test/FBStringTestBenchmarks.cpp.h \
388 test/FBVectorTestBenchmarks.cpp.h \
389 test/function_benchmark/benchmark_impl.h \
390 test/function_benchmark/test_functions.h \
391 test/SynchronizedTestLib.h \
392 test/SynchronizedTestLib-inl.h \
394 ThreadCachedArena.h \
401 tracing/StaticTracepoint.h \
408 UncaughtExceptions.h \
416 FormatTables.cpp: build/generate_format_tables.py
417 $(PYTHON) build/generate_format_tables.py
418 CLEANFILES += FormatTables.cpp
420 EscapeTables.cpp: build/generate_escape_tables.py
421 $(PYTHON) build/generate_escape_tables.py
422 CLEANFILES += EscapeTables.cpp
424 GroupVarintTables.cpp: build/generate_varint_tables.py
425 $(PYTHON) build/generate_varint_tables.py
426 CLEANFILES += GroupVarintTables.cpp
428 libfollybasesse42_la_SOURCES = \
429 detail/ChecksumDetail.cpp \
430 detail/RangeSse42.cpp
432 libfollybase_la_SOURCES = \
435 detail/RangeCommon.cpp \
440 portability/BitsFunctexcept.cpp \
445 libfolly_la_SOURCES = \
448 ClockGettimeWrappers.cpp \
449 detail/CacheLocality.cpp \
450 detail/IPAddress.cpp \
452 ExceptionWrapper.cpp \
456 FingerprintTables.cpp \
457 futures/Barrier.cpp \
459 futures/ManualExecutor.cpp \
460 futures/QueuedImmediateExecutor.cpp \
461 futures/ThreadWheelTimekeeper.cpp \
462 futures/test/TestExecutor.cpp \
464 detail/StaticSingletonManager.cpp \
465 detail/ThreadLocalDetail.cpp \
467 GroupVarintTables.cpp \
478 io/ShutdownSocketSet.cpp \
479 io/async/AsyncPipe.cpp \
480 io/async/AsyncTimeout.cpp \
481 io/async/AsyncUDPSocket.cpp \
482 io/async/AsyncServerSocket.cpp \
483 io/async/AsyncSignalHandler.cpp \
484 io/async/AsyncSocket.cpp \
485 io/async/AsyncSSLSocket.cpp \
486 io/async/EventBase.cpp \
487 io/async/EventBaseLocal.cpp \
488 io/async/EventBaseManager.cpp \
489 io/async/EventBaseThread.cpp \
490 io/async/EventHandler.cpp \
491 io/async/Request.cpp \
492 io/async/SSLContext.cpp \
493 io/async/ScopedEventBaseThread.cpp \
494 io/async/VirtualEventBase.cpp \
495 io/async/HHWheelTimer.cpp \
496 io/async/TimeoutManager.cpp \
497 io/async/test/ScopedBoundPort.cpp \
498 io/async/test/SocketPair.cpp \
499 io/async/test/TimeUtil.cpp \
500 io/async/ssl/OpenSSLUtils.cpp \
501 io/async/ssl/SSLErrors.cpp \
503 detail/MemoryIdler.cpp \
504 detail/SocketFastOpen.cpp \
507 portability/Dirent.cpp \
508 portability/Fcntl.cpp \
509 portability/Libgen.cpp \
510 portability/Malloc.cpp \
511 portability/Memory.cpp \
512 portability/OpenSSL.cpp \
513 portability/PThread.cpp \
514 portability/Sockets.cpp \
515 portability/Stdio.cpp \
516 portability/Stdlib.cpp \
517 portability/String.cpp \
518 portability/SysFile.cpp \
519 portability/SysMembarrier.cpp \
520 portability/SysMman.cpp \
521 portability/SysResource.cpp \
522 portability/SysStat.cpp \
523 portability/SysTime.cpp \
524 portability/SysUio.cpp \
525 portability/Time.cpp \
526 portability/Unistd.cpp \
538 ssl/OpenSSLCertUtils.cpp \
539 ssl/OpenSSLHash.cpp \
540 ssl/detail/SSLSessionImpl.cpp \
541 stats/BucketedTimeSeries.cpp \
542 stats/Histogram.cpp \
543 stats/MultiLevelTimeSeries.cpp \
544 stats/TimeseriesHistogram.cpp \
546 ThreadCachedArena.cpp \
551 experimental/AsymmetricMemoryBarrier.cpp \
552 experimental/ThreadedRepeatingFunctionRunner.cpp \
553 experimental/bser/Dump.cpp \
554 experimental/bser/Load.cpp \
555 experimental/DynamicParser.cpp \
556 experimental/EnvUtil.cpp \
557 experimental/FunctionScheduler.cpp \
558 experimental/io/FsUtil.cpp \
559 experimental/JemallocNodumpAllocator.cpp \
560 experimental/JSONSchema.cpp \
561 experimental/NestedCommandLineApp.cpp \
562 experimental/observer/detail/Core.cpp \
563 experimental/observer/detail/ObserverManager.cpp \
564 experimental/ProgramOptions.cpp \
565 experimental/Select64.cpp \
566 experimental/TestUtil.cpp
569 nobase_follyinclude_HEADERS += \
570 experimental/io/HugePages.h
571 libfolly_la_SOURCES += \
572 experimental/io/HugePages.cpp
575 if !HAVE_WEAK_SYMBOLS
576 libfollybase_la_SOURCES += detail/MallocImpl.cpp
579 if HAVE_BOOST_CONTEXT
580 nobase_follyinclude_HEADERS += \
582 fibers/AddTasks-inl.h \
583 fibers/AtomicBatchDispatcher.h \
584 fibers/AtomicBatchDispatcher-inl.h \
587 fibers/BatchDispatcher.h \
588 fibers/BoostContextCompatibility.h \
589 fibers/detail/AtomicBatchDispatcher.h \
590 fibers/EventBaseLoopController.h \
591 fibers/EventBaseLoopController-inl.h \
594 fibers/FiberManager.h \
595 fibers/FiberManager-inl.h \
596 fibers/FiberManagerInternal.h \
597 fibers/FiberManagerInternal-inl.h \
598 fibers/FiberManagerMap.h \
600 fibers/ForEach-inl.h \
601 fibers/GenericBaton.h \
602 fibers/GuardPageAllocator.h \
603 fibers/LoopController.h \
605 fibers/Promise-inl.h \
607 fibers/SimpleLoopController.h \
608 fibers/TimedMutex.h \
609 fibers/TimedMutex-inl.h \
610 fibers/TimeoutController.h \
615 libfolly_la_SOURCES += \
617 fibers/detail/AtomicBatchDispatcher.cpp \
619 fibers/FiberManager.cpp \
620 fibers/FiberManagerMap.cpp \
621 fibers/GuardPageAllocator.cpp \
622 fibers/Semaphore.cpp \
623 fibers/TimeoutController.cpp
626 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
627 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
629 libfollybase_la_LIBADD = libfollybasesse42.la
630 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
632 libfolly_la_LIBADD = libfollybase.la
633 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
635 FingerprintTables.cpp: generate_fingerprint_tables
636 ./generate_fingerprint_tables
637 CLEANFILES += FingerprintTables.cpp
639 libfollybenchmark_la_SOURCES = Benchmark.cpp
640 libfollybenchmark_la_LIBADD = libfolly.la
641 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
643 # install pkg-config metadata file
644 pkgconfigdir = $(libdir)/pkgconfig
645 nodist_pkgconfig_DATA = libfolly.pc