Harden failure signal handler in the face of memory corruptions
[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
130 FormatTables.cpp: build/generate_format_tables.py
131         build/generate_format_tables.py
132 CLEANFILES += FormatTables.cpp
133
134 EscapeTables.cpp: build/generate_escape_tables.py
135         build/generate_escape_tables.py
136 CLEANFILES += EscapeTables.cpp
137
138 GroupVarintTables.cpp: build/generate_varint_tables.py
139         build/generate_varint_tables.py
140 CLEANFILES += GroupVarintTables.cpp
141
142 libfolly_la_SOURCES = \
143         Benchmark.cpp \
144         Bits.cpp \
145         Conv.cpp \
146         detail/CacheLocality.cpp \
147         dynamic.cpp \
148         EscapeTables.cpp \
149         File.cpp \
150         FileUtil.cpp \
151         Format.cpp \
152         FormatTables.cpp \
153         GroupVarint.cpp \
154         GroupVarintTables.cpp \
155         io/IOBuf.cpp \
156         io/IOBufQueue.cpp \
157         io/RecordIO.cpp \
158         json.cpp \
159         detail/MemoryIdler.cpp \
160         MemoryMapping.cpp \
161         Random.cpp \
162         Range.cpp \
163         SpookyHashV1.cpp \
164         SpookyHashV2.cpp \
165         stats/Instantiations.cpp \
166         String.cpp \
167         Subprocess.cpp \
168         ThreadCachedArena.cpp \
169         TimeoutQueue.cpp \
170         Unicode.cpp \
171         Uri.cpp
172
173 if !HAVE_LINUX
174 nobase_follyinclude_HEADERS += detail/Clock.h
175 libfolly_la_SOURCES += detail/Clock.cpp
176 endif
177
178 if !HAVE_WEAK_SYMBOLS
179 libfolly_la_SOURCES += detail/Malloc.cpp
180 endif
181
182 if !HAVE_BITS_FUNCTEXCEPT
183 libfolly_la_SOURCES += detail/FunctionalExcept.cpp
184 endif
185
186 FingerprintTables.cpp: generate_fingerprint_tables
187         ./generate_fingerprint_tables
188 CLEANFILES += FingerprintTables.cpp
189
190 libfollyfingerprint_la_SOURCES = \
191         FingerprintTables.cpp
192 libfollyfingerprint_la_LIBADD = libfolly.la
193
194 libfollybenchmark_la_SOURCES = Benchmark.cpp
195 libfollybenchmark_la_LIBADD = libfolly.la
196
197 libfollytimeout_queue_la_SOURCES = TimeoutQueue.cpp
198 libfollytimeout_queue_la_LIBADD = libfolly.la
199