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