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