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