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