wangle support for TFO
[folly.git] / folly / Makefile.am
1 if FOLLY_TESTMAIN
2 SUBDIRS = . experimental init test
3 else
4 SUBDIRS = . test
5 endif
6
7 ACLOCAL_AMFLAGS = -I m4
8
9 CLEANFILES =
10
11 noinst_PROGRAMS = generate_fingerprint_tables
12 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
13 generate_fingerprint_tables_LDADD = libfollybase.la
14
15 noinst_LTLIBRARIES = \
16         libfollybase.la
17
18 lib_LTLIBRARIES = \
19         libfolly.la \
20         libfollybenchmark.la
21
22 follyincludedir = $(includedir)/folly
23
24 nobase_follyinclude_HEADERS = \
25         ApplyTuple.h \
26         Arena.h \
27         Arena-inl.h \
28         Array.h \
29         Assume.h \
30         AtomicBitSet.h \
31         AtomicHashArray.h \
32         AtomicHashArray-inl.h \
33         AtomicHashMap.h \
34         AtomicHashMap-inl.h \
35         AtomicIntrusiveLinkedList.h \
36         AtomicLinkedList.h \
37         AtomicStruct.h \
38         AtomicUnorderedMap.h \
39         Baton.h \
40         Benchmark.h \
41         Bits.h \
42         CallOnce.h \
43         Checksum.h \
44         ConcurrentSkipList.h \
45         ConcurrentSkipList-inl.h \
46         ConditionallyExistent.h \
47         ContainerTraits.h \
48         Conv.h \
49         CppAttributes.h \
50         CpuId.h \
51         CPortability.h \
52         detail/AtomicHashUtils.h \
53         detail/AtomicUnorderedMapUtils.h \
54         detail/BitIteratorDetail.h \
55         detail/BitsDetail.h \
56         detail/CacheLocality.h \
57         detail/ChecksumDetail.h \
58         detail/DiscriminatedPtrDetail.h \
59         detail/ExceptionWrapper.h \
60         detail/FileUtilDetail.h \
61         detail/FingerprintPolynomial.h \
62         detail/FunctionalExcept.h \
63         detail/Futex.h \
64         detail/GroupVarintDetail.h \
65         detail/IPAddress.h \
66         detail/Malloc.h \
67         detail/MemoryIdler.h \
68         detail/MPMCPipelineDetail.h \
69         detail/RangeCommon.h \
70         detail/RangeSse42.h \
71         detail/Sleeper.h \
72         detail/SlowFingerprint.h \
73         detail/SocketFastOpen.h \
74         detail/SpinLockImpl.h \
75         detail/StaticSingletonManager.h \
76         detail/Stats.h \
77         detail/ThreadLocalDetail.h \
78         detail/TurnSequencer.h \
79         detail/UncaughtExceptionCounter.h \
80         Demangle.h \
81         DiscriminatedPtr.h \
82         DynamicConverter.h \
83         dynamic.h \
84         dynamic-inl.h \
85         Exception.h \
86         ExceptionWrapper.h \
87         Executor.h \
88         EvictingCacheMap.h \
89         experimental/AutoTimer.h \
90         experimental/Bits.h \
91         experimental/BitVectorCoding.h \
92         experimental/DynamicParser.h \
93         experimental/DynamicParser-inl.h \
94         experimental/ExecutionObserver.h \
95         experimental/EliasFanoCoding.h \
96         experimental/EventCount.h \
97         experimental/Instructions.h \
98         experimental/bser/Bser.h \
99         experimental/fibers/AddTasks.h \
100         experimental/fibers/AddTasks-inl.h \
101         experimental/fibers/Baton.h \
102         experimental/fibers/Baton-inl.h \
103         experimental/fibers/BoostContextCompatibility.h \
104         experimental/fibers/EventBaseLoopController.h \
105         experimental/fibers/EventBaseLoopController-inl.h \
106         experimental/fibers/Fiber.h \
107         experimental/fibers/Fiber-inl.h \
108         experimental/fibers/FiberManager.h \
109         experimental/fibers/FiberManager-inl.h \
110         experimental/fibers/FiberManagerMap.h \
111         experimental/fibers/ForEach.h \
112         experimental/fibers/ForEach-inl.h \
113         experimental/fibers/GenericBaton.h \
114         experimental/fibers/GuardPageAllocator.h \
115         experimental/fibers/LoopController.h \
116         experimental/fibers/Promise.h \
117         experimental/fibers/Promise-inl.h \
118         experimental/fibers/SimpleLoopController.h \
119         experimental/fibers/TimedMutex.h \
120         experimental/fibers/TimedMutex-inl.h \
121         experimental/fibers/TimeoutController.h \
122         experimental/fibers/traits.h \
123         experimental/fibers/WhenN.h \
124         experimental/fibers/WhenN-inl.h \
125         experimental/FunctionScheduler.h \
126         experimental/FutureDAG.h \
127         experimental/io/FsUtil.h \
128         experimental/JSONSchema.h \
129         experimental/LockFreeRingBuffer.h \
130         experimental/NestedCommandLineApp.h \
131         experimental/ProgramOptions.h \
132         experimental/ReadMostlySharedPtr.h \
133         experimental/symbolizer/Elf.h \
134         experimental/symbolizer/ElfCache.h \
135         experimental/symbolizer/Dwarf.h \
136         experimental/symbolizer/LineReader.h \
137         experimental/symbolizer/SignalHandler.h \
138         experimental/symbolizer/StackTrace.cpp \
139         experimental/symbolizer/Symbolizer.h \
140         experimental/Select64.h \
141         experimental/StringKeyedCommon.h \
142         experimental/StringKeyedUnorderedMap.h \
143         experimental/StringKeyedUnorderedSet.h \
144         experimental/TestUtil.h \
145         experimental/TLRefCount.h \
146         experimental/TupleOps.h \
147         FBString.h \
148         FBVector.h \
149         File.h \
150         FileUtil.h \
151         Fingerprint.h \
152         folly-config.h \
153         Foreach.h \
154         FormatArg.h \
155         FormatTraits.h \
156         Format.h \
157         Format-inl.h \
158         futures/Barrier.h \
159         futures/ThreadedExecutor.h \
160         futures/DrivableExecutor.h \
161         futures/Future-pre.h \
162         futures/helpers.h \
163         futures/Future.h \
164         futures/Future-inl.h \
165         futures/FutureException.h \
166         futures/InlineExecutor.h \
167         futures/ManualExecutor.h \
168         futures/OpaqueCallbackShunt.h \
169         futures/Promise-inl.h \
170         futures/Promise.h \
171         futures/QueuedImmediateExecutor.h \
172         futures/ScheduledExecutor.h \
173         futures/SharedPromise.h \
174         futures/SharedPromise-inl.h \
175         futures/ThreadWheelTimekeeper.h \
176         futures/Timekeeper.h \
177         futures/Try-inl.h \
178         futures/Try.h \
179         futures/Unit.h \
180         futures/detail/Core.h \
181         futures/detail/FSM.h \
182         futures/detail/Types.h \
183         gen/Base.h \
184         gen/Base-inl.h \
185         gen/Combine.h \
186         gen/Combine-inl.h \
187         gen/Core.h \
188         gen/Core-inl.h \
189         gen/File.h \
190         gen/File-inl.h \
191         gen/Parallel.h \
192         gen/Parallel-inl.h \
193         gen/ParallelMap.h \
194         gen/ParallelMap-inl.h \
195         gen/String.h \
196         gen/String-inl.h \
197         GroupVarint.h \
198         Hash.h \
199         IPAddress.h \
200         IPAddressV4.h \
201         IPAddressV6.h \
202         IPAddressException.h \
203         Indestructible.h \
204         IndexedMemPool.h \
205         init/Init.h \
206         IntrusiveList.h \
207         io/Compression.h \
208         io/Cursor.h \
209         io/IOBuf.h \
210         io/IOBufQueue.h \
211         io/RecordIO.h \
212         io/RecordIO-inl.h \
213         io/TypedIOBuf.h \
214         io/ShutdownSocketSet.h \
215         io/async/AsyncPipe.h \
216         io/async/AsyncTimeout.h \
217         io/async/AsyncTransport.h \
218         io/async/AsyncUDPServerSocket.h \
219         io/async/AsyncUDPSocket.h \
220         io/async/AsyncServerSocket.h \
221         io/async/AsyncSignalHandler.h \
222         io/async/AsyncSocket.h \
223         io/async/AsyncSocketBase.h \
224         io/async/AsyncSSLSocket.h \
225         io/async/AsyncSocketException.h \
226         io/async/DelayedDestructionBase.h \
227         io/async/DelayedDestruction.h \
228         io/async/EventBase.h \
229         io/async/EventBaseLocal.h \
230         io/async/EventBaseManager.h \
231         io/async/EventFDWrapper.h \
232         io/async/EventHandler.h \
233         io/async/EventUtil.h \
234         io/async/NotificationQueue.h \
235         io/async/HHWheelTimer.h \
236         io/async/ssl/OpenSSLPtrTypes.h \
237         io/async/ssl/OpenSSLUtils.h \
238         io/async/ssl/SSLErrors.h \
239         io/async/ssl/TLSDefinitions.h \
240         io/async/Request.h \
241         io/async/SSLContext.h \
242         io/async/ScopedEventBaseThread.h \
243         io/async/TimeoutManager.h \
244         io/async/test/AsyncSSLSocketTest.h \
245         io/async/test/BlockingSocket.h \
246         io/async/test/MockAsyncSocket.h \
247         io/async/test/MockAsyncServerSocket.h \
248         io/async/test/MockAsyncSSLSocket.h \
249         io/async/test/MockAsyncTransport.h \
250         io/async/test/MockAsyncUDPSocket.h \
251         io/async/test/MockTimeoutManager.h \
252         io/async/test/SocketPair.h \
253         io/async/test/TimeUtil.h \
254         io/async/test/UndelayedDestruction.h \
255         io/async/test/Util.h \
256         json.h \
257         Lazy.h \
258         LifoSem.h \
259         Likely.h \
260         Logging.h \
261         MacAddress.h \
262         Malloc.h \
263         MapUtil.h \
264         Memory.h \
265         MemoryMapping.h \
266         MicroSpinLock.h \
267         MicroLock.h \
268         MoveWrapper.h \
269         MPMCPipeline.h \
270         MPMCQueue.h \
271         Optional.h \
272         PackedSyncPtr.h \
273         Padded.h \
274         PicoSpinLock.h \
275         Portability.h \
276         portability/Asm.h \
277         portability/Builtins.h \
278         portability/Config.h \
279         portability/Constexpr.h \
280         portability/Dirent.h \
281         portability/Environment.h \
282         portability/Event.h \
283         portability/Fcntl.h \
284         portability/GFlags.h \
285         portability/IOVec.h \
286         portability/Libgen.h \
287         portability/Malloc.h \
288         portability/Memory.h \
289         portability/PThread.h \
290         portability/Sockets.h \
291         portability/Stdio.h \
292         portability/Stdlib.h \
293         portability/String.h \
294         portability/Syslog.h \
295         portability/SysFile.h \
296         portability/SysMman.h \
297         portability/SysResource.h \
298         portability/SysStat.h \
299         portability/SysSyscall.h \
300         portability/SysTime.h \
301         portability/SysTypes.h \
302         portability/SysUio.h \
303         portability/Time.h \
304         portability/Windows.h \
305         portability/Unistd.h \
306         Preprocessor.h \
307         ProducerConsumerQueue.h \
308         Random.h \
309         Random-inl.h \
310         Range.h \
311         RWSpinLock.h \
312         ScopeGuard.h \
313         SharedMutex.h \
314         Singleton.h \
315         Singleton-inl.h \
316         SingletonThreadLocal.h \
317         SmallLocks.h \
318         small_vector.h \
319         SocketAddress.h \
320         sorted_vector_types.h \
321         SparseByteSet.h \
322         SpinLock.h \
323         SpookyHashV1.h \
324         SpookyHashV2.h \
325         stats/BucketedTimeSeries-defs.h \
326         stats/BucketedTimeSeries.h \
327         stats/Histogram-defs.h \
328         stats/Histogram.h \
329         stats/MultiLevelTimeSeries-defs.h \
330         stats/MultiLevelTimeSeries.h \
331         stats/TimeseriesHistogram-defs.h \
332         stats/TimeseriesHistogram.h \
333         String.h \
334         String-inl.h \
335         Subprocess.h \
336         Synchronized.h \
337         test/FBStringTestBenchmarks.cpp.h \
338         test/FBVectorTestBenchmarks.cpp.h \
339         test/function_benchmark/benchmark_impl.h \
340         test/function_benchmark/test_functions.h \
341         test/SynchronizedTestLib.h \
342         test/SynchronizedTestLib-inl.h \
343         test/TestUtils.h \
344         ThreadCachedArena.h \
345         ThreadCachedInt.h \
346         ThreadLocal.h \
347         ThreadName.h \
348         TimeoutQueue.h \
349         Traits.h \
350         Unicode.h \
351         Function.h \
352         Uri.h \
353         Uri-inl.h \
354         Varint.h \
355         VersionCheck.h
356
357 FormatTables.cpp: build/generate_format_tables.py
358         $(PYTHON) build/generate_format_tables.py
359 CLEANFILES += FormatTables.cpp
360
361 EscapeTables.cpp: build/generate_escape_tables.py
362         $(PYTHON) build/generate_escape_tables.py
363 CLEANFILES += EscapeTables.cpp
364
365 GroupVarintTables.cpp: build/generate_varint_tables.py
366         $(PYTHON) build/generate_varint_tables.py
367 CLEANFILES += GroupVarintTables.cpp
368
369 libfollybase_la_SOURCES = \
370         Conv.cpp \
371         Demangle.cpp \
372         detail/RangeCommon.cpp \
373         detail/RangeSse42.cpp \
374         EscapeTables.cpp \
375         Format.cpp \
376         FormatTables.cpp \
377         StringBase.cpp \
378         String.cpp \
379         Unicode.cpp
380
381 libfolly_la_SOURCES = \
382         Bits.cpp \
383         Checksum.cpp \
384         detail/CacheLocality.cpp \
385         dynamic.cpp \
386         File.cpp \
387         FileUtil.cpp \
388         FingerprintTables.cpp \
389         futures/Barrier.cpp \
390         futures/ThreadedExecutor.cpp \
391         futures/Future.cpp \
392         futures/InlineExecutor.cpp \
393         futures/ManualExecutor.cpp \
394         futures/QueuedImmediateExecutor.cpp \
395         futures/ThreadWheelTimekeeper.cpp \
396         detail/Futex.cpp \
397         detail/StaticSingletonManager.cpp \
398         detail/ThreadLocalDetail.cpp \
399         GroupVarint.cpp \
400         GroupVarintTables.cpp \
401         IPAddress.cpp \
402         IPAddressV4.cpp \
403         IPAddressV6.cpp \
404         LifoSem.cpp \
405         io/Compression.cpp \
406         io/IOBuf.cpp \
407         io/IOBufQueue.cpp \
408         io/RecordIO.cpp \
409         io/ShutdownSocketSet.cpp \
410         io/async/AsyncPipe.cpp \
411         io/async/AsyncTimeout.cpp \
412         io/async/AsyncUDPSocket.cpp \
413         io/async/AsyncServerSocket.cpp \
414         io/async/AsyncSignalHandler.cpp \
415         io/async/AsyncSocket.cpp \
416         io/async/AsyncSSLSocket.cpp \
417         io/async/EventBase.cpp \
418         io/async/EventBaseLocal.cpp \
419         io/async/EventBaseManager.cpp \
420         io/async/EventHandler.cpp \
421         io/async/Request.cpp \
422         io/async/SSLContext.cpp \
423         io/async/ScopedEventBaseThread.cpp \
424         io/async/HHWheelTimer.cpp \
425         io/async/test/SocketPair.cpp \
426         io/async/test/TimeUtil.cpp \
427         io/async/ssl/OpenSSLUtils.cpp \
428         io/async/ssl/SSLErrors.cpp \
429         json.cpp \
430         detail/MemoryIdler.cpp \
431         detail/SocketFastOpen.cpp \
432         MacAddress.cpp \
433         MemoryMapping.cpp \
434         portability/Dirent.cpp \
435         portability/Environment.cpp \
436         portability/Fcntl.cpp \
437         portability/Libgen.cpp \
438         portability/Malloc.cpp \
439         portability/Memory.cpp \
440         portability/Sockets.cpp \
441         portability/Stdio.cpp \
442         portability/Stdlib.cpp \
443         portability/String.cpp \
444         portability/SysFile.cpp \
445         portability/SysMman.cpp \
446         portability/SysResource.cpp \
447         portability/SysStat.cpp \
448         portability/SysTime.cpp \
449         portability/Time.cpp \
450         portability/Unistd.cpp \
451         Random.cpp \
452         SafeAssert.cpp \
453         SharedMutex.cpp \
454         MicroLock.cpp \
455         Singleton.cpp \
456         SocketAddress.cpp \
457         SpookyHashV1.cpp \
458         SpookyHashV2.cpp \
459         stats/Instantiations.cpp \
460         Subprocess.cpp \
461         ThreadCachedArena.cpp \
462         TimeoutQueue.cpp \
463         Uri.cpp \
464         Version.cpp \
465         experimental/bser/Dump.cpp \
466         experimental/bser/Load.cpp \
467         experimental/DynamicParser.cpp \
468         experimental/fibers/Baton.cpp \
469         experimental/fibers/Fiber.cpp \
470         experimental/fibers/FiberManager.cpp \
471         experimental/fibers/FiberManagerMap.cpp \
472         experimental/fibers/GuardPageAllocator.cpp \
473         experimental/fibers/TimeoutController.cpp \
474         experimental/FunctionScheduler.cpp \
475         experimental/io/FsUtil.cpp \
476         experimental/JSONSchema.cpp \
477         experimental/NestedCommandLineApp.cpp \
478         experimental/ProgramOptions.cpp \
479         experimental/Select64.cpp \
480         experimental/TestUtil.cpp
481
482 if HAVE_LINUX
483 nobase_follyinclude_HEADERS += \
484         experimental/io/HugePages.h
485 libfolly_la_SOURCES += \
486         experimental/io/HugePages.cpp
487 endif
488
489 if !HAVE_WEAK_SYMBOLS
490 libfollybase_la_SOURCES += detail/MallocImpl.cpp
491 endif
492
493 if !HAVE_BITS_FUNCTEXCEPT_H
494 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
495 endif
496
497 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
498
499 libfolly_la_LIBADD = libfollybase.la
500 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
501
502 FingerprintTables.cpp: generate_fingerprint_tables
503         ./generate_fingerprint_tables
504 CLEANFILES += FingerprintTables.cpp
505
506 libfollybenchmark_la_SOURCES = Benchmark.cpp
507 libfollybenchmark_la_LIBADD = libfolly.la
508 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)