Move and refactor code
[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         Arena.h \
19         Arena-inl.h \
20         AtomicHashArray.h \
21         AtomicHashArray-inl.h \
22         AtomicHashMap.h \
23         AtomicHashMap-inl.h \
24         Benchmark.h \
25         Bits.h \
26         ConcurrentSkipList.h \
27         ConcurrentSkipList-inl.h \
28         Conv.h \
29         detail/AtomicHashUtils.h \
30         detail/BitIteratorDetail.h \
31         detail/DiscriminatedPtrDetail.h \
32         detail/FingerprintPolynomial.h \
33         detail/GroupVarintDetail.h \
34         detail/SlowFingerprint.h \
35         detail/ThreadLocalDetail.h \
36         DiscriminatedPtr.h \
37         dynamic.h \
38         dynamic-inl.h \
39         eventfd.h \
40         FBString.h \
41         FBVector.h \
42         Fingerprint.h \
43         folly-config.h \
44         Foreach.h \
45         FormatArg.h \
46         Format.h \
47         Format-inl.h \
48         GroupVarint.h \
49         Hash.h \
50         Histogram.h \
51         Histogram-inl.h \
52         IntrusiveList.h \
53         json.h \
54         Likely.h \
55         Logging.h \
56         Malloc.h \
57         MapUtil.h \
58         PackedSyncPtr.h \
59         Portability.h \
60         Preprocessor.h \
61         ProducerConsumerQueue.h \
62         Random.h \
63         Range.h \
64         RWSpinLock.h \
65         ScopeGuard.h \
66         SmallLocks.h \
67         small_vector.h \
68         sorted_vector_types.h \
69         StlAllocator.h \
70         String.h \
71         String-inl.h \
72         Synchronized.h \
73         test/FBStringTestBenchmarks.cpp.h \
74         test/FBVectorTestBenchmarks.cpp.h \
75         test/function_benchmark/benchmark_impl.h \
76         test/function_benchmark/test_functions.h \
77         test/SynchronizedTestLib.h \
78         test/SynchronizedTestLib-inl.h \
79         ThreadCachedArena.h \
80         ThreadCachedInt.h \
81         ThreadLocal.h \
82         TimeoutQueue.h \
83         Traits.h \
84         Unicode.h
85
86 FormatTables.cpp: build/generate_format_tables.py
87         build/generate_format_tables.py
88
89 EscapeTables.cpp: build/generate_escape_tables.py
90         build/generate_escape_tables.py
91
92 GroupVarintTables.cpp: build/generate_varint_tables.py
93         build/generate_varint_tables.py
94
95 libfolly_la_SOURCES = \
96         Random.cpp \
97         Range.cpp \
98         Unicode.cpp \
99         Conv.cpp \
100         json.cpp \
101         dynamic.cpp \
102         GroupVarint.cpp \
103         GroupVarintTables.cpp \
104         EscapeTables.cpp \
105         ThreadCachedArena.cpp \
106         Format.cpp \
107         FormatTables.cpp \
108         String.cpp
109
110 libfolly_la_LIBADD = $(BOOST_THREAD_LIBS) -lpthread
111
112 FingerprintTables.cpp: generate_fingerprint_tables
113         ./generate_fingerprint_tables
114
115 libfollyfingerprint_la_SOURCES = \
116         FingerprintTables.cpp
117
118 libfollybenchmark_la_SOURCES = Benchmark.cpp
119 libfollybenchmark_la_LIBADD = -lboost_regex -lpthread -lrt
120
121 libfollytimeout_queue_la_SOURCES = TimeoutQueue.cpp