rename io::PortableSpinLock to SpinLock
[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/PortableSpinLock.h \
156         io/RecordIO.h \
157         io/RecordIO-inl.h \
158         io/TypedIOBuf.h \
159         io/ShutdownSocketSet.h \
160         io/async/AsyncTimeout.h \
161         io/async/AsyncTransport.h \
162         io/async/AsyncUDPServerSocket.h \
163         io/async/AsyncUDPSocket.h \
164         io/async/AsyncServerSocket.h \
165         io/async/AsyncSSLServerSocket.h \
166         io/async/AsyncSocket.h \
167         io/async/AsyncSSLSocket.h \
168         io/async/AsyncSocketException.h \
169         io/async/DelayedDestruction.h \
170         io/async/EventBase.h \
171         io/async/EventBaseManager.h \
172         io/async/EventFDWrapper.h \
173         io/async/EventHandler.h \
174         io/async/EventUtil.h \
175         io/async/NotificationQueue.h \
176         io/async/HHWheelTimer.h \
177         io/async/Request.h \
178         io/async/SSLContext.h \
179         io/async/TimeoutManager.h \
180         io/async/test/TimeUtil.h \
181         io/async/test/UndelayedDestruction.h \
182         io/async/test/Util.h \
183         json.h \
184         Lazy.h \
185         LifoSem.h \
186         Likely.h \
187         Logging.h \
188         MacAddress.h \
189         Malloc.h \
190         MapUtil.h \
191         Memory.h \
192         MemoryMapping.h \
193         MoveWrapper.h \
194         MPMCPipeline.h \
195         MPMCQueue.h \
196         Optional.h \
197         PackedSyncPtr.h \
198         Padded.h \
199         Portability.h \
200         Preprocessor.h \
201         ProducerConsumerQueue.h \
202         Random.h \
203         Random-inl.h \
204         Range.h \
205         RWSpinLock.h \
206         ScopeGuard.h \
207         SmallLocks.h \
208         small_vector.h \
209         SocketAddress.h \
210         sorted_vector_types.h \
211         SpinLock.h \
212         SpookyHashV1.h \
213         SpookyHashV2.h \
214         stats/BucketedTimeSeries-defs.h \
215         stats/BucketedTimeSeries.h \
216         stats/Histogram-defs.h \
217         stats/Histogram.h \
218         stats/MultiLevelTimeSeries-defs.h \
219         stats/MultiLevelTimeSeries.h \
220         String.h \
221         String-inl.h \
222         Subprocess.h \
223         Synchronized.h \
224         test/FBStringTestBenchmarks.cpp.h \
225         test/FBVectorTestBenchmarks.cpp.h \
226         test/function_benchmark/benchmark_impl.h \
227         test/function_benchmark/test_functions.h \
228         test/SynchronizedTestLib.h \
229         test/SynchronizedTestLib-inl.h \
230         ThreadCachedArena.h \
231         ThreadCachedInt.h \
232         ThreadLocal.h \
233         ThreadName.h \
234         TimeoutQueue.h \
235         Traits.h \
236         Unicode.h \
237         Uri.h \
238         Uri-inl.h \
239         Varint.h \
240         VersionCheck.h \
241         wangle/futures/Deprecated.h \
242         wangle/futures/Future-inl.h \
243         wangle/futures/Future.h \
244         wangle/futures/InlineExecutor.h \
245         wangle/futures/ManualExecutor.h \
246         wangle/futures/OpaqueCallbackShunt.h \
247         wangle/futures/Promise-inl.h \
248         wangle/futures/Promise.h \
249         wangle/futures/QueuedImmediateExecutor.h \
250         wangle/futures/ScheduledExecutor.h \
251         wangle/futures/Try-inl.h \
252         wangle/futures/Try.h \
253         wangle/futures/WangleException.h \
254         wangle/futures/detail/Core.h \
255         wangle/futures/detail/FSM.h
256
257 FormatTables.cpp: build/generate_format_tables.py
258         build/generate_format_tables.py
259 CLEANFILES += FormatTables.cpp
260
261 EscapeTables.cpp: build/generate_escape_tables.py
262         build/generate_escape_tables.py
263 CLEANFILES += EscapeTables.cpp
264
265 GroupVarintTables.cpp: build/generate_varint_tables.py
266         build/generate_varint_tables.py
267 CLEANFILES += GroupVarintTables.cpp
268
269 libfollybase_la_SOURCES = \
270         Conv.cpp \
271         Demangle.cpp \
272         EscapeTables.cpp \
273         Format.cpp \
274         FormatTables.cpp \
275         Malloc.cpp \
276         Range.cpp \
277         String.cpp \
278         Unicode.cpp
279
280 libfolly_la_SOURCES = \
281         Bits.cpp \
282         detail/CacheLocality.cpp \
283         dynamic.cpp \
284         File.cpp \
285         FileUtil.cpp \
286         FingerprintTables.cpp \
287         detail/Futex.cpp \
288         GroupVarint.cpp \
289         GroupVarintTables.cpp \
290         IPAddress.cpp \
291         IPAddressV4.cpp \
292         IPAddressV6.cpp \
293         LifoSem.cpp \
294         io/Compression.cpp \
295         io/IOBuf.cpp \
296         io/IOBufQueue.cpp \
297         io/RecordIO.cpp \
298         io/ShutdownSocketSet.cpp \
299         io/async/AsyncTimeout.cpp \
300         io/async/AsyncUDPSocket.cpp \
301         io/async/AsyncServerSocket.cpp \
302         io/async/AsyncSSLServerSocket.cpp \
303         io/async/AsyncSocket.cpp \
304         io/async/AsyncSSLSocket.cpp \
305         io/async/EventBase.cpp \
306         io/async/EventBaseManager.cpp \
307         io/async/EventHandler.cpp \
308         io/async/Request.cpp \
309         io/async/SSLContext.cpp \
310         io/async/HHWheelTimer.cpp \
311         io/async/test/TimeUtil.cpp \
312         json.cpp \
313         detail/MemoryIdler.cpp \
314         MacAddress.cpp \
315         MemoryMapping.cpp \
316         Random.cpp \
317         SafeAssert.cpp \
318         SocketAddress.cpp \
319         SpookyHashV1.cpp \
320         SpookyHashV2.cpp \
321         stats/Instantiations.cpp \
322         Subprocess.cpp \
323         ThreadCachedArena.cpp \
324         TimeoutQueue.cpp \
325         Uri.cpp \
326         Version.cpp \
327         wangle/futures/InlineExecutor.cpp \
328         wangle/futures/ManualExecutor.cpp \
329         experimental/io/FsUtil.cpp \
330         experimental/Singleton.cpp \
331         experimental/TestUtil.cpp \
332         experimental/wangle/concurrent/CPUThreadPoolExecutor.cpp \
333         experimental/wangle/concurrent/Codel.cpp \
334         experimental/wangle/concurrent/GlobalExecutor.cpp \
335         experimental/wangle/concurrent/IOExecutor.cpp \
336         experimental/wangle/concurrent/IOThreadPoolExecutor.cpp \
337         experimental/wangle/concurrent/ThreadPoolExecutor.cpp \
338         experimental/wangle/ConnectionManager.cpp \
339         experimental/wangle/ManagedConnection.cpp \
340         experimental/wangle/acceptor/Acceptor.cpp \
341         experimental/wangle/acceptor/SocketOptions.cpp \
342         experimental/wangle/acceptor/LoadShedConfiguration.cpp \
343         experimental/wangle/acceptor/TransportInfo.cpp \
344         experimental/wangle/ssl/PasswordInFile.cpp \
345         experimental/wangle/ssl/SSLContextManager.cpp \
346         experimental/wangle/ssl/SSLSessionCacheManager.cpp \
347         experimental/wangle/ssl/SSLUtil.cpp \
348         experimental/wangle/ssl/TLSTicketKeyManager.cpp
349
350 if HAVE_LINUX
351 nobase_follyinclude_HEADERS += \
352         experimental/io/HugePages.h
353 libfolly_la_SOURCES += \
354         experimental/io/HugePages.cpp
355 endif
356
357 if !HAVE_LINUX
358 nobase_follyinclude_HEADERS += detail/Clock.h
359 libfollybase_la_SOURCES += detail/Clock.cpp
360 endif
361
362 if !HAVE_WEAK_SYMBOLS
363 libfollybase_la_SOURCES += detail/MallocImpl.cpp
364 endif
365
366 if !HAVE_BITS_FUNCTEXCEPT
367 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
368 endif
369
370 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
371
372 libfolly_la_LIBADD = libfollybase.la
373 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
374
375 FingerprintTables.cpp: generate_fingerprint_tables
376         ./generate_fingerprint_tables
377 CLEANFILES += FingerprintTables.cpp
378
379 libfollybenchmark_la_SOURCES = Benchmark.cpp
380 libfollybenchmark_la_LIBADD = libfolly.la
381 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)