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