fix automake
[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/ChecksumDetail.h \
43         detail/Clock.h \
44         detail/DiscriminatedPtrDetail.h \
45         detail/FileUtilDetail.h \
46         detail/FingerprintPolynomial.h \
47         detail/FunctionalExcept.h \
48         detail/Futex.h \
49         detail/GroupVarintDetail.h \
50         detail/Malloc.h \
51         detail/MemoryIdler.h \
52         detail/MPMCPipelineDetail.h \
53         detail/SlowFingerprint.h \
54         detail/Stats.h \
55         detail/ThreadLocalDetail.h \
56         detail/UncaughtExceptionCounter.h \
57         DiscriminatedPtr.h \
58         DynamicConverter.h \
59         dynamic.h \
60         dynamic-inl.h \
61         FBString.h \
62         FBVector.h \
63         File.h \
64         FileUtil.h \
65         Fingerprint.h \
66         folly-config.h \
67         Exception.h \
68         Foreach.h \
69         FormatArg.h \
70         Format.h \
71         Format-inl.h \
72         GroupVarint.h \
73         Hash.h \
74         IndexedMemPool.h \
75         IntrusiveList.h \
76         io/Cursor.h \
77         io/IOBuf.h \
78         io/IOBufQueue.h \
79         io/RecordIO.h \
80         io/RecordIO-inl.h \
81         io/TypedIOBuf.h \
82         io/async/AsyncTimeout.h \
83         io/async/EventBase.h \
84         io/async/EventFDWrapper.h \
85         io/async/EventHandler.h \
86         io/async/EventUtil.h \
87         io/async/NotificationQueue.h \
88         io/async/Request.h \
89         io/async/TimeoutManager.h \
90         json.h \
91         Lazy.h \
92         Likely.h \
93         Logging.h \
94         Malloc.h \
95         MapUtil.h \
96         Memory.h \
97         MemoryMapping.h \
98         MoveWrapper.h \
99         MPMCPipeline.h \
100         MPMCQueue.h \
101         Optional.h \
102         PackedSyncPtr.h \
103         Padded.h \
104         Portability.h \
105         Preprocessor.h \
106         ProducerConsumerQueue.h \
107         Random.h \
108         Range.h \
109         RWSpinLock.h \
110         ScopeGuard.h \
111         SmallLocks.h \
112         small_vector.h \
113         sorted_vector_types.h \
114         SpookyHashV1.h \
115         SpookyHashV2.h \
116         stats/BucketedTimeSeries-defs.h \
117         stats/BucketedTimeSeries.h \
118         stats/Histogram-defs.h \
119         stats/Histogram.h \
120         stats/MultiLevelTimeSeries-defs.h \
121         stats/MultiLevelTimeSeries.h \
122         String.h \
123         String-inl.h \
124         Subprocess.h \
125         Synchronized.h \
126         test/FBStringTestBenchmarks.cpp.h \
127         test/FBVectorTestBenchmarks.cpp.h \
128         test/function_benchmark/benchmark_impl.h \
129         test/function_benchmark/test_functions.h \
130         test/SynchronizedTestLib.h \
131         test/SynchronizedTestLib-inl.h \
132         ThreadCachedArena.h \
133         ThreadCachedInt.h \
134         ThreadLocal.h \
135         TimeoutQueue.h \
136         Traits.h \
137         Unicode.h \
138         Uri.h \
139         Uri-inl.h \
140         Varint.h \
141         wangle/Executor.h \
142         wangle/Future-inl.h \
143         wangle/Future.h \
144         wangle/GenericThreadGate.h \
145         wangle/InlineExecutor.h \
146         wangle/Later-inl.h \
147         wangle/Later.h \
148         wangle/ManualExecutor.h \
149         wangle/Promise-inl.h \
150         wangle/Promise.h \
151         wangle/ThreadGate.h \
152         wangle/Try-inl.h \
153         wangle/Try.h \
154         wangle/WangleException.h \
155         wangle/detail.h
156
157 FormatTables.cpp: build/generate_format_tables.py
158         build/generate_format_tables.py
159 CLEANFILES += FormatTables.cpp
160
161 EscapeTables.cpp: build/generate_escape_tables.py
162         build/generate_escape_tables.py
163 CLEANFILES += EscapeTables.cpp
164
165 GroupVarintTables.cpp: build/generate_varint_tables.py
166         build/generate_varint_tables.py
167 CLEANFILES += GroupVarintTables.cpp
168
169 libfolly_la_SOURCES = \
170         Benchmark.cpp \
171         Bits.cpp \
172         Conv.cpp \
173         Demangle.cpp \
174         detail/CacheLocality.cpp \
175         dynamic.cpp \
176         EscapeTables.cpp \
177         File.cpp \
178         FileUtil.cpp \
179         Format.cpp \
180         FormatTables.cpp \
181         GroupVarint.cpp \
182         GroupVarintTables.cpp \
183         io/IOBuf.cpp \
184         io/IOBufQueue.cpp \
185         io/RecordIO.cpp \
186         io/async/AsyncTimeout.cpp \
187         io/async/EventBase.cpp \
188         io/async/EventHandler.cpp \
189         io/async/Request.cpp \
190         json.cpp \
191         detail/MemoryIdler.cpp \
192         Malloc.cpp \
193         MemoryMapping.cpp \
194         Random.cpp \
195         Range.cpp \
196         SpookyHashV1.cpp \
197         SpookyHashV2.cpp \
198         stats/Instantiations.cpp \
199         String.cpp \
200         Subprocess.cpp \
201         ThreadCachedArena.cpp \
202         TimeoutQueue.cpp \
203         Unicode.cpp \
204         Uri.cpp \
205         wangle/InlineExecutor.cpp \
206         wangle/ManualExecutor.cpp \
207         wangle/ThreadGate.cpp
208
209 if !HAVE_LINUX
210 nobase_follyinclude_HEADERS += detail/Clock.h
211 libfolly_la_SOURCES += detail/Clock.cpp
212 endif
213
214 if !HAVE_WEAK_SYMBOLS
215 libfolly_la_SOURCES += detail/MallocImpl.cpp
216 endif
217
218 if !HAVE_BITS_FUNCTEXCEPT
219 libfolly_la_SOURCES += detail/FunctionalExcept.cpp
220 endif
221
222 FingerprintTables.cpp: generate_fingerprint_tables
223         ./generate_fingerprint_tables
224 CLEANFILES += FingerprintTables.cpp
225
226 libfollyfingerprint_la_SOURCES = \
227         FingerprintTables.cpp
228 libfollyfingerprint_la_LIBADD = libfolly.la
229
230 libfollybenchmark_la_SOURCES = Benchmark.cpp
231 libfollybenchmark_la_LIBADD = libfolly.la
232
233 libfollytimeout_queue_la_SOURCES = TimeoutQueue.cpp
234 libfollytimeout_queue_la_LIBADD = libfolly.la