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