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