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