a211ade3f9109d99482d339c056b3988ecd6b4fb
[folly.git] / folly / Makefile.am
1 SUBDIRS = . test
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 noinst_PROGRAMS = generate_fingerprint_tables
6 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
7 generate_fingerprint_tables_LDADD = libfolly.la
8
9 lib_LTLIBRARIES = \
10         libfolly.la \
11         libfollybenchmark.la \
12         libfollytimeout_queue.la \
13         libfollyfingerprint.la
14
15 follyincludedir = $(includedir)/folly
16
17 nobase_follyinclude_HEADERS = \
18         ApplyTuple.h \
19         Arena.h \
20         Arena-inl.h \
21         AtomicBitSet.h \
22         AtomicHashArray.h \
23         AtomicHashArray-inl.h \
24         AtomicHashMap.h \
25         AtomicHashMap-inl.h \
26         Benchmark.h \
27         Bits.h \
28         Chrono.h \
29         ConcurrentSkipList.h \
30         ConcurrentSkipList-inl.h \
31         Conv.h \
32         CpuId.h \
33         CPortability.h \
34         detail/AtomicHashUtils.h \
35         detail/BitIteratorDetail.h \
36         detail/BitsDetail.h \
37         detail/DiscriminatedPtrDetail.h \
38         detail/FileUtilDetail.h \
39         detail/FingerprintPolynomial.h \
40         detail/Futex.h \
41         detail/GroupVarintDetail.h \
42         detail/Malloc.h \
43         detail/MPMCPipelineDetail.h \
44         detail/SlowFingerprint.h \
45         detail/Stats.h \
46         detail/ThreadLocalDetail.h \
47         DiscriminatedPtr.h \
48         DynamicConverter.h \
49         dynamic.h \
50         dynamic-inl.h \
51         FBString.h \
52         FBVector.h \
53         File.h \
54         FileUtil.h \
55         Fingerprint.h \
56         folly-config.h \
57         Foreach.h \
58         FormatArg.h \
59         Format.h \
60         Format-inl.h \
61         GroupVarint.h \
62         Hash.h \
63         IntrusiveList.h \
64         io/Cursor.h \
65         io/IOBuf.h \
66         io/IOBufQueue.h \
67         io/RecordIO.h \
68         io/RecordIO-inl.h \
69         io/TypedIOBuf.h \
70         json.h \
71         Lazy.h \
72         Likely.h \
73         Logging.h \
74         Malloc.h \
75         MapUtil.h \
76         Memory.h \
77         MemoryMapping.h \
78         MoveWrapper.h \
79         MPMCPipeline.h \
80         MPMCQueue.h \
81         Optional.h \
82         PackedSyncPtr.h \
83         Padded.h \
84         Portability.h \
85         Preprocessor.h \
86         ProducerConsumerQueue.h \
87         Random.h \
88         Range.h \
89         RWSpinLock.h \
90         ScopeGuard.h \
91         SmallLocks.h \
92         small_vector.h \
93         sorted_vector_types.h \
94         SpookyHashV1.h \
95         SpookyHashV2.h \
96         stats/BucketedTimeSeries-defs.h \
97         stats/BucketedTimeSeries.h \
98         stats/Histogram-defs.h \
99         stats/Histogram.h \
100         stats/MultiLevelTimeSeries-defs.h \
101         stats/MultiLevelTimeSeries.h \
102         String.h \
103         String-inl.h \
104         Subprocess.h \
105         Synchronized.h \
106         test/FBStringTestBenchmarks.cpp.h \
107         test/FBVectorTestBenchmarks.cpp.h \
108         test/function_benchmark/benchmark_impl.h \
109         test/function_benchmark/test_functions.h \
110         test/SynchronizedTestLib.h \
111         test/SynchronizedTestLib-inl.h \
112         ThreadCachedArena.h \
113         ThreadCachedInt.h \
114         ThreadLocal.h \
115         TimeoutQueue.h \
116         Traits.h \
117         Unicode.h \
118         Uri.h \
119         Uri-inl.h \
120         Varint.h
121
122 FormatTables.cpp: build/generate_format_tables.py
123         build/generate_format_tables.py
124
125 EscapeTables.cpp: build/generate_escape_tables.py
126         build/generate_escape_tables.py
127
128 GroupVarintTables.cpp: build/generate_varint_tables.py
129         build/generate_varint_tables.py
130
131 libfolly_la_SOURCES = \
132         Benchmark.cpp \
133         Bits.cpp \
134         Conv.cpp \
135         dynamic.cpp \
136         EscapeTables.cpp \
137         File.cpp \
138         FileUtil.cpp \
139         Format.cpp \
140         FormatTables.cpp \
141         GroupVarint.cpp \
142         GroupVarintTables.cpp \
143         io/IOBuf.cpp \
144         io/IOBufQueue.cpp \
145         io/RecordIO.cpp \
146         json.cpp \
147         MemoryMapping.cpp \
148         Random.cpp \
149         Range.cpp \
150         SpookyHashV1.cpp \
151         SpookyHashV2.cpp \
152         stats/Instantiations.cpp \
153         String.cpp \
154         Subprocess.cpp \
155         ThreadCachedArena.cpp \
156         TimeoutQueue.cpp \
157         Unicode.cpp \
158         Uri.cpp
159
160 if !HAVE_LINUX
161 nobase_follyinclude_HEADERS += detail/Clock.h
162 libfolly_la_SOURCES += detail/Clock.cpp
163 endif
164
165 if !HAVE_WEAK_SYMBOLS
166 libfolly_la_SOURCES += detail/Malloc.cpp
167 endif
168
169 FingerprintTables.cpp: generate_fingerprint_tables
170         ./generate_fingerprint_tables
171
172 libfollyfingerprint_la_SOURCES = \
173         FingerprintTables.cpp
174 libfollyfingerprint_la_LIBADD = libfolly.la
175
176 libfollybenchmark_la_SOURCES = Benchmark.cpp
177 libfollybenchmark_la_LIBADD = libfolly.la
178
179 libfollytimeout_queue_la_SOURCES = TimeoutQueue.cpp
180 libfollytimeout_queue_la_LIBADD = libfolly.la
181