|
| 1 | +LIBLEVELDB_INT = leveldb/libleveldb.a |
| 2 | +LIBMEMENV_INT = leveldb/libmemenv.a |
| 3 | + |
| 4 | +EXTRA_LIBRARIES += $(LIBLEVELDB_INT) |
| 5 | +EXTRA_LIBRARIES += $(LIBMEMENV_INT) |
| 6 | + |
| 7 | +LIBLEVELDB += $(LIBLEVELDB_INT) |
| 8 | +LIBMEMENV += $(LIBMEMENV_INT) |
| 9 | + |
| 10 | +LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/include |
| 11 | +LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/helpers/memenv |
| 12 | + |
| 13 | +LEVELDB_CPPFLAGS_INT = |
| 14 | +LEVELDB_CPPFLAGS_INT += -I$(srcdir)/leveldb |
| 15 | +LEVELDB_CPPFLAGS_INT += $(LEVELDB_TARGET_FLAGS) |
| 16 | +LEVELDB_CPPFLAGS_INT += $(LEVELDB_ATOMIC_CPPFLAGS) |
| 17 | +LEVELDB_CPPFLAGS_INT += -D__STDC_LIMIT_MACROS |
| 18 | + |
| 19 | +if TARGET_WINDOWS |
| 20 | +LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_WINDOWS -DWINVER=0x0500 -D__USE_MINGW_ANSI_STDIO=1 |
| 21 | +else |
| 22 | +LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_POSIX |
| 23 | +endif |
| 24 | + |
| 25 | +LEVELDB_CXXFLAGS_INT = |
| 26 | +LEVELDB_CXXFLAGS_INT += $(LEVELDB_ATOMIC_CXXFLAGS) |
| 27 | + |
| 28 | +leveldb_libleveldb_a_CPPFLAGS = $(AM_CPPFLAGS) $(LEVELDB_CPPFLAGS_INT) $(LEVELDB_CPPFLAGS) |
| 29 | +leveldb_libleveldb_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) $(LEVELDB_CXXFLAGS_INT) |
| 30 | + |
| 31 | +leveldb_libleveldb_a_SOURCES= |
| 32 | +leveldb_libleveldb_a_SOURCES += leveldb/db/builder.cc |
| 33 | +leveldb_libleveldb_a_SOURCES += leveldb/db/c.cc |
| 34 | +leveldb_libleveldb_a_SOURCES += leveldb/db/dbformat.cc |
| 35 | +leveldb_libleveldb_a_SOURCES += leveldb/db/db_impl.cc |
| 36 | +leveldb_libleveldb_a_SOURCES += leveldb/db/db_iter.cc |
| 37 | +leveldb_libleveldb_a_SOURCES += leveldb/db/dumpfile.cc |
| 38 | +leveldb_libleveldb_a_SOURCES += leveldb/db/filename.cc |
| 39 | +leveldb_libleveldb_a_SOURCES += leveldb/db/log_reader.cc |
| 40 | +leveldb_libleveldb_a_SOURCES += leveldb/db/log_writer.cc |
| 41 | +leveldb_libleveldb_a_SOURCES += leveldb/db/memtable.cc |
| 42 | +leveldb_libleveldb_a_SOURCES += leveldb/db/repair.cc |
| 43 | +leveldb_libleveldb_a_SOURCES += leveldb/db/table_cache.cc |
| 44 | +leveldb_libleveldb_a_SOURCES += leveldb/db/version_edit.cc |
| 45 | +leveldb_libleveldb_a_SOURCES += leveldb/db/version_set.cc |
| 46 | +leveldb_libleveldb_a_SOURCES += leveldb/db/write_batch.cc |
| 47 | +leveldb_libleveldb_a_SOURCES += leveldb/table/block_builder.cc |
| 48 | +leveldb_libleveldb_a_SOURCES += leveldb/table/block.cc |
| 49 | +leveldb_libleveldb_a_SOURCES += leveldb/table/filter_block.cc |
| 50 | +leveldb_libleveldb_a_SOURCES += leveldb/table/format.cc |
| 51 | +leveldb_libleveldb_a_SOURCES += leveldb/table/iterator.cc |
| 52 | +leveldb_libleveldb_a_SOURCES += leveldb/table/merger.cc |
| 53 | +leveldb_libleveldb_a_SOURCES += leveldb/table/table_builder.cc |
| 54 | +leveldb_libleveldb_a_SOURCES += leveldb/table/table.cc |
| 55 | +leveldb_libleveldb_a_SOURCES += leveldb/table/two_level_iterator.cc |
| 56 | +leveldb_libleveldb_a_SOURCES += leveldb/util/arena.cc |
| 57 | +leveldb_libleveldb_a_SOURCES += leveldb/util/bloom.cc |
| 58 | +leveldb_libleveldb_a_SOURCES += leveldb/util/cache.cc |
| 59 | +leveldb_libleveldb_a_SOURCES += leveldb/util/coding.cc |
| 60 | +leveldb_libleveldb_a_SOURCES += leveldb/util/comparator.cc |
| 61 | +leveldb_libleveldb_a_SOURCES += leveldb/util/crc32c.cc |
| 62 | +leveldb_libleveldb_a_SOURCES += leveldb/util/env.cc |
| 63 | +leveldb_libleveldb_a_SOURCES += leveldb/util/env_posix.cc |
| 64 | +leveldb_libleveldb_a_SOURCES += leveldb/util/env_win.cc |
| 65 | +leveldb_libleveldb_a_SOURCES += leveldb/util/filter_policy.cc |
| 66 | +leveldb_libleveldb_a_SOURCES += leveldb/util/hash.cc |
| 67 | +leveldb_libleveldb_a_SOURCES += leveldb/util/histogram.cc |
| 68 | +leveldb_libleveldb_a_SOURCES += leveldb/util/logging.cc |
| 69 | +leveldb_libleveldb_a_SOURCES += leveldb/util/options.cc |
| 70 | +leveldb_libleveldb_a_SOURCES += leveldb/util/status.cc |
| 71 | + |
| 72 | +if TARGET_WINDOWS |
| 73 | +leveldb_libleveldb_a_SOURCES += leveldb/util/env_win.cc |
| 74 | +leveldb_libleveldb_a_SOURCES += leveldb/port/port_win.cc |
| 75 | +else |
| 76 | +leveldb_libleveldb_a_SOURCES += leveldb/port/port_posix.cc |
| 77 | +endif |
| 78 | + |
| 79 | +leveldb_libmemenv_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS) |
| 80 | +leveldb_libmemenv_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS) |
| 81 | +leveldb_libmemenv_a_SOURCES = leveldb/helpers/memenv/memenv.cc |
0 commit comments