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