Fix build and test.
[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         Malloc.h \
56         MapUtil.h \
57         PackedSyncPtr.h \
58         Portability.h \
59         Preprocessor.h \
60         ProducerConsumerQueue.h \
61         Random.h \
62         Range.h \
63         RWSpinLock.h \
64         ScopeGuard.h \
65         SmallLocks.h \
66         small_vector.h \
67         sorted_vector_types.h \
68         StlAllocator.h \
69         String.h \
70         String-inl.h \
71         Synchronized.h \
72         test/FBStringTestBenchmarks.cpp.h \
73         test/FBVectorTestBenchmarks.cpp.h \
74         test/function_benchmark/benchmark_impl.h \
75         test/function_benchmark/test_functions.h \
76         test/SynchronizedTestLib.h \
77         test/SynchronizedTestLib-inl.h \
78         ThreadCachedArena.h \
79         ThreadCachedInt.h \
80         ThreadLocal.h \
81         TimeoutQueue.h \
82         Traits.h \
83         Unicode.h
84
85 FormatTables.cpp: build/generate_format_tables.py
86         build/generate_format_tables.py
87
88 EscapeTables.cpp: build/generate_escape_tables.py
89         build/generate_escape_tables.py
90
91 GroupVarintTables.cpp: build/generate_varint_tables.py
92         build/generate_varint_tables.py
93
94 libfolly_la_SOURCES = \
95         Random.cpp \
96         Range.cpp \
97         Unicode.cpp \
98         Conv.cpp \
99         json.cpp \
100         dynamic.cpp \
101         GroupVarint.cpp \
102         GroupVarintTables.cpp \
103         EscapeTables.cpp \
104         ThreadCachedArena.cpp \
105         Format.cpp \
106         FormatTables.cpp \
107         String.cpp
108
109 libfolly_la_LIBADD = $(BOOST_THREAD_LIBS) -lpthread
110
111 FingerprintTables.cpp: generate_fingerprint_tables
112         ./generate_fingerprint_tables
113
114 libfollyfingerprint_la_SOURCES = \
115         FingerprintTables.cpp
116
117 libfollybenchmark_la_SOURCES = Benchmark.cpp
118 libfollybenchmark_la_LIBADD = -lboost_regex -lpthread -lrt
119
120 libfollytimeout_queue_la_SOURCES = TimeoutQueue.cpp