summaryrefslogtreecommitdiff
path: root/api/leveldb/Makefile.am
blob: c1aa5916802e58c1767458fea26a45014421fa81 (plain)
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
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/api/leveldb/include

lib_LTLIBRARIES = libwiredtiger_leveldb.la
LDADD = $(lib_LTLIBRARIES) $(top_builddir)/libwiredtiger.la

noinst_PROGRAMS = leveldb_test

# Setup the LevelDB headers to be installed in a wiredtiger/leveldb
# subdirectory, so we don't interfere with other LevelDB installs.
if HAVE_HYPERLEVELDB
leveldbincludedir = $(includedir)/wiredtiger/hyperleveldb
else
if HAVE_ROCKSDB
leveldbincludedir = $(includedir)/wiredtiger/rocksdb
else
leveldbincludedir = $(includedir)/wiredtiger/leveldb
endif
endif
leveldbinclude_HEADERS = \
	wiredtiger_config.h \
	include/leveldb/cache.h \
	include/leveldb/comparator.h\
	include/leveldb/db.h \
	include/leveldb/env.h \
	include/leveldb/filter_policy.h \
	include/leveldb/iterator.h \
	include/leveldb/options.h \
	include/leveldb/slice.h \
	include/leveldb/status.h \
	include/leveldb/write_batch.h

if HAVE_ELEVELDB
leveldbinclude_HEADERS += \
	 include/leveldb/perf_count.h
endif
if HAVE_HYPERLEVELDB
leveldbinclude_HEADERS += \
	 include/leveldb/replay_iterator.h
endif

libwiredtiger_leveldb_la_LDFLAGS = -release @VERSION@
libwiredtiger_leveldb_la_SOURCES = \
	leveldb_wt.cc \
	db/write_batch.cc \
	util/coding.cc util/comparator.cc util/env.cc util/env_posix.cc \
	util/logging.cc util/options.cc util/status.cc

if HAVE_ELEVELDB
libwiredtiger_leveldb_la_SOURCES += util/perf_count.cc
endif
if HAVE_ROCKSDB
libwiredtiger_leveldb_la_SOURCES += rocks_wt.cc
endif


leveldb_test_SOURCES = leveldb_test.cc
#leveldb_test_LDADD = $(top_builddir)/libwiredtiger.la

TESTS = $(noinst_PROGRAMS)