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