move io/Cursor-defs.h to io/Cursor.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         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         fibers/AddTasks.h \
100         fibers/AddTasks-inl.h \
101         fibers/Baton.h \
102         fibers/Baton-inl.h \
103         fibers/BoostContextCompatibility.h \
104         fibers/EventBaseLoopController.h \
105         fibers/EventBaseLoopController-inl.h \
106         fibers/Fiber.h \
107         fibers/Fiber-inl.h \
108         fibers/FiberManager.h \
109         fibers/FiberManager-inl.h \
110         fibers/FiberManagerMap.h \
111         fibers/ForEach.h \
112         fibers/ForEach-inl.h \
113         fibers/GenericBaton.h \
114         fibers/GuardPageAllocator.h \
115         fibers/LoopController.h \
116         fibers/Promise.h \
117         fibers/Promise-inl.h \
118         fibers/SimpleLoopController.h \
119         fibers/TimedMutex.h \
120         fibers/TimedMutex-inl.h \
121         fibers/TimeoutController.h \
122         fibers/traits.h \
123         fibers/WhenN.h \
124         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/DrivableExecutor.h \
160         futures/Future-pre.h \
161         futures/helpers.h \
162         futures/Future.h \
163         futures/Future-inl.h \
164         futures/FutureException.h \
165         futures/InlineExecutor.h \
166         futures/ManualExecutor.h \
167         futures/OpaqueCallbackShunt.h \
168         futures/Promise-inl.h \
169         futures/Promise.h \
170         futures/QueuedImmediateExecutor.h \
171         futures/ScheduledExecutor.h \
172         futures/SharedPromise.h \
173         futures/SharedPromise-inl.h \
174         futures/ThreadWheelTimekeeper.h \
175         futures/Timekeeper.h \
176         futures/detail/Core.h \
177         futures/detail/FSM.h \
178         futures/detail/Types.h \
179         gen/Base.h \
180         gen/Base-inl.h \
181         gen/Combine.h \
182         gen/Combine-inl.h \
183         gen/Core.h \
184         gen/Core-inl.h \
185         gen/File.h \
186         gen/File-inl.h \
187         gen/Parallel.h \
188         gen/Parallel-inl.h \
189         gen/ParallelMap.h \
190         gen/ParallelMap-inl.h \
191         gen/String.h \
192         gen/String-inl.h \
193         GroupVarint.h \
194         Hash.h \
195         IPAddress.h \
196         IPAddressV4.h \
197         IPAddressV6.h \
198         IPAddressException.h \
199         Indestructible.h \
200         IndexedMemPool.h \
201         init/Init.h \
202         IntrusiveList.h \
203         io/Compression.h \
204         io/Cursor.h \
205         io/IOBuf.h \
206         io/IOBufQueue.h \
207         io/RecordIO.h \
208         io/RecordIO-inl.h \
209         io/TypedIOBuf.h \
210         io/ShutdownSocketSet.h \
211         io/async/AsyncPipe.h \
212         io/async/AsyncTimeout.h \
213         io/async/AsyncTransport.h \
214         io/async/AsyncUDPServerSocket.h \
215         io/async/AsyncUDPSocket.h \
216         io/async/AsyncServerSocket.h \
217         io/async/AsyncSignalHandler.h \
218         io/async/AsyncSocket.h \
219         io/async/AsyncSocketBase.h \
220         io/async/AsyncSSLSocket.h \
221         io/async/AsyncSocketException.h \
222         io/async/DelayedDestructionBase.h \
223         io/async/DelayedDestruction.h \
224         io/async/EventBase.h \
225         io/async/EventBaseLocal.h \
226         io/async/EventBaseManager.h \
227         io/async/EventFDWrapper.h \
228         io/async/EventHandler.h \
229         io/async/EventUtil.h \
230         io/async/NotificationQueue.h \
231         io/async/HHWheelTimer.h \
232         io/async/ssl/OpenSSLPtrTypes.h \
233         io/async/ssl/OpenSSLUtils.h \
234         io/async/ssl/SSLErrors.h \
235         io/async/ssl/TLSDefinitions.h \
236         io/async/Request.h \
237         io/async/SSLContext.h \
238         io/async/ScopedEventBaseThread.h \
239         io/async/TimeoutManager.h \
240         io/async/test/AsyncSSLSocketTest.h \
241         io/async/test/BlockingSocket.h \
242         io/async/test/MockAsyncSocket.h \
243         io/async/test/MockAsyncServerSocket.h \
244         io/async/test/MockAsyncSSLSocket.h \
245         io/async/test/MockAsyncTransport.h \
246         io/async/test/MockAsyncUDPSocket.h \
247         io/async/test/MockTimeoutManager.h \
248         io/async/test/SocketPair.h \
249         io/async/test/TimeUtil.h \
250         io/async/test/UndelayedDestruction.h \
251         io/async/test/Util.h \
252         json.h \
253         Lazy.h \
254         LifoSem.h \
255         Likely.h \
256         Logging.h \
257         MacAddress.h \
258         Malloc.h \
259         MapUtil.h \
260         Memory.h \
261         MemoryMapping.h \
262         MicroSpinLock.h \
263         MicroLock.h \
264         MoveWrapper.h \
265         MPMCPipeline.h \
266         MPMCQueue.h \
267         Optional.h \
268         PackedSyncPtr.h \
269         Padded.h \
270         PicoSpinLock.h \
271         Portability.h \
272         portability/Asm.h \
273         portability/Builtins.h \
274         portability/Config.h \
275         portability/Constexpr.h \
276         portability/Dirent.h \
277         portability/Environment.h \
278         portability/Event.h \
279         portability/Fcntl.h \
280         portability/GFlags.h \
281         portability/IOVec.h \
282         portability/Libgen.h \
283         portability/Malloc.h \
284         portability/Memory.h \
285         portability/PThread.h \
286         portability/Sockets.h \
287         portability/Stdio.h \
288         portability/Stdlib.h \
289         portability/String.h \
290         portability/Syslog.h \
291         portability/SysFile.h \
292         portability/SysMman.h \
293         portability/SysResource.h \
294         portability/SysStat.h \
295         portability/SysSyscall.h \
296         portability/SysTime.h \
297         portability/SysTypes.h \
298         portability/SysUio.h \
299         portability/Time.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         stats/BucketedTimeSeries-defs.h \
322         stats/BucketedTimeSeries.h \
323         stats/Histogram-defs.h \
324         stats/Histogram.h \
325         stats/MultiLevelTimeSeries-defs.h \
326         stats/MultiLevelTimeSeries.h \
327         stats/TimeseriesHistogram-defs.h \
328         stats/TimeseriesHistogram.h \
329         String.h \
330         String-inl.h \
331         Subprocess.h \
332         Synchronized.h \
333         test/FBStringTestBenchmarks.cpp.h \
334         test/FBVectorTestBenchmarks.cpp.h \
335         test/function_benchmark/benchmark_impl.h \
336         test/function_benchmark/test_functions.h \
337         test/SynchronizedTestLib.h \
338         test/SynchronizedTestLib-inl.h \
339         test/TestUtils.h \
340         ThreadCachedArena.h \
341         ThreadCachedInt.h \
342         ThreadLocal.h \
343         ThreadName.h \
344         TimeoutQueue.h \
345         Traits.h \
346         Try-inl.h \
347         Try.h \
348         Unicode.h \
349         Function.h \
350         Unit.h \
351         Uri.h \
352         Uri-inl.h \
353         Varint.h \
354         VersionCheck.h
355
356 FormatTables.cpp: build/generate_format_tables.py
357         $(PYTHON) build/generate_format_tables.py
358 CLEANFILES += FormatTables.cpp
359
360 EscapeTables.cpp: build/generate_escape_tables.py
361         $(PYTHON) build/generate_escape_tables.py
362 CLEANFILES += EscapeTables.cpp
363
364 GroupVarintTables.cpp: build/generate_varint_tables.py
365         $(PYTHON) build/generate_varint_tables.py
366 CLEANFILES += GroupVarintTables.cpp
367
368 libfollybase_la_SOURCES = \
369         Conv.cpp \
370         Demangle.cpp \
371         detail/RangeCommon.cpp \
372         detail/RangeSse42.cpp \
373         EscapeTables.cpp \
374         Format.cpp \
375         FormatTables.cpp \
376         StringBase.cpp \
377         String.cpp \
378         Unicode.cpp
379
380 libfolly_la_SOURCES = \
381         Bits.cpp \
382         Checksum.cpp \
383         detail/CacheLocality.cpp \
384         dynamic.cpp \
385         File.cpp \
386         FileUtil.cpp \
387         FingerprintTables.cpp \
388         futures/Barrier.cpp \
389         futures/Future.cpp \
390         futures/InlineExecutor.cpp \
391         futures/ManualExecutor.cpp \
392         futures/QueuedImmediateExecutor.cpp \
393         futures/ThreadWheelTimekeeper.cpp \
394         detail/Futex.cpp \
395         detail/StaticSingletonManager.cpp \
396         detail/ThreadLocalDetail.cpp \
397         GroupVarint.cpp \
398         GroupVarintTables.cpp \
399         IPAddress.cpp \
400         IPAddressV4.cpp \
401         IPAddressV6.cpp \
402         LifoSem.cpp \
403         io/Compression.cpp \
404         io/Cursor.cpp \
405         io/IOBuf.cpp \
406         io/IOBufQueue.cpp \
407         io/RecordIO.cpp \
408         io/ShutdownSocketSet.cpp \
409         io/async/AsyncPipe.cpp \
410         io/async/AsyncTimeout.cpp \
411         io/async/AsyncUDPSocket.cpp \
412         io/async/AsyncServerSocket.cpp \
413         io/async/AsyncSignalHandler.cpp \
414         io/async/AsyncSocket.cpp \
415         io/async/AsyncSSLSocket.cpp \
416         io/async/EventBase.cpp \
417         io/async/EventBaseLocal.cpp \
418         io/async/EventBaseManager.cpp \
419         io/async/EventHandler.cpp \
420         io/async/Request.cpp \
421         io/async/SSLContext.cpp \
422         io/async/ScopedEventBaseThread.cpp \
423         io/async/HHWheelTimer.cpp \
424         io/async/test/SocketPair.cpp \
425         io/async/test/TimeUtil.cpp \
426         io/async/ssl/OpenSSLUtils.cpp \
427         io/async/ssl/SSLErrors.cpp \
428         json.cpp \
429         detail/MemoryIdler.cpp \
430         detail/SocketFastOpen.cpp \
431         MacAddress.cpp \
432         MemoryMapping.cpp \
433         portability/Dirent.cpp \
434         portability/Environment.cpp \
435         portability/Fcntl.cpp \
436         portability/Libgen.cpp \
437         portability/Malloc.cpp \
438         portability/Memory.cpp \
439         portability/Sockets.cpp \
440         portability/Stdio.cpp \
441         portability/Stdlib.cpp \
442         portability/String.cpp \
443         portability/SysFile.cpp \
444         portability/SysMman.cpp \
445         portability/SysResource.cpp \
446         portability/SysStat.cpp \
447         portability/SysTime.cpp \
448         portability/SysUio.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         fibers/Baton.cpp \
469         fibers/Fiber.cpp \
470         fibers/FiberManager.cpp \
471         fibers/FiberManagerMap.cpp \
472         fibers/GuardPageAllocator.cpp \
473         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)