4c953b0e3d907c254c56eb739e9a445fc1f72e41
[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         AtomicStruct.h \
30         Baton.h \
31         Benchmark.h \
32         Bits.h \
33         Checksum.h \
34         Chrono.h \
35         ConcurrentSkipList.h \
36         ConcurrentSkipList-inl.h \
37         Conv.h \
38         CpuId.h \
39         CPortability.h \
40         detail/AtomicHashUtils.h \
41         detail/BitIteratorDetail.h \
42         detail/BitsDetail.h \
43         detail/CacheLocality.h \
44         detail/ChecksumDetail.h \
45         detail/Clock.h \
46         detail/DiscriminatedPtrDetail.h \
47         detail/ExceptionWrapper.h \
48         detail/FileUtilDetail.h \
49         detail/FingerprintPolynomial.h \
50         detail/FunctionalExcept.h \
51         detail/Futex.h \
52         detail/GroupVarintDetail.h \
53         detail/IPAddress.h \
54         detail/Malloc.h \
55         detail/MemoryIdler.h \
56         detail/MPMCPipelineDetail.h \
57         detail/SlowFingerprint.h \
58         detail/Stats.h \
59         detail/ThreadLocalDetail.h \
60         detail/UncaughtExceptionCounter.h \
61         Demangle.h \
62         DiscriminatedPtr.h \
63         DynamicConverter.h \
64         dynamic.h \
65         dynamic-inl.h \
66         Exception.h \
67         ExceptionWrapper.h \
68         Executor.h \
69         EvictingCacheMap.h \
70         experimental/Bits.h \
71         experimental/EliasFanoCoding.h \
72         experimental/EventCount.h \
73         experimental/io/FsUtil.h \
74         experimental/Singleton.h \
75         experimental/TestUtil.h \
76         experimental/wangle/channel/AsyncSocketHandler.h \
77         experimental/wangle/channel/ChannelHandler.h \
78         experimental/wangle/channel/ChannelHandlerContext.h \
79         experimental/wangle/channel/ChannelPipeline.h \
80         experimental/wangle/channel/OutputBufferingHandler.h \
81         experimental/wangle/concurrent/BlockingQueue.h \
82         experimental/wangle/concurrent/Codel.h \
83         experimental/wangle/concurrent/CPUThreadPoolExecutor.h \
84         experimental/wangle/concurrent/FutureExecutor.h \
85         experimental/wangle/concurrent/GlobalExecutor.h \
86         experimental/wangle/concurrent/IOExecutor.h \
87         experimental/wangle/concurrent/IOThreadPoolExecutor.h \
88         experimental/wangle/concurrent/LifoSemMPMCQueue.h \
89         experimental/wangle/concurrent/NamedThreadFactory.h \
90         experimental/wangle/concurrent/ThreadFactory.h \
91         experimental/wangle/concurrent/ThreadPoolExecutor.h \
92         experimental/wangle/rx/Observable.h \
93         experimental/wangle/rx/Observer.h \
94         experimental/wangle/rx/Subject.h \
95         experimental/wangle/rx/Subscription.h \
96         experimental/wangle/rx/types.h \
97         experimental/wangle/ConnectionManager.h \
98         experimental/wangle/ManagedConnection.h \
99         experimental/wangle/acceptor/Acceptor.h \
100         experimental/wangle/acceptor/ConnectionCounter.h \
101         experimental/wangle/acceptor/SocketOptions.h \
102         experimental/wangle/acceptor/DomainNameMisc.h \
103         experimental/wangle/acceptor/LoadShedConfiguration.h \
104         experimental/wangle/acceptor/NetworkAddress.h \
105         experimental/wangle/acceptor/ServerSocketConfig.h \
106         experimental/wangle/acceptor/TransportInfo.h \
107         experimental/wangle/ssl/ClientHelloExtStats.h \
108         experimental/wangle/ssl/DHParam.h \
109         experimental/wangle/ssl/PasswordInFile.h \
110         experimental/wangle/ssl/SSLCacheOptions.h \
111         experimental/wangle/ssl/SSLCacheProvider.h \
112         experimental/wangle/ssl/SSLContextConfig.h \
113         experimental/wangle/ssl/SSLContextManager.h \
114         experimental/wangle/ssl/SSLSessionCacheManager.h \
115         experimental/wangle/ssl/SSLStats.h \
116         experimental/wangle/ssl/SSLUtil.h \
117         experimental/wangle/ssl/TLSTicketKeyManager.h \
118         experimental/wangle/ssl/TLSTicketKeySeeds.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         Format.h \
128         Format-inl.h \
129         gen/Base.h \
130         gen/Base-inl.h \
131         gen/Combine.h \
132         gen/Combine-inl.h \
133         gen/Core.h \
134         gen/Core-inl.h \
135         gen/File.h \
136         gen/File-inl.h \
137         gen/Parallel.h \
138         gen/Parallel-inl.h \
139         gen/ParallelMap.h \
140         gen/ParallelMap-inl.h \
141         gen/String.h \
142         gen/String-inl.h \
143         GroupVarint.h \
144         Hash.h \
145         IPAddress.h \
146         IPAddressV4.h \
147         IPAddressV6.h \
148         IPAddressException.h \
149         IndexedMemPool.h \
150         IntrusiveList.h \
151         io/Compression.h \
152         io/Cursor.h \
153         io/IOBuf.h \
154         io/IOBufQueue.h \
155         io/RecordIO.h \
156         io/RecordIO-inl.h \
157         io/TypedIOBuf.h \
158         io/ShutdownSocketSet.h \
159         io/async/AsyncTimeout.h \
160         io/async/AsyncTransport.h \
161         io/async/AsyncUDPServerSocket.h \
162         io/async/AsyncUDPSocket.h \
163         io/async/AsyncServerSocket.h \
164         io/async/AsyncSSLServerSocket.h \
165         io/async/AsyncSocket.h \
166         io/async/AsyncSSLSocket.h \
167         io/async/AsyncSocketException.h \
168         io/async/DelayedDestruction.h \
169         io/async/EventBase.h \
170         io/async/EventBaseManager.h \
171         io/async/EventFDWrapper.h \
172         io/async/EventHandler.h \
173         io/async/EventUtil.h \
174         io/async/NotificationQueue.h \
175         io/async/HHWheelTimer.h \
176         io/async/Request.h \
177         io/async/SSLContext.h \
178         io/async/TimeoutManager.h \
179         io/async/test/TimeUtil.h \
180         io/async/test/UndelayedDestruction.h \
181         io/async/test/Util.h \
182         json.h \
183         Lazy.h \
184         LifoSem.h \
185         Likely.h \
186         Logging.h \
187         MacAddress.h \
188         Malloc.h \
189         MapUtil.h \
190         Memory.h \
191         MemoryMapping.h \
192         MoveWrapper.h \
193         MPMCPipeline.h \
194         MPMCQueue.h \
195         Optional.h \
196         PackedSyncPtr.h \
197         Padded.h \
198         Portability.h \
199         Preprocessor.h \
200         ProducerConsumerQueue.h \
201         Random.h \
202         Random-inl.h \
203         Range.h \
204         RWSpinLock.h \
205         ScopeGuard.h \
206         SmallLocks.h \
207         small_vector.h \
208         SocketAddress.h \
209         sorted_vector_types.h \
210         SpinLock.h \
211         SpookyHashV1.h \
212         SpookyHashV2.h \
213         stats/BucketedTimeSeries-defs.h \
214         stats/BucketedTimeSeries.h \
215         stats/Histogram-defs.h \
216         stats/Histogram.h \
217         stats/MultiLevelTimeSeries-defs.h \
218         stats/MultiLevelTimeSeries.h \
219         String.h \
220         String-inl.h \
221         Subprocess.h \
222         Synchronized.h \
223         test/FBStringTestBenchmarks.cpp.h \
224         test/FBVectorTestBenchmarks.cpp.h \
225         test/function_benchmark/benchmark_impl.h \
226         test/function_benchmark/test_functions.h \
227         test/SynchronizedTestLib.h \
228         test/SynchronizedTestLib-inl.h \
229         ThreadCachedArena.h \
230         ThreadCachedInt.h \
231         ThreadLocal.h \
232         ThreadName.h \
233         TimeoutQueue.h \
234         Traits.h \
235         Unicode.h \
236         Uri.h \
237         Uri-inl.h \
238         Varint.h \
239         VersionCheck.h \
240         wangle/futures/Deprecated.h \
241         wangle/futures/Future-inl.h \
242         wangle/futures/Future.h \
243         wangle/futures/InlineExecutor.h \
244         wangle/futures/ManualExecutor.h \
245         wangle/futures/OpaqueCallbackShunt.h \
246         wangle/futures/Promise-inl.h \
247         wangle/futures/Promise.h \
248         wangle/futures/QueuedImmediateExecutor.h \
249         wangle/futures/ScheduledExecutor.h \
250         wangle/futures/Try-inl.h \
251         wangle/futures/Try.h \
252         wangle/futures/WangleException.h \
253         wangle/futures/detail/Core.h \
254         wangle/futures/detail/FSM.h
255
256 FormatTables.cpp: build/generate_format_tables.py
257         build/generate_format_tables.py
258 CLEANFILES += FormatTables.cpp
259
260 EscapeTables.cpp: build/generate_escape_tables.py
261         build/generate_escape_tables.py
262 CLEANFILES += EscapeTables.cpp
263
264 GroupVarintTables.cpp: build/generate_varint_tables.py
265         build/generate_varint_tables.py
266 CLEANFILES += GroupVarintTables.cpp
267
268 libfollybase_la_SOURCES = \
269         Conv.cpp \
270         Demangle.cpp \
271         EscapeTables.cpp \
272         Format.cpp \
273         FormatTables.cpp \
274         Malloc.cpp \
275         Range.cpp \
276         String.cpp \
277         Unicode.cpp
278
279 libfolly_la_SOURCES = \
280         Bits.cpp \
281         detail/CacheLocality.cpp \
282         dynamic.cpp \
283         File.cpp \
284         FileUtil.cpp \
285         FingerprintTables.cpp \
286         detail/Futex.cpp \
287         GroupVarint.cpp \
288         GroupVarintTables.cpp \
289         IPAddress.cpp \
290         IPAddressV4.cpp \
291         IPAddressV6.cpp \
292         LifoSem.cpp \
293         io/Compression.cpp \
294         io/IOBuf.cpp \
295         io/IOBufQueue.cpp \
296         io/RecordIO.cpp \
297         io/ShutdownSocketSet.cpp \
298         io/async/AsyncTimeout.cpp \
299         io/async/AsyncUDPSocket.cpp \
300         io/async/AsyncServerSocket.cpp \
301         io/async/AsyncSSLServerSocket.cpp \
302         io/async/AsyncSocket.cpp \
303         io/async/AsyncSSLSocket.cpp \
304         io/async/EventBase.cpp \
305         io/async/EventBaseManager.cpp \
306         io/async/EventHandler.cpp \
307         io/async/Request.cpp \
308         io/async/SSLContext.cpp \
309         io/async/HHWheelTimer.cpp \
310         io/async/test/TimeUtil.cpp \
311         json.cpp \
312         detail/MemoryIdler.cpp \
313         MacAddress.cpp \
314         MemoryMapping.cpp \
315         Random.cpp \
316         SafeAssert.cpp \
317         SocketAddress.cpp \
318         SpookyHashV1.cpp \
319         SpookyHashV2.cpp \
320         stats/Instantiations.cpp \
321         Subprocess.cpp \
322         ThreadCachedArena.cpp \
323         TimeoutQueue.cpp \
324         Uri.cpp \
325         Version.cpp \
326         wangle/futures/InlineExecutor.cpp \
327         wangle/futures/ManualExecutor.cpp \
328         experimental/io/FsUtil.cpp \
329         experimental/Singleton.cpp \
330         experimental/TestUtil.cpp \
331         experimental/wangle/concurrent/CPUThreadPoolExecutor.cpp \
332         experimental/wangle/concurrent/Codel.cpp \
333         experimental/wangle/concurrent/GlobalExecutor.cpp \
334         experimental/wangle/concurrent/IOExecutor.cpp \
335         experimental/wangle/concurrent/IOThreadPoolExecutor.cpp \
336         experimental/wangle/concurrent/ThreadPoolExecutor.cpp \
337         experimental/wangle/ConnectionManager.cpp \
338         experimental/wangle/ManagedConnection.cpp \
339         experimental/wangle/acceptor/Acceptor.cpp \
340         experimental/wangle/acceptor/SocketOptions.cpp \
341         experimental/wangle/acceptor/LoadShedConfiguration.cpp \
342         experimental/wangle/acceptor/TransportInfo.cpp \
343         experimental/wangle/ssl/PasswordInFile.cpp \
344         experimental/wangle/ssl/SSLContextManager.cpp \
345         experimental/wangle/ssl/SSLSessionCacheManager.cpp \
346         experimental/wangle/ssl/SSLUtil.cpp \
347         experimental/wangle/ssl/TLSTicketKeyManager.cpp
348
349 if HAVE_LINUX
350 nobase_follyinclude_HEADERS += \
351         experimental/io/HugePages.h
352 libfolly_la_SOURCES += \
353         experimental/io/HugePages.cpp
354 endif
355
356 if !HAVE_LINUX
357 nobase_follyinclude_HEADERS += detail/Clock.h
358 libfollybase_la_SOURCES += detail/Clock.cpp
359 endif
360
361 if !HAVE_WEAK_SYMBOLS
362 libfollybase_la_SOURCES += detail/MallocImpl.cpp
363 endif
364
365 if !HAVE_BITS_FUNCTEXCEPT
366 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
367 endif
368
369 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
370
371 libfolly_la_LIBADD = libfollybase.la
372 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
373
374 FingerprintTables.cpp: generate_fingerprint_tables
375         ./generate_fingerprint_tables
376 CLEANFILES += FingerprintTables.cpp
377
378 libfollybenchmark_la_SOURCES = Benchmark.cpp
379 libfollybenchmark_la_LIBADD = libfolly.la
380 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)