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