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