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