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