Fixup a reference to detail/FunctionalExcept.cpp
[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         ClockGettimeWrappers.h \
45         ConcurrentSkipList.h \
46         ConcurrentSkipList-inl.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/Futex.h \
63         detail/GroupVarintDetail.h \
64         detail/IPAddress.h \
65         detail/IPAddressSource.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         Enumerate.h \
86         EvictingCacheMap.h \
87         Exception.h \
88         ExceptionString.h \
89         ExceptionWrapper.h \
90         Executor.h \
91         Expected.h \
92         experimental/AsymmetricMemoryBarrier.h \
93         experimental/AutoTimer.h \
94         experimental/Bits.h \
95         experimental/BitVectorCoding.h \
96         experimental/DynamicParser.h \
97         experimental/DynamicParser-inl.h \
98         experimental/ExecutionObserver.h \
99         experimental/EliasFanoCoding.h \
100         experimental/EventCount.h \
101         experimental/Instructions.h \
102         experimental/bser/Bser.h \
103         experimental/FunctionScheduler.h \
104         experimental/FutureDAG.h \
105         experimental/io/FsUtil.h \
106         experimental/JSONSchema.h \
107         experimental/LockFreeRingBuffer.h \
108         experimental/NestedCommandLineApp.h \
109         experimental/observer/detail/Core.h \
110         experimental/observer/detail/ObserverManager.h \
111         experimental/observer/detail/Observer-pre.h \
112         experimental/observer/Observable.h \
113         experimental/observer/Observable-inl.h \
114         experimental/observer/Observer.h \
115         experimental/observer/Observer-inl.h \
116         experimental/observer/SimpleObservable.h \
117         experimental/observer/SimpleObservable-inl.h \
118         experimental/ProgramOptions.h \
119         experimental/ReadMostlySharedPtr.h \
120         experimental/symbolizer/Elf.h \
121         experimental/symbolizer/ElfCache.h \
122         experimental/symbolizer/Dwarf.h \
123         experimental/symbolizer/LineReader.h \
124         experimental/symbolizer/SignalHandler.h \
125         experimental/symbolizer/StackTrace.cpp \
126         experimental/symbolizer/Symbolizer.h \
127         experimental/Select64.h \
128         experimental/StringKeyedCommon.h \
129         experimental/StringKeyedUnorderedMap.h \
130         experimental/StringKeyedUnorderedSet.h \
131         experimental/TestUtil.h \
132         experimental/TLRefCount.h \
133         experimental/TupleOps.h \
134         FBString.h \
135         FBVector.h \
136         File.h \
137         FileUtil.h \
138         Fingerprint.h \
139         folly-config.h \
140         Foreach.h \
141         FormatArg.h \
142         FormatTraits.h \
143         Format.h \
144         Format-inl.h \
145         futures/Barrier.h \
146         futures/DrivableExecutor.h \
147         futures/Future-pre.h \
148         futures/helpers.h \
149         futures/Future.h \
150         futures/Future-inl.h \
151         futures/FutureException.h \
152         futures/InlineExecutor.h \
153         futures/ManualExecutor.h \
154         futures/OpaqueCallbackShunt.h \
155         futures/Promise-inl.h \
156         futures/Promise.h \
157         futures/QueuedImmediateExecutor.h \
158         futures/ScheduledExecutor.h \
159         futures/SharedPromise.h \
160         futures/SharedPromise-inl.h \
161         futures/ThreadWheelTimekeeper.h \
162         futures/Timekeeper.h \
163         futures/detail/Core.h \
164         futures/detail/FSM.h \
165         futures/detail/Types.h \
166         gen/Base.h \
167         gen/Base-inl.h \
168         gen/Combine.h \
169         gen/Combine-inl.h \
170         gen/Core.h \
171         gen/Core-inl.h \
172         gen/File.h \
173         gen/File-inl.h \
174         gen/Parallel.h \
175         gen/Parallel-inl.h \
176         gen/ParallelMap.h \
177         gen/ParallelMap-inl.h \
178         gen/String.h \
179         gen/String-inl.h \
180         GroupVarint.h \
181         Hash.h \
182         IPAddress.h \
183         IPAddressV4.h \
184         IPAddressV6.h \
185         IPAddressException.h \
186         Indestructible.h \
187         IndexedMemPool.h \
188         init/Init.h \
189         IntrusiveList.h \
190         io/Compression.h \
191         io/Cursor.h \
192         io/Cursor-inl.h \
193         io/IOBuf.h \
194         io/IOBufQueue.h \
195         io/RecordIO.h \
196         io/RecordIO-inl.h \
197         io/TypedIOBuf.h \
198         io/ShutdownSocketSet.h \
199         io/async/AsyncPipe.h \
200         io/async/AsyncTimeout.h \
201         io/async/AsyncTransport.h \
202         io/async/AsyncUDPServerSocket.h \
203         io/async/AsyncUDPSocket.h \
204         io/async/AsyncServerSocket.h \
205         io/async/AsyncSignalHandler.h \
206         io/async/AsyncSocket.h \
207         io/async/AsyncSocketBase.h \
208         io/async/AsyncSSLSocket.h \
209         io/async/AsyncSocketException.h \
210         io/async/DecoratedAsyncTransportWrapper.h \
211         io/async/DelayedDestructionBase.h \
212         io/async/DelayedDestruction.h \
213         io/async/EventBase.h \
214         io/async/EventBaseLocal.h \
215         io/async/EventBaseManager.h \
216         io/async/EventFDWrapper.h \
217         io/async/EventHandler.h \
218         io/async/EventUtil.h \
219         io/async/NotificationQueue.h \
220         io/async/HHWheelTimer.h \
221         io/async/ssl/OpenSSLPtrTypes.h \
222         io/async/ssl/OpenSSLUtils.h \
223         io/async/ssl/SSLErrors.h \
224         io/async/ssl/TLSDefinitions.h \
225         io/async/Request.h \
226         io/async/SSLContext.h \
227         io/async/ScopedEventBaseThread.h \
228         io/async/TimeoutManager.h \
229         io/async/WriteChainAsyncTransportWrapper.h \
230         io/async/test/AsyncSSLSocketTest.h \
231         io/async/test/BlockingSocket.h \
232         io/async/test/MockAsyncSocket.h \
233         io/async/test/MockAsyncServerSocket.h \
234         io/async/test/MockAsyncSSLSocket.h \
235         io/async/test/MockAsyncTransport.h \
236         io/async/test/MockAsyncUDPSocket.h \
237         io/async/test/MockTimeoutManager.h \
238         io/async/test/ScopedBoundPort.h \
239         io/async/test/SocketPair.h \
240         io/async/test/TimeUtil.h \
241         io/async/test/UndelayedDestruction.h \
242         io/async/test/Util.h \
243         json.h \
244         Lazy.h \
245         LifoSem.h \
246         Likely.h \
247         LockTraits.h \
248         LockTraitsBoost.h \
249         Logging.h \
250         MacAddress.h \
251         MallctlHelper.h \
252         Malloc.h \
253         MapUtil.h \
254         Memory.h \
255         MemoryMapping.h \
256         MicroSpinLock.h \
257         MicroLock.h \
258         MoveWrapper.h \
259         MPMCPipeline.h \
260         MPMCQueue.h \
261         Optional.h \
262         PackedSyncPtr.h \
263         Padded.h \
264         Partial.h \
265         PicoSpinLock.h \
266         Portability.h \
267         portability/Asm.h \
268         portability/Atomic.h \
269         portability/BitsFunctexcept.h \
270         portability/Builtins.h \
271         portability/Config.h \
272         portability/Constexpr.h \
273         portability/Dirent.h \
274         portability/Environment.h \
275         portability/Event.h \
276         portability/Fcntl.h \
277         portability/GFlags.h \
278         portability/IOVec.h \
279         portability/Libgen.h \
280         portability/Malloc.h \
281         portability/Math.h \
282         portability/Memory.h \
283         portability/PThread.h \
284         portability/Sockets.h \
285         portability/Stdio.h \
286         portability/Stdlib.h \
287         portability/String.h \
288         portability/Syslog.h \
289         portability/SysFile.h \
290         portability/SysMembarrier.h \
291         portability/SysMman.h \
292         portability/SysResource.h \
293         portability/SysStat.h \
294         portability/SysSyscall.h \
295         portability/SysTime.h \
296         portability/SysTypes.h \
297         portability/SysUio.h \
298         portability/Time.h \
299         portability/TypeTraits.h \
300         portability/Windows.h \
301         portability/Unistd.h \
302         Preprocessor.h \
303         ProducerConsumerQueue.h \
304         Random.h \
305         Random-inl.h \
306         Range.h \
307         RWSpinLock.h \
308         ScopeGuard.h \
309         SharedMutex.h \
310         Singleton.h \
311         Singleton-inl.h \
312         SingletonThreadLocal.h \
313         SmallLocks.h \
314         small_vector.h \
315         SocketAddress.h \
316         sorted_vector_types.h \
317         SparseByteSet.h \
318         SpinLock.h \
319         SpookyHashV1.h \
320         SpookyHashV2.h \
321         ssl/OpenSSLHash.h \
322         stats/BucketedTimeSeries-defs.h \
323         stats/BucketedTimeSeries.h \
324         stats/Histogram-defs.h \
325         stats/Histogram.h \
326         stats/MultiLevelTimeSeries-defs.h \
327         stats/MultiLevelTimeSeries.h \
328         stats/TimeseriesHistogram-defs.h \
329         stats/TimeseriesHistogram.h \
330         stop_watch.h \
331         String.h \
332         String-inl.h \
333         Subprocess.h \
334         Synchronized.h \
335         test/FBStringTestBenchmarks.cpp.h \
336         test/FBVectorTestBenchmarks.cpp.h \
337         test/function_benchmark/benchmark_impl.h \
338         test/function_benchmark/test_functions.h \
339         test/SynchronizedTestLib.h \
340         test/SynchronizedTestLib-inl.h \
341         test/TestUtils.h \
342         ThreadCachedArena.h \
343         ThreadCachedInt.h \
344         ThreadLocal.h \
345         ThreadName.h \
346         TimeoutQueue.h \
347         Traits.h \
348         Try-inl.h \
349         Try.h \
350         Unicode.h \
351         Function.h \
352         Unit.h \
353         Uri.h \
354         Uri-inl.h \
355         Varint.h \
356         VersionCheck.h
357
358 FormatTables.cpp: build/generate_format_tables.py
359         $(PYTHON) build/generate_format_tables.py
360 CLEANFILES += FormatTables.cpp
361
362 EscapeTables.cpp: build/generate_escape_tables.py
363         $(PYTHON) build/generate_escape_tables.py
364 CLEANFILES += EscapeTables.cpp
365
366 GroupVarintTables.cpp: build/generate_varint_tables.py
367         $(PYTHON) build/generate_varint_tables.py
368 CLEANFILES += GroupVarintTables.cpp
369
370 libfollybase_la_SOURCES = \
371         Conv.cpp \
372         Demangle.cpp \
373         detail/RangeCommon.cpp \
374         detail/RangeSse42.cpp \
375         EscapeTables.cpp \
376         Format.cpp \
377         FormatTables.cpp \
378         MallctlHelper.cpp \
379         StringBase.cpp \
380         String.cpp \
381         Unicode.cpp
382
383 libfolly_la_SOURCES = \
384         Assume.cpp \
385         Bits.cpp \
386         Checksum.cpp \
387         ClockGettimeWrappers.cpp \
388         detail/CacheLocality.cpp \
389         detail/IPAddress.cpp \
390         dynamic.cpp \
391         File.cpp \
392         FileUtil.cpp \
393         FingerprintTables.cpp \
394         futures/Barrier.cpp \
395         futures/Future.cpp \
396         futures/InlineExecutor.cpp \
397         futures/ManualExecutor.cpp \
398         futures/QueuedImmediateExecutor.cpp \
399         futures/ThreadWheelTimekeeper.cpp \
400         detail/Futex.cpp \
401         detail/StaticSingletonManager.cpp \
402         detail/ThreadLocalDetail.cpp \
403         GroupVarint.cpp \
404         GroupVarintTables.cpp \
405         IPAddress.cpp \
406         IPAddressV4.cpp \
407         IPAddressV6.cpp \
408         LifoSem.cpp \
409         io/Compression.cpp \
410         io/Cursor.cpp \
411         io/IOBuf.cpp \
412         io/IOBufQueue.cpp \
413         io/RecordIO.cpp \
414         io/ShutdownSocketSet.cpp \
415         io/async/AsyncPipe.cpp \
416         io/async/AsyncTimeout.cpp \
417         io/async/AsyncUDPSocket.cpp \
418         io/async/AsyncServerSocket.cpp \
419         io/async/AsyncSignalHandler.cpp \
420         io/async/AsyncSocket.cpp \
421         io/async/AsyncSSLSocket.cpp \
422         io/async/EventBase.cpp \
423         io/async/EventBaseLocal.cpp \
424         io/async/EventBaseManager.cpp \
425         io/async/EventHandler.cpp \
426         io/async/Request.cpp \
427         io/async/SSLContext.cpp \
428         io/async/ScopedEventBaseThread.cpp \
429         io/async/HHWheelTimer.cpp \
430         io/async/test/ScopedBoundPort.cpp \
431         io/async/test/SocketPair.cpp \
432         io/async/test/TimeUtil.cpp \
433         io/async/ssl/OpenSSLUtils.cpp \
434         io/async/ssl/SSLErrors.cpp \
435         json.cpp \
436         detail/MemoryIdler.cpp \
437         detail/SocketFastOpen.cpp \
438         MacAddress.cpp \
439         MemoryMapping.cpp \
440         portability/BitsFunctexcept.cpp \
441         portability/Dirent.cpp \
442         portability/Environment.cpp \
443         portability/Fcntl.cpp \
444         portability/Libgen.cpp \
445         portability/Malloc.cpp \
446         portability/Memory.cpp \
447         portability/Sockets.cpp \
448         portability/Stdio.cpp \
449         portability/Stdlib.cpp \
450         portability/String.cpp \
451         portability/SysFile.cpp \
452         portability/SysMembarrier.cpp \
453         portability/SysMman.cpp \
454         portability/SysResource.cpp \
455         portability/SysStat.cpp \
456         portability/SysTime.cpp \
457         portability/SysUio.cpp \
458         portability/Time.cpp \
459         portability/Unistd.cpp \
460         Random.cpp \
461         SafeAssert.cpp \
462         SharedMutex.cpp \
463         MicroLock.cpp \
464         Singleton.cpp \
465         SocketAddress.cpp \
466         SpookyHashV1.cpp \
467         SpookyHashV2.cpp \
468         ssl/OpenSSLHash.cpp \
469         stats/Instantiations.cpp \
470         Subprocess.cpp \
471         ThreadCachedArena.cpp \
472         TimeoutQueue.cpp \
473         Uri.cpp \
474         Version.cpp \
475         experimental/AsymmetricMemoryBarrier.cpp \
476         experimental/bser/Dump.cpp \
477         experimental/bser/Load.cpp \
478         experimental/DynamicParser.cpp \
479         experimental/FunctionScheduler.cpp \
480         experimental/io/FsUtil.cpp \
481         experimental/JSONSchema.cpp \
482         experimental/NestedCommandLineApp.cpp \
483         experimental/observer/detail/Core.cpp \
484         experimental/observer/detail/ObserverManager.cpp \
485         experimental/ProgramOptions.cpp \
486         experimental/Select64.cpp \
487         experimental/TestUtil.cpp
488
489 if HAVE_LINUX
490 nobase_follyinclude_HEADERS += \
491         experimental/io/HugePages.h
492 libfolly_la_SOURCES += \
493         experimental/io/HugePages.cpp
494 endif
495
496 if !HAVE_WEAK_SYMBOLS
497 libfollybase_la_SOURCES += detail/MallocImpl.cpp
498 endif
499
500 if HAVE_BOOST_CONTEXT
501 nobase_follyinclude_HEADERS += \
502         fibers/AddTasks.h \
503         fibers/AddTasks-inl.h \
504         fibers/Baton.h \
505         fibers/Baton-inl.h \
506         fibers/BoostContextCompatibility.h \
507         fibers/EventBaseLoopController.h \
508         fibers/EventBaseLoopController-inl.h \
509         fibers/Fiber.h \
510         fibers/Fiber-inl.h \
511         fibers/FiberManager.h \
512         fibers/FiberManager-inl.h \
513         fibers/FiberManagerMap.h \
514         fibers/ForEach.h \
515         fibers/ForEach-inl.h \
516         fibers/GenericBaton.h \
517         fibers/GuardPageAllocator.h \
518         fibers/LoopController.h \
519         fibers/Promise.h \
520         fibers/Promise-inl.h \
521         fibers/SimpleLoopController.h \
522         fibers/TimedMutex.h \
523         fibers/TimedMutex-inl.h \
524         fibers/TimeoutController.h \
525         fibers/traits.h \
526         fibers/WhenN.h \
527         fibers/WhenN-inl.h
528
529 libfolly_la_SOURCES += \
530         fibers/Baton.cpp \
531         fibers/Fiber.cpp \
532         fibers/FiberManager.cpp \
533         fibers/FiberManagerMap.cpp \
534         fibers/GuardPageAllocator.cpp \
535         fibers/TimeoutController.cpp
536 endif
537
538 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
539
540 libfolly_la_LIBADD = libfollybase.la
541 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
542
543 FingerprintTables.cpp: generate_fingerprint_tables
544         ./generate_fingerprint_tables
545 CLEANFILES += FingerprintTables.cpp
546
547 libfollybenchmark_la_SOURCES = Benchmark.cpp
548 libfollybenchmark_la_LIBADD = libfolly.la
549 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
550
551 # install pkg-config metadata file
552 pkgconfigdir = $(libdir)/pkgconfig
553 nodist_pkgconfig_DATA = libfolly.pc