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