Move wangle to folly
[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 = libfolly.la
10
11 lib_LTLIBRARIES = \
12         libfolly.la \
13         libfollybenchmark.la \
14         libfollytimeout_queue.la \
15         libfollyfingerprint.la
16
17 follyincludedir = $(includedir)/folly
18
19 nobase_follyinclude_HEADERS = \
20         ApplyTuple.h \
21         Arena.h \
22         Arena-inl.h \
23         AtomicBitSet.h \
24         AtomicHashArray.h \
25         AtomicHashArray-inl.h \
26         AtomicHashMap.h \
27         AtomicHashMap-inl.h \
28         AtomicStruct.h \
29         Baton.h \
30         Benchmark.h \
31         Bits.h \
32         Chrono.h \
33         ConcurrentSkipList.h \
34         ConcurrentSkipList-inl.h \
35         Conv.h \
36         CpuId.h \
37         CPortability.h \
38         detail/AtomicHashUtils.h \
39         detail/BitIteratorDetail.h \
40         detail/BitsDetail.h \
41         detail/CacheLocality.h \
42         detail/DiscriminatedPtrDetail.h \
43         detail/FileUtilDetail.h \
44         detail/FingerprintPolynomial.h \
45         detail/FunctionalExcept.h \
46         detail/Futex.h \
47         detail/GroupVarintDetail.h \
48         detail/Malloc.h \
49         detail/MemoryIdler.h \
50         detail/MPMCPipelineDetail.h \
51         detail/SlowFingerprint.h \
52         detail/Stats.h \
53         detail/ThreadLocalDetail.h \
54         DiscriminatedPtr.h \
55         DynamicConverter.h \
56         dynamic.h \
57         dynamic-inl.h \
58         FBString.h \
59         FBVector.h \
60         File.h \
61         FileUtil.h \
62         Fingerprint.h \
63         folly-config.h \
64         Foreach.h \
65         FormatArg.h \
66         Format.h \
67         Format-inl.h \
68         GroupVarint.h \
69         Hash.h \
70         IndexedMemPool.h \
71         IntrusiveList.h \
72         io/Cursor.h \
73         io/IOBuf.h \
74         io/IOBufQueue.h \
75         io/RecordIO.h \
76         io/RecordIO-inl.h \
77         io/TypedIOBuf.h \
78         json.h \
79         Lazy.h \
80         Likely.h \
81         Logging.h \
82         Malloc.h \
83         MapUtil.h \
84         Memory.h \
85         MemoryMapping.h \
86         MoveWrapper.h \
87         MPMCPipeline.h \
88         MPMCQueue.h \
89         Optional.h \
90         PackedSyncPtr.h \
91         Padded.h \
92         Portability.h \
93         Preprocessor.h \
94         ProducerConsumerQueue.h \
95         Random.h \
96         Range.h \
97         RWSpinLock.h \
98         ScopeGuard.h \
99         SmallLocks.h \
100         small_vector.h \
101         sorted_vector_types.h \
102         SpookyHashV1.h \
103         SpookyHashV2.h \
104         stats/BucketedTimeSeries-defs.h \
105         stats/BucketedTimeSeries.h \
106         stats/Histogram-defs.h \
107         stats/Histogram.h \
108         stats/MultiLevelTimeSeries-defs.h \
109         stats/MultiLevelTimeSeries.h \
110         String.h \
111         String-inl.h \
112         Subprocess.h \
113         Synchronized.h \
114         test/FBStringTestBenchmarks.cpp.h \
115         test/FBVectorTestBenchmarks.cpp.h \
116         test/function_benchmark/benchmark_impl.h \
117         test/function_benchmark/test_functions.h \
118         test/SynchronizedTestLib.h \
119         test/SynchronizedTestLib-inl.h \
120         ThreadCachedArena.h \
121         ThreadCachedInt.h \
122         ThreadLocal.h \
123         TimeoutQueue.h \
124         Traits.h \
125         Unicode.h \
126         Uri.h \
127         Uri-inl.h \
128         Varint.h \
129         wangle/Executor.h \
130         wangle/Future-inl.h \
131         wangle/Future.h \
132         wangle/GenericThreadGate.h \
133         wangle/InlineExecutor.h \
134         wangle/Later-inl.h \
135         wangle/Later.h \
136         wangle/ManualExecutor.h \
137         wangle/Promise-inl.h \
138         wangle/Promise.h \
139         wangle/ThreadGate.h \
140         wangle/Try-inl.h \
141         wangle/Try.h \
142         wangle/WangleException.h \
143         wangle/detail.h
144
145 FormatTables.cpp: build/generate_format_tables.py
146         build/generate_format_tables.py
147 CLEANFILES += FormatTables.cpp
148
149 EscapeTables.cpp: build/generate_escape_tables.py
150         build/generate_escape_tables.py
151 CLEANFILES += EscapeTables.cpp
152
153 GroupVarintTables.cpp: build/generate_varint_tables.py
154         build/generate_varint_tables.py
155 CLEANFILES += GroupVarintTables.cpp
156
157 libfolly_la_SOURCES = \
158         Benchmark.cpp \
159         Bits.cpp \
160         Conv.cpp \
161         detail/CacheLocality.cpp \
162         dynamic.cpp \
163         EscapeTables.cpp \
164         File.cpp \
165         FileUtil.cpp \
166         Format.cpp \
167         FormatTables.cpp \
168         GroupVarint.cpp \
169         GroupVarintTables.cpp \
170         io/IOBuf.cpp \
171         io/IOBufQueue.cpp \
172         io/RecordIO.cpp \
173         json.cpp \
174         detail/MemoryIdler.cpp \
175         MemoryMapping.cpp \
176         Random.cpp \
177         Range.cpp \
178         SpookyHashV1.cpp \
179         SpookyHashV2.cpp \
180         stats/Instantiations.cpp \
181         String.cpp \
182         Subprocess.cpp \
183         ThreadCachedArena.cpp \
184         TimeoutQueue.cpp \
185         Unicode.cpp \
186         Uri.cpp \
187         wangle/InlineExecutor.cpp \
188         wangle/ManualExecutor.cpp \
189         wangle/ThreadGate.cpp
190
191 if !HAVE_LINUX
192 nobase_follyinclude_HEADERS += detail/Clock.h
193 libfolly_la_SOURCES += detail/Clock.cpp
194 endif
195
196 if !HAVE_WEAK_SYMBOLS
197 libfolly_la_SOURCES += detail/Malloc.cpp
198 endif
199
200 if !HAVE_BITS_FUNCTEXCEPT
201 libfolly_la_SOURCES += detail/FunctionalExcept.cpp
202 endif
203
204 FingerprintTables.cpp: generate_fingerprint_tables
205         ./generate_fingerprint_tables
206 CLEANFILES += FingerprintTables.cpp
207
208 libfollyfingerprint_la_SOURCES = \
209         FingerprintTables.cpp
210 libfollyfingerprint_la_LIBADD = libfolly.la
211
212 libfollybenchmark_la_SOURCES = Benchmark.cpp
213 libfollybenchmark_la_LIBADD = libfolly.la
214
215 libfollytimeout_queue_la_SOURCES = TimeoutQueue.cpp
216 libfollytimeout_queue_la_LIBADD = libfolly.la