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