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