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