forked from rescrv/HyperLevelDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
273 lines (235 loc) · 10.1 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
## Copyright (c) 2013
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
##
## * Redistributions of source code must retain the above copyright notice,
## this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in the
## documentation and/or other materials provided with the distribution.
## * Neither the name of nb nor the names of its contributors may be used to
## endorse or promote products derived from this software without specific
## prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
## ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
## LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
## POSSIBILITY OF SUCH DAMAGE.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CFLAGS = -DLEVELDB_PLATFORM_POSIX $(SNAPPY_FLAGS) ${EXTRA_CFLAGS}
AM_CXXFLAGS = -DLEVELDB_PLATFORM_POSIX $(SNAPPY_FLAGS) ${EXTRA_CFLAGS}
AM_MAKEFLAGS = --no-print-directory
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libhyperleveldb.pc
EXTRA_DIST =
EXTRA_DIST += AUTHORS
EXTRA_DIST += doc/benchmark.html
EXTRA_DIST += doc/doc.css
EXTRA_DIST += doc/impl.html
EXTRA_DIST += doc/index.html
EXTRA_DIST += doc/log_format.txt
EXTRA_DIST += doc/table_format.txt
EXTRA_DIST += helpers/memenv/memenv.cc
EXTRA_DIST += helpers/memenv/memenv_test.cc
EXTRA_DIST += LICENSE
EXTRA_DIST += NEWS
EXTRA_DIST += port/README
EXTRA_DIST += README
EXTRA_DIST += TODO
nobase_include_HEADERS =
nobase_include_HEADERS += hyperleveldb/cache.h
nobase_include_HEADERS += hyperleveldb/c.h
nobase_include_HEADERS += hyperleveldb/comparator.h
nobase_include_HEADERS += hyperleveldb/db.h
nobase_include_HEADERS += hyperleveldb/env.h
nobase_include_HEADERS += hyperleveldb/filter_policy.h
nobase_include_HEADERS += hyperleveldb/iterator.h
nobase_include_HEADERS += hyperleveldb/options.h
nobase_include_HEADERS += hyperleveldb/slice.h
nobase_include_HEADERS += hyperleveldb/replay_iterator.h
nobase_include_HEADERS += hyperleveldb/status.h
nobase_include_HEADERS += hyperleveldb/table_builder.h
nobase_include_HEADERS += hyperleveldb/table.h
nobase_include_HEADERS += hyperleveldb/write_batch.h
noinst_HEADERS =
noinst_HEADERS += db/builder.h
noinst_HEADERS += db/dbformat.h
noinst_HEADERS += db/db_impl.h
noinst_HEADERS += db/db_iter.h
noinst_HEADERS += db/filename.h
noinst_HEADERS += db/log_format.h
noinst_HEADERS += db/log_reader.h
noinst_HEADERS += db/log_writer.h
noinst_HEADERS += db/memtable.h
noinst_HEADERS += db/skiplist.h
noinst_HEADERS += db/replay_iterator.h
noinst_HEADERS += db/snapshot.h
noinst_HEADERS += db/table_cache.h
noinst_HEADERS += db/version_edit.h
noinst_HEADERS += db/version_set.h
noinst_HEADERS += db/write_batch_internal.h
noinst_HEADERS += helpers/memenv/memenv.h
noinst_HEADERS += port/atomic_pointer.h
noinst_HEADERS += port/port_example.h
noinst_HEADERS += port/port.h
noinst_HEADERS += port/port_posix.h
noinst_HEADERS += port/thread_annotations.h
noinst_HEADERS += port/win/stdint.h
noinst_HEADERS += table/block_builder.h
noinst_HEADERS += table/block.h
noinst_HEADERS += table/filter_block.h
noinst_HEADERS += table/format.h
noinst_HEADERS += table/iterator_wrapper.h
noinst_HEADERS += table/merger.h
noinst_HEADERS += table/two_level_iterator.h
noinst_HEADERS += util/arena.h
noinst_HEADERS += util/coding.h
noinst_HEADERS += util/crc32c.h
noinst_HEADERS += util/hash.h
noinst_HEADERS += util/histogram.h
noinst_HEADERS += util/logging.h
noinst_HEADERS += util/mutexlock.h
noinst_HEADERS += util/posix_logger.h
noinst_HEADERS += util/random.h
noinst_HEADERS += util/testharness.h
noinst_HEADERS += util/testutil.h
lib_LTLIBRARIES = libhyperleveldb.la
libhyperleveldb_la_SOURCES =
libhyperleveldb_la_SOURCES += db/builder.cc
libhyperleveldb_la_SOURCES += db/c.cc
libhyperleveldb_la_SOURCES += db/dbformat.cc
libhyperleveldb_la_SOURCES += db/db_impl.cc
libhyperleveldb_la_SOURCES += db/db_iter.cc
libhyperleveldb_la_SOURCES += db/filename.cc
libhyperleveldb_la_SOURCES += db/log_reader.cc
libhyperleveldb_la_SOURCES += db/log_writer.cc
libhyperleveldb_la_SOURCES += db/memtable.cc
libhyperleveldb_la_SOURCES += db/repair.cc
libhyperleveldb_la_SOURCES += db/replay_iterator.cc
libhyperleveldb_la_SOURCES += db/table_cache.cc
libhyperleveldb_la_SOURCES += db/version_edit.cc
libhyperleveldb_la_SOURCES += db/version_set.cc
libhyperleveldb_la_SOURCES += db/write_batch.cc
libhyperleveldb_la_SOURCES += table/block_builder.cc
libhyperleveldb_la_SOURCES += table/block.cc
libhyperleveldb_la_SOURCES += table/filter_block.cc
libhyperleveldb_la_SOURCES += table/format.cc
libhyperleveldb_la_SOURCES += table/iterator.cc
libhyperleveldb_la_SOURCES += table/merger.cc
libhyperleveldb_la_SOURCES += table/table_builder.cc
libhyperleveldb_la_SOURCES += table/table.cc
libhyperleveldb_la_SOURCES += table/two_level_iterator.cc
libhyperleveldb_la_SOURCES += util/arena.cc
libhyperleveldb_la_SOURCES += util/bloom.cc
libhyperleveldb_la_SOURCES += util/cache.cc
libhyperleveldb_la_SOURCES += util/coding.cc
libhyperleveldb_la_SOURCES += util/comparator.cc
libhyperleveldb_la_SOURCES += util/crc32c.cc
libhyperleveldb_la_SOURCES += util/env.cc
libhyperleveldb_la_SOURCES += util/env_posix.cc
libhyperleveldb_la_SOURCES += util/filter_policy.cc
libhyperleveldb_la_SOURCES += util/hash.cc
libhyperleveldb_la_SOURCES += util/histogram.cc
libhyperleveldb_la_SOURCES += util/logging.cc
libhyperleveldb_la_SOURCES += util/options.cc
libhyperleveldb_la_SOURCES += util/status.cc
libhyperleveldb_la_SOURCES += port/port_posix.cc
libhyperleveldb_la_LIBADD = $(SNAPPY_LIBS) -lpthread
libhyperleveldb_la_LDFLAGS = -pthread
TESTUTIL = util/testutil.cc
TESTHARNESS = util/testharness.cc $(TESTUTIL)
noinst_PROGRAMS =
noinst_PROGRAMS += db_bench
noinst_PROGRAMS += leveldbutil
noinst_PROGRAMS += leveldb-verify
EXTRA_PROGRAMS =
EXTRA_PROGRAMS += benchmark
EXTRA_PROGRAMS += db_bench_sqlite3
EXTRA_PROGRAMS += db_bench_tree_db
check_PROGRAMS =
check_PROGRAMS += autocompact_test
check_PROGRAMS += arena_test
check_PROGRAMS += bloom_test
check_PROGRAMS += c_test
check_PROGRAMS += cache_test
check_PROGRAMS += coding_test
check_PROGRAMS += corruption_test
check_PROGRAMS += crc32c_test
check_PROGRAMS += db_test
check_PROGRAMS += dbformat_test
check_PROGRAMS += env_test
check_PROGRAMS += filename_test
check_PROGRAMS += filter_block_test
check_PROGRAMS += log_test
check_PROGRAMS += skiplist_test
check_PROGRAMS += table_test
check_PROGRAMS += version_edit_test
check_PROGRAMS += version_set_test
check_PROGRAMS += write_batch_test
check_PROGRAMS += issue178_test
check_PROGRAMS += issue200_test
TESTS = $(check_PROGRAMS)
benchmark_SOURCES = benchmark.cc
benchmark_LDADD = libhyperleveldb.la -lpthread -le -lpopt -larmnod -lnumbers
benchmark_LDFLAGS = -no-install
db_bench_SOURCES = db/db_bench.cc $(TESTUTIL)
db_bench_LDADD = libhyperleveldb.la -lpthread
db_bench_sqlite3_SOURCES = doc/bench/db_bench_sqlite3.cc $(TESTUTIL)
db_bench_sqlite3_LDADD = -lsqlite3
db_bench_tree_db_SOURCES = doc/bench/db_bench_tree_db.cc $(TESTUTIL)
db_bench_tree_db_LDADD = -lkyotocabinet
leveldbutil_SOURCES = db/leveldb_main.cc
leveldbutil_LDADD = libhyperleveldb.la -lpthread
leveldb_verify_SOURCES = leveldb-verify.cc
leveldb_verify_LDADD = libhyperleveldb.la -lpthread
autocompact_test_SOURCES = db/autocompact_test.cc $(TESTHARNESS)
autocompact_test_LDADD = libhyperleveldb.la -lpthread
arena_test_SOURCES = util/arena_test.cc $(TESTHARNESS)
arena_test_LDADD = libhyperleveldb.la -lpthread
bloom_test_SOURCES = util/bloom_test.cc $(TESTHARNESS)
bloom_test_LDADD = libhyperleveldb.la -lpthread
c_test_SOURCES = db/c_test.c $(TESTHARNESS)
c_test_LDADD = libhyperleveldb.la -lpthread
cache_test_SOURCES = util/cache_test.cc $(TESTHARNESS)
cache_test_LDADD = libhyperleveldb.la -lpthread
coding_test_SOURCES = util/coding_test.cc $(TESTHARNESS)
coding_test_LDADD = libhyperleveldb.la -lpthread
corruption_test_SOURCES = db/corruption_test.cc $(TESTHARNESS)
corruption_test_LDADD = libhyperleveldb.la -lpthread
crc32c_test_SOURCES = util/crc32c_test.cc $(TESTHARNESS)
crc32c_test_LDADD = libhyperleveldb.la -lpthread
db_test_SOURCES = db/db_test.cc $(TESTHARNESS)
db_test_LDADD = libhyperleveldb.la -lpthread
dbformat_test_SOURCES = db/dbformat_test.cc $(TESTHARNESS)
dbformat_test_LDADD = libhyperleveldb.la -lpthread
env_test_SOURCES = util/env_test.cc $(TESTHARNESS)
env_test_LDADD = libhyperleveldb.la -lpthread
filename_test_SOURCES = db/filename_test.cc $(TESTHARNESS)
filename_test_LDADD = libhyperleveldb.la -lpthread
filter_block_test_SOURCES = table/filter_block_test.cc $(TESTHARNESS)
filter_block_test_LDADD = libhyperleveldb.la -lpthread
log_test_SOURCES = db/log_test.cc $(TESTHARNESS)
log_test_LDADD = libhyperleveldb.la -lpthread
table_test_SOURCES = table/table_test.cc $(TESTHARNESS)
table_test_LDADD = libhyperleveldb.la -lpthread
skiplist_test_SOURCES = db/skiplist_test.cc $(TESTHARNESS)
skiplist_test_LDADD = libhyperleveldb.la -lpthread
version_edit_test_SOURCES = db/version_edit_test.cc $(TESTHARNESS)
version_edit_test_LDADD = libhyperleveldb.la -lpthread
version_set_test_SOURCES = db/version_set_test.cc $(TESTHARNESS)
version_set_test_LDADD = libhyperleveldb.la -lpthread
write_batch_test_SOURCES = db/write_batch_test.cc $(TESTHARNESS)
write_batch_test_LDADD = libhyperleveldb.la -lpthread
issue178_test_SOURCES = issues/issue178_test.cc $(TESTHARNESS)
issue178_test_LDADD = libhyperleveldb.la -lpthread
issue200_test_SOURCES = issues/issue200_test.cc $(TESTHARNESS)
issue200_test_LDADD = libhyperleveldb.la -lpthread