6b0d284bd6cea05a37243d220750ef3fb317e59e
[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/Malloc.h \
54         detail/MemoryIdler.h \
55         detail/MPMCPipelineDetail.h \
56         detail/SlowFingerprint.h \
57         detail/Stats.h \
58         detail/ThreadLocalDetail.h \
59         detail/UncaughtExceptionCounter.h \
60         Demangle.h \
61         DiscriminatedPtr.h \
62         DynamicConverter.h \
63         dynamic.h \
64         dynamic-inl.h \
65         Exception.h \
66         ExceptionWrapper.h \
67         experimental/Bits.h \
68         experimental/EliasFanoCoding.h \
69         experimental/EventCount.h \
70         experimental/io/FsUtil.h \
71         experimental/TestUtil.h \
72         FBString.h \
73         FBVector.h \
74         File.h \
75         FileUtil.h \
76         Fingerprint.h \
77         folly-config.h \
78         Foreach.h \
79         FormatArg.h \
80         Format.h \
81         Format-inl.h \
82         gen/Base.h \
83         gen/Base-inl.h \
84         gen/Combine.h \
85         gen/Combine-inl.h \
86         gen/Core.h \
87         gen/Core-inl.h \
88         gen/File.h \
89         gen/File-inl.h \
90         gen/Parallel.h \
91         gen/Parallel-inl.h \
92         gen/ParallelMap.h \
93         gen/ParallelMap-inl.h \
94         gen/String.h \
95         gen/String-inl.h \
96         GroupVarint.h \
97         Hash.h \
98         IPAddress.h \
99         IPAddressV4.h \
100         IPAddressV6.h \
101         IPAddressException.h \
102         IndexedMemPool.h \
103         IntrusiveList.h \
104         io/Compression.h \
105         io/Cursor.h \
106         io/IOBuf.h \
107         io/IOBufQueue.h \
108         io/RecordIO.h \
109         io/RecordIO-inl.h \
110         io/TypedIOBuf.h \
111         io/async/AsyncTimeout.h \
112         io/async/DelayedDestruction.h \
113         io/async/EventBase.h \
114         io/async/EventFDWrapper.h \
115         io/async/EventHandler.h \
116         io/async/EventUtil.h \
117         io/async/NotificationQueue.h \
118         io/async/Request.h \
119         io/async/TimeoutManager.h \
120         json.h \
121         Lazy.h \
122         LifoSem.h \
123         Likely.h \
124         Logging.h \
125         MacAddress.h \
126         Malloc.h \
127         MapUtil.h \
128         Memory.h \
129         MemoryMapping.h \
130         MoveWrapper.h \
131         MPMCPipeline.h \
132         MPMCQueue.h \
133         Optional.h \
134         PackedSyncPtr.h \
135         Padded.h \
136         Portability.h \
137         Preprocessor.h \
138         ProducerConsumerQueue.h \
139         Random.h \
140         Random-inl.h \
141         Range.h \
142         RWSpinLock.h \
143         ScopeGuard.h \
144         SmallLocks.h \
145         small_vector.h \
146         sorted_vector_types.h \
147         SpookyHashV1.h \
148         SpookyHashV2.h \
149         stats/BucketedTimeSeries-defs.h \
150         stats/BucketedTimeSeries.h \
151         stats/Histogram-defs.h \
152         stats/Histogram.h \
153         stats/MultiLevelTimeSeries-defs.h \
154         stats/MultiLevelTimeSeries.h \
155         String.h \
156         String-inl.h \
157         Subprocess.h \
158         Synchronized.h \
159         test/FBStringTestBenchmarks.cpp.h \
160         test/FBVectorTestBenchmarks.cpp.h \
161         test/function_benchmark/benchmark_impl.h \
162         test/function_benchmark/test_functions.h \
163         test/SynchronizedTestLib.h \
164         test/SynchronizedTestLib-inl.h \
165         ThreadCachedArena.h \
166         ThreadCachedInt.h \
167         ThreadLocal.h \
168         ThreadName.h \
169         TimeoutQueue.h \
170         Traits.h \
171         Unicode.h \
172         Uri.h \
173         Uri-inl.h \
174         Varint.h \
175         wangle/Executor.h \
176         wangle/Future-inl.h \
177         wangle/Future.h \
178         wangle/GenericThreadGate.h \
179         wangle/InlineExecutor.h \
180         wangle/Later-inl.h \
181         wangle/Later.h \
182         wangle/ManualExecutor.h \
183         wangle/Promise-inl.h \
184         wangle/Promise.h \
185         wangle/ThreadGate.h \
186         wangle/Try-inl.h \
187         wangle/Try.h \
188         wangle/WangleException.h \
189         wangle/detail/State.h
190
191 FormatTables.cpp: build/generate_format_tables.py
192         build/generate_format_tables.py
193 CLEANFILES += FormatTables.cpp
194
195 EscapeTables.cpp: build/generate_escape_tables.py
196         build/generate_escape_tables.py
197 CLEANFILES += EscapeTables.cpp
198
199 GroupVarintTables.cpp: build/generate_varint_tables.py
200         build/generate_varint_tables.py
201 CLEANFILES += GroupVarintTables.cpp
202
203 libfollybase_la_SOURCES = \
204         Conv.cpp \
205         Demangle.cpp \
206         EscapeTables.cpp \
207         Format.cpp \
208         FormatTables.cpp \
209         Malloc.cpp \
210         Range.cpp \
211         String.cpp \
212         Unicode.cpp
213
214 libfolly_la_SOURCES = \
215         Bits.cpp \
216         detail/CacheLocality.cpp \
217         dynamic.cpp \
218         File.cpp \
219         FileUtil.cpp \
220         FingerprintTables.cpp \
221         detail/Futex.cpp \
222         GroupVarint.cpp \
223         GroupVarintTables.cpp \
224         IPAddress.cpp \
225         IPAddressV4.cpp \
226         IPAddressV6.cpp \
227         LifoSem.cpp \
228         io/Compression.cpp \
229         io/IOBuf.cpp \
230         io/IOBufQueue.cpp \
231         io/RecordIO.cpp \
232         io/async/AsyncTimeout.cpp \
233         io/async/EventBase.cpp \
234         io/async/EventHandler.cpp \
235         io/async/Request.cpp \
236         json.cpp \
237         detail/MemoryIdler.cpp \
238         MacAddress.cpp \
239         MemoryMapping.cpp \
240         Random.cpp \
241         SafeAssert.cpp \
242         SpookyHashV1.cpp \
243         SpookyHashV2.cpp \
244         stats/Instantiations.cpp \
245         Subprocess.cpp \
246         ThreadCachedArena.cpp \
247         TimeoutQueue.cpp \
248         Uri.cpp \
249         Version.cpp \
250         wangle/InlineExecutor.cpp \
251         wangle/ManualExecutor.cpp \
252         wangle/ThreadGate.cpp \
253         experimental/io/FsUtil.cpp \
254         experimental/TestUtil.cpp
255
256 if HAVE_LINUX
257 nobase_follyinclude_HEADERS += \
258         experimental/io/HugePages.h
259 libfolly_la_SOURCES += \
260         experimental/io/HugePages.cpp
261 endif
262
263 if !HAVE_LINUX
264 nobase_follyinclude_HEADERS += detail/Clock.h
265 libfollybase_la_SOURCES += detail/Clock.cpp
266 endif
267
268 if !HAVE_WEAK_SYMBOLS
269 libfollybase_la_SOURCES += detail/MallocImpl.cpp
270 endif
271
272 if !HAVE_BITS_FUNCTEXCEPT
273 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
274 endif
275
276 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
277
278 libfolly_la_LIBADD = libfollybase.la
279 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
280
281 FingerprintTables.cpp: generate_fingerprint_tables
282         ./generate_fingerprint_tables
283 CLEANFILES += FingerprintTables.cpp
284
285 libfollybenchmark_la_SOURCES = Benchmark.cpp
286 libfollybenchmark_la_LIBADD = libfolly.la
287 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)