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