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
10 ACLOCAL_AMFLAGS = -I m4
15 noinst_PROGRAMS = generate_fingerprint_tables
16 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
17 generate_fingerprint_tables_LDADD = libfollybase.la
19 noinst_LTLIBRARIES = \
20 libfollybasesse42.la \
27 follyincludedir = $(includedir)/folly
29 nobase_follyinclude_HEADERS = \
37 AtomicHashArray-inl.h \
40 AtomicIntrusiveLinkedList.h \
43 AtomicUnorderedMap.h \
51 ClockGettimeWrappers.h \
52 ConcurrentSkipList.h \
53 ConcurrentSkipList-inl.h \
59 concurrency/CoreCachedSharedPtr.h \
60 detail/AtomicHashUtils.h \
61 detail/AtomicUnorderedMapUtils.h \
62 detail/AtomicUtils.h \
63 detail/BitIteratorDetail.h \
64 detail/CacheLocality.h \
65 detail/CachelinePaddedImpl.h \
66 detail/ChecksumDetail.h \
67 detail/DiscriminatedPtrDetail.h \
68 detail/FileUtilDetail.h \
69 detail/FingerprintPolynomial.h \
71 detail/GroupVarintDetail.h \
73 detail/IPAddressSource.h \
75 detail/MemoryIdler.h \
76 detail/MPMCPipelineDetail.h \
77 detail/RangeCommon.h \
80 detail/SlowFingerprint.h \
81 detail/SocketFastOpen.h \
82 detail/StaticSingletonManager.h \
83 detail/ThreadLocalDetail.h \
85 detail/TurnSequencer.h \
86 detail/UncaughtExceptionCounter.h \
97 ExceptionWrapper-inl.h \
100 experimental/AsymmetricMemoryBarrier.h \
101 experimental/AtomicSharedPtr.h \
102 experimental/detail/AtomicSharedPtr-detail.h \
103 experimental/AutoTimer.h \
104 experimental/ThreadedRepeatingFunctionRunner.h \
105 experimental/Bits.h \
106 experimental/BitVectorCoding.h \
107 experimental/CodingDetail.h \
108 experimental/DynamicParser.h \
109 experimental/DynamicParser-inl.h \
110 experimental/ExecutionObserver.h \
111 experimental/EliasFanoCoding.h \
112 experimental/EnvUtil.h \
113 experimental/EventCount.h \
114 experimental/Instructions.h \
115 experimental/bser/Bser.h \
116 experimental/exception_tracer/ExceptionAbi.h \
117 experimental/exception_tracer/ExceptionCounterLib.h \
118 experimental/exception_tracer/ExceptionTracer.h \
119 experimental/exception_tracer/ExceptionTracerLib.h \
120 experimental/exception_tracer/StackTrace.h \
121 experimental/FunctionScheduler.h \
122 experimental/FutureDAG.h \
123 experimental/io/FsUtil.h \
124 experimental/JemallocNodumpAllocator.h \
125 experimental/JSONSchema.h \
126 experimental/LockFreeRingBuffer.h \
127 experimental/logging/AsyncFileWriter.h \
128 experimental/logging/GlogStyleFormatter.h \
129 experimental/logging/ImmediateFileWriter.h \
130 experimental/logging/Init.h \
131 experimental/logging/LogCategory.h \
132 experimental/logging/LogFormatter.h \
133 experimental/logging/Logger.h \
134 experimental/logging/LoggerDB.h \
135 experimental/logging/LogHandler.h \
136 experimental/logging/LogLevel.h \
137 experimental/logging/LogMessage.h \
138 experimental/logging/LogName.h \
139 experimental/logging/LogStream.h \
140 experimental/logging/LogStreamProcessor.h \
141 experimental/logging/LogWriter.h \
142 experimental/logging/printf.h \
143 experimental/logging/RateLimiter.h \
144 experimental/logging/StandardLogHandler.h \
145 experimental/logging/xlog.h \
146 experimental/NestedCommandLineApp.h \
147 experimental/observer/detail/Core.h \
148 experimental/observer/detail/GraphCycleDetector.h \
149 experimental/observer/detail/ObserverManager.h \
150 experimental/observer/detail/Observer-pre.h \
151 experimental/observer/Observable.h \
152 experimental/observer/Observable-inl.h \
153 experimental/observer/Observer.h \
154 experimental/observer/Observer-inl.h \
155 experimental/observer/SimpleObservable.h \
156 experimental/observer/SimpleObservable-inl.h \
157 experimental/ProgramOptions.h \
158 experimental/ReadMostlySharedPtr.h \
159 experimental/symbolizer/Elf.h \
160 experimental/symbolizer/Elf-inl.h \
161 experimental/symbolizer/ElfCache.h \
162 experimental/symbolizer/Dwarf.h \
163 experimental/symbolizer/LineReader.h \
164 experimental/symbolizer/SignalHandler.h \
165 experimental/symbolizer/StackTrace.h \
166 experimental/symbolizer/Symbolizer.h \
167 experimental/Select64.h \
168 experimental/StampedPtr.h \
169 experimental/StringKeyedCommon.h \
170 experimental/StringKeyedMap.h \
171 experimental/StringKeyedSet.h \
172 experimental/StringKeyedUnorderedMap.h \
173 experimental/StringKeyedUnorderedSet.h \
174 experimental/TestUtil.h \
175 experimental/TLRefCount.h \
176 experimental/TupleOps.h \
190 futures/DrivableExecutor.h \
191 futures/Future-pre.h \
194 futures/Future-inl.h \
195 futures/FutureException.h \
196 futures/FutureSplitter.h \
197 futures/InlineExecutor.h \
198 futures/ManualExecutor.h \
199 futures/Promise-inl.h \
201 futures/QueuedImmediateExecutor.h \
202 futures/ScheduledExecutor.h \
203 futures/SharedPromise.h \
204 futures/SharedPromise-inl.h \
205 futures/ThreadWheelTimekeeper.h \
206 futures/Timekeeper.h \
207 futures/detail/Core.h \
208 futures/detail/FSM.h \
209 futures/detail/Types.h \
210 futures/test/TestExecutor.h \
222 gen/ParallelMap-inl.h \
230 IPAddressException.h \
243 io/ShutdownSocketSet.h \
244 io/async/AsyncPipe.h \
245 io/async/AsyncTimeout.h \
246 io/async/AsyncTransport.h \
247 io/async/AsyncUDPServerSocket.h \
248 io/async/AsyncUDPSocket.h \
249 io/async/AsyncServerSocket.h \
250 io/async/AsyncSignalHandler.h \
251 io/async/AsyncSocket.h \
252 io/async/AsyncSocketBase.h \
253 io/async/AsyncSSLSocket.h \
254 io/async/AsyncSocketException.h \
255 io/async/DecoratedAsyncTransportWrapper.h \
256 io/async/DelayedDestructionBase.h \
257 io/async/DelayedDestruction.h \
258 io/async/DestructorCheck.h \
259 io/async/EventBase.h \
260 io/async/EventBaseLocal.h \
261 io/async/EventBaseManager.h \
262 io/async/EventBaseThread.h \
263 io/async/EventFDWrapper.h \
264 io/async/EventHandler.h \
265 io/async/EventUtil.h \
266 io/async/NotificationQueue.h \
267 io/async/HHWheelTimer.h \
268 io/async/ssl/OpenSSLUtils.h \
269 io/async/ssl/SSLErrors.h \
270 io/async/ssl/TLSDefinitions.h \
272 io/async/SSLContext.h \
273 io/async/ScopedEventBaseThread.h \
274 io/async/TimeoutManager.h \
275 io/async/VirtualEventBase.h \
276 io/async/WriteChainAsyncTransportWrapper.h \
277 io/async/test/AsyncSSLSocketTest.h \
278 io/async/test/AsyncSocketTest2.h \
279 io/async/test/BlockingSocket.h \
280 io/async/test/MockAsyncSocket.h \
281 io/async/test/MockAsyncServerSocket.h \
282 io/async/test/MockAsyncSSLSocket.h \
283 io/async/test/MockAsyncTransport.h \
284 io/async/test/MockAsyncUDPSocket.h \
285 io/async/test/MockTimeoutManager.h \
286 io/async/test/ScopedBoundPort.h \
287 io/async/test/SocketPair.h \
288 io/async/test/TestSSLServer.h \
289 io/async/test/TimeUtil.h \
290 io/async/test/UndelayedDestruction.h \
291 io/async/test/Util.h \
307 memory/UninitializedMemoryHacks.h \
321 portability/Atomic.h \
322 portability/BitsFunctexcept.h \
323 portability/Builtins.h \
324 portability/Config.h \
325 portability/Constexpr.h \
326 portability/Dirent.h \
327 portability/Event.h \
328 portability/Fcntl.h \
329 portability/GFlags.h \
330 portability/GMock.h \
331 portability/GTest.h \
332 portability/IOVec.h \
333 portability/Libgen.h \
334 portability/Malloc.h \
336 portability/Memory.h \
337 portability/OpenSSL.h \
338 portability/PThread.h \
339 portability/Semaphore.h \
340 portability/Sockets.h \
341 portability/Stdio.h \
342 portability/Stdlib.h \
343 portability/String.h \
344 portability/Syslog.h \
345 portability/SysFile.h \
346 portability/SysMembarrier.h \
347 portability/SysMman.h \
348 portability/SysResource.h \
349 portability/SysStat.h \
350 portability/SysSyscall.h \
351 portability/SysTime.h \
352 portability/SysTypes.h \
353 portability/SysUio.h \
355 portability/TypeTraits.h \
356 portability/Unistd.h \
357 portability/Windows.h \
359 PriorityMPMCQueue.h \
360 ProducerConsumerQueue.h \
371 SingletonThreadLocal.h \
375 sorted_vector_types.h \
380 ssl/OpenSSLCertUtils.h \
382 ssl/OpenSSLPtrTypes.h \
383 ssl/OpenSSLVersionFinder.h \
385 ssl/detail/SSLSessionImpl.h \
386 stats/detail/Bucket.h \
387 stats/BucketedTimeSeries-defs.h \
388 stats/BucketedTimeSeries.h \
389 stats/Histogram-defs.h \
391 stats/MultiLevelTimeSeries-defs.h \
392 stats/MultiLevelTimeSeries.h \
393 stats/TimeseriesHistogram-defs.h \
394 stats/TimeseriesHistogram.h \
400 test/FBStringTestBenchmarks.cpp.h \
401 test/FBVectorTestBenchmarks.cpp.h \
402 test/function_benchmark/benchmark_impl.h \
403 test/function_benchmark/test_functions.h \
404 test/SynchronizedTestLib.h \
405 test/SynchronizedTestLib-inl.h \
407 ThreadCachedArena.h \
414 tracing/StaticTracepoint.h \
421 UncaughtExceptions.h \
429 FormatTables.cpp: build/generate_format_tables.py
430 $(PYTHON) build/generate_format_tables.py
431 CLEANFILES += FormatTables.cpp
433 EscapeTables.cpp: build/generate_escape_tables.py
434 $(PYTHON) build/generate_escape_tables.py
435 CLEANFILES += EscapeTables.cpp
437 GroupVarintTables.cpp: build/generate_varint_tables.py
438 $(PYTHON) build/generate_varint_tables.py
439 CLEANFILES += GroupVarintTables.cpp
441 libfollybasesse42_la_SOURCES = \
442 detail/ChecksumDetail.cpp \
443 detail/RangeSse42.cpp
445 libfollybase_la_SOURCES = \
448 detail/RangeCommon.cpp \
453 portability/BitsFunctexcept.cpp \
458 libfolly_la_SOURCES = \
461 ClockGettimeWrappers.cpp \
462 detail/CacheLocality.cpp \
463 detail/IPAddress.cpp \
465 ExceptionWrapper.cpp \
469 FingerprintTables.cpp \
470 futures/Barrier.cpp \
472 futures/ManualExecutor.cpp \
473 futures/QueuedImmediateExecutor.cpp \
474 futures/ThreadWheelTimekeeper.cpp \
475 futures/test/TestExecutor.cpp \
477 detail/StaticSingletonManager.cpp \
478 detail/ThreadLocalDetail.cpp \
480 GroupVarintTables.cpp \
491 io/ShutdownSocketSet.cpp \
492 io/async/AsyncPipe.cpp \
493 io/async/AsyncTimeout.cpp \
494 io/async/AsyncUDPSocket.cpp \
495 io/async/AsyncServerSocket.cpp \
496 io/async/AsyncSignalHandler.cpp \
497 io/async/AsyncSocket.cpp \
498 io/async/AsyncSSLSocket.cpp \
499 io/async/EventBase.cpp \
500 io/async/EventBaseLocal.cpp \
501 io/async/EventBaseManager.cpp \
502 io/async/EventBaseThread.cpp \
503 io/async/EventHandler.cpp \
504 io/async/Request.cpp \
505 io/async/SSLContext.cpp \
506 io/async/ScopedEventBaseThread.cpp \
507 io/async/VirtualEventBase.cpp \
508 io/async/HHWheelTimer.cpp \
509 io/async/TimeoutManager.cpp \
510 io/async/test/ScopedBoundPort.cpp \
511 io/async/test/SocketPair.cpp \
512 io/async/test/TimeUtil.cpp \
513 io/async/ssl/OpenSSLUtils.cpp \
514 io/async/ssl/SSLErrors.cpp \
516 detail/MemoryIdler.cpp \
517 detail/SocketFastOpen.cpp \
520 portability/Dirent.cpp \
521 portability/Fcntl.cpp \
522 portability/Libgen.cpp \
523 portability/Malloc.cpp \
524 portability/Memory.cpp \
525 portability/OpenSSL.cpp \
526 portability/PThread.cpp \
527 portability/Sockets.cpp \
528 portability/Stdio.cpp \
529 portability/Stdlib.cpp \
530 portability/String.cpp \
531 portability/SysFile.cpp \
532 portability/SysMembarrier.cpp \
533 portability/SysMman.cpp \
534 portability/SysResource.cpp \
535 portability/SysStat.cpp \
536 portability/SysTime.cpp \
537 portability/SysUio.cpp \
538 portability/Time.cpp \
539 portability/Unistd.cpp \
551 ssl/OpenSSLCertUtils.cpp \
552 ssl/OpenSSLHash.cpp \
553 ssl/detail/SSLSessionImpl.cpp \
554 stats/BucketedTimeSeries.cpp \
555 stats/Histogram.cpp \
556 stats/MultiLevelTimeSeries.cpp \
557 stats/TimeseriesHistogram.cpp \
559 ThreadCachedArena.cpp \
564 experimental/AsymmetricMemoryBarrier.cpp \
565 experimental/ThreadedRepeatingFunctionRunner.cpp \
566 experimental/bser/Dump.cpp \
567 experimental/bser/Load.cpp \
568 experimental/DynamicParser.cpp \
569 experimental/EnvUtil.cpp \
570 experimental/FunctionScheduler.cpp \
571 experimental/io/FsUtil.cpp \
572 experimental/JemallocNodumpAllocator.cpp \
573 experimental/JSONSchema.cpp \
574 experimental/NestedCommandLineApp.cpp \
575 experimental/observer/detail/Core.cpp \
576 experimental/observer/detail/ObserverManager.cpp \
577 experimental/ProgramOptions.cpp \
578 experimental/Select64.cpp \
579 experimental/TestUtil.cpp
582 nobase_follyinclude_HEADERS += \
583 experimental/io/HugePages.h
584 libfolly_la_SOURCES += \
585 experimental/io/HugePages.cpp
588 if !HAVE_WEAK_SYMBOLS
589 libfollybase_la_SOURCES += detail/MallocImpl.cpp
592 if HAVE_BOOST_CONTEXT
593 nobase_follyinclude_HEADERS += \
595 fibers/AddTasks-inl.h \
596 fibers/AtomicBatchDispatcher.h \
597 fibers/AtomicBatchDispatcher-inl.h \
600 fibers/BatchDispatcher.h \
601 fibers/BoostContextCompatibility.h \
602 fibers/detail/AtomicBatchDispatcher.h \
603 fibers/EventBaseLoopController.h \
604 fibers/EventBaseLoopController-inl.h \
607 fibers/FiberManager.h \
608 fibers/FiberManager-inl.h \
609 fibers/FiberManagerInternal.h \
610 fibers/FiberManagerInternal-inl.h \
611 fibers/FiberManagerMap.h \
613 fibers/ForEach-inl.h \
614 fibers/GenericBaton.h \
615 fibers/GuardPageAllocator.h \
616 fibers/LoopController.h \
618 fibers/Promise-inl.h \
620 fibers/SimpleLoopController.h \
621 fibers/TimedMutex.h \
622 fibers/TimedMutex-inl.h \
623 fibers/TimeoutController.h \
628 libfolly_la_SOURCES += \
630 fibers/detail/AtomicBatchDispatcher.cpp \
632 fibers/FiberManager.cpp \
633 fibers/FiberManagerMap.cpp \
634 fibers/GuardPageAllocator.cpp \
635 fibers/Semaphore.cpp \
636 fibers/TimeoutController.cpp
639 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
640 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
642 libfollybase_la_LIBADD = libfollybasesse42.la
643 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
645 libfolly_la_LIBADD = libfollybase.la
646 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
648 FingerprintTables.cpp: generate_fingerprint_tables
649 ./generate_fingerprint_tables
650 CLEANFILES += FingerprintTables.cpp
652 libfollybenchmark_la_SOURCES = Benchmark.cpp
653 libfollybenchmark_la_LIBADD = libfolly.la
654 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
656 # install pkg-config metadata file
657 pkgconfigdir = $(libdir)/pkgconfig
658 nodist_pkgconfig_DATA = libfolly.pc