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