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