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