Merge #12075: [scripts] Add missing univalue file to copyright_header.py
[bitcoinplatinum.git] / src / Makefile.leveldb.include
blob833f3d2a10cac9465c72045bc244e3efc76156c8
1 # Copyright (c) 2016 The Bitcoin Core developers
2 # Distributed under the MIT software license, see the accompanying
3 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 LIBLEVELDB_INT = leveldb/libleveldb.a
6 LIBMEMENV_INT  = leveldb/libmemenv.a
7 LIBLEVELDB_SSE42_INT  = leveldb/libleveldb_sse42.a
9 EXTRA_LIBRARIES += $(LIBLEVELDB_INT)
10 EXTRA_LIBRARIES += $(LIBMEMENV_INT)
11 EXTRA_LIBRARIES += $(LIBLEVELDB_SSE42_INT)
13 LIBLEVELDB += $(LIBLEVELDB_INT)
14 LIBMEMENV += $(LIBMEMENV_INT)
15 LIBLEVELDB_SSE42 = $(LIBLEVELDB_SSE42_INT)
17 LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/include
18 LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/helpers/memenv
20 LEVELDB_CPPFLAGS_INT =
21 LEVELDB_CPPFLAGS_INT += -I$(srcdir)/leveldb
22 LEVELDB_CPPFLAGS_INT += $(LEVELDB_TARGET_FLAGS)
23 LEVELDB_CPPFLAGS_INT += -DLEVELDB_ATOMIC_PRESENT
24 LEVELDB_CPPFLAGS_INT += -D__STDC_LIMIT_MACROS
26 if TARGET_WINDOWS
27 LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_WINDOWS -DWINVER=0x0500 -D__USE_MINGW_ANSI_STDIO=1
28 else
29 LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_POSIX
30 endif
32 leveldb_libleveldb_a_CPPFLAGS = $(AM_CPPFLAGS) $(LEVELDB_CPPFLAGS_INT) $(LEVELDB_CPPFLAGS)
33 leveldb_libleveldb_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
35 leveldb_libleveldb_a_SOURCES=
36 leveldb_libleveldb_a_SOURCES += leveldb/port/atomic_pointer.h
37 leveldb_libleveldb_a_SOURCES += leveldb/port/port_example.h
38 leveldb_libleveldb_a_SOURCES += leveldb/port/port_posix.h
39 leveldb_libleveldb_a_SOURCES += leveldb/port/win/stdint.h
40 leveldb_libleveldb_a_SOURCES += leveldb/port/port.h
41 leveldb_libleveldb_a_SOURCES += leveldb/port/port_win.h
42 leveldb_libleveldb_a_SOURCES += leveldb/port/thread_annotations.h
43 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/db.h
44 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/options.h
45 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/comparator.h
46 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/filter_policy.h
47 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/slice.h
48 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/table_builder.h
49 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/env.h
50 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/c.h
51 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/iterator.h
52 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/cache.h
53 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/dumpfile.h
54 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/table.h
55 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/write_batch.h
56 leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/status.h
57 leveldb_libleveldb_a_SOURCES += leveldb/db/log_format.h
58 leveldb_libleveldb_a_SOURCES += leveldb/db/memtable.h
59 leveldb_libleveldb_a_SOURCES += leveldb/db/version_set.h
60 leveldb_libleveldb_a_SOURCES += leveldb/db/write_batch_internal.h
61 leveldb_libleveldb_a_SOURCES += leveldb/db/filename.h
62 leveldb_libleveldb_a_SOURCES += leveldb/db/version_edit.h
63 leveldb_libleveldb_a_SOURCES += leveldb/db/dbformat.h
64 leveldb_libleveldb_a_SOURCES += leveldb/db/builder.h
65 leveldb_libleveldb_a_SOURCES += leveldb/db/log_writer.h
66 leveldb_libleveldb_a_SOURCES += leveldb/db/db_iter.h
67 leveldb_libleveldb_a_SOURCES += leveldb/db/skiplist.h
68 leveldb_libleveldb_a_SOURCES += leveldb/db/db_impl.h
69 leveldb_libleveldb_a_SOURCES += leveldb/db/table_cache.h
70 leveldb_libleveldb_a_SOURCES += leveldb/db/snapshot.h
71 leveldb_libleveldb_a_SOURCES += leveldb/db/log_reader.h
72 leveldb_libleveldb_a_SOURCES += leveldb/table/filter_block.h
73 leveldb_libleveldb_a_SOURCES += leveldb/table/block_builder.h
74 leveldb_libleveldb_a_SOURCES += leveldb/table/block.h
75 leveldb_libleveldb_a_SOURCES += leveldb/table/two_level_iterator.h
76 leveldb_libleveldb_a_SOURCES += leveldb/table/merger.h
77 leveldb_libleveldb_a_SOURCES += leveldb/table/format.h
78 leveldb_libleveldb_a_SOURCES += leveldb/table/iterator_wrapper.h
79 leveldb_libleveldb_a_SOURCES += leveldb/util/crc32c.h
80 leveldb_libleveldb_a_SOURCES += leveldb/util/env_posix_test_helper.h
81 leveldb_libleveldb_a_SOURCES += leveldb/util/arena.h
82 leveldb_libleveldb_a_SOURCES += leveldb/util/random.h
83 leveldb_libleveldb_a_SOURCES += leveldb/util/posix_logger.h
84 leveldb_libleveldb_a_SOURCES += leveldb/util/hash.h
85 leveldb_libleveldb_a_SOURCES += leveldb/util/histogram.h
86 leveldb_libleveldb_a_SOURCES += leveldb/util/coding.h
87 leveldb_libleveldb_a_SOURCES += leveldb/util/testutil.h
88 leveldb_libleveldb_a_SOURCES += leveldb/util/mutexlock.h
89 leveldb_libleveldb_a_SOURCES += leveldb/util/logging.h
90 leveldb_libleveldb_a_SOURCES += leveldb/util/testharness.h
92 leveldb_libleveldb_a_SOURCES += leveldb/db/builder.cc
93 leveldb_libleveldb_a_SOURCES += leveldb/db/c.cc
94 leveldb_libleveldb_a_SOURCES += leveldb/db/dbformat.cc
95 leveldb_libleveldb_a_SOURCES += leveldb/db/db_impl.cc
96 leveldb_libleveldb_a_SOURCES += leveldb/db/db_iter.cc
97 leveldb_libleveldb_a_SOURCES += leveldb/db/dumpfile.cc
98 leveldb_libleveldb_a_SOURCES += leveldb/db/filename.cc
99 leveldb_libleveldb_a_SOURCES += leveldb/db/log_reader.cc
100 leveldb_libleveldb_a_SOURCES += leveldb/db/log_writer.cc
101 leveldb_libleveldb_a_SOURCES += leveldb/db/memtable.cc
102 leveldb_libleveldb_a_SOURCES += leveldb/db/repair.cc
103 leveldb_libleveldb_a_SOURCES += leveldb/db/table_cache.cc
104 leveldb_libleveldb_a_SOURCES += leveldb/db/version_edit.cc
105 leveldb_libleveldb_a_SOURCES += leveldb/db/version_set.cc
106 leveldb_libleveldb_a_SOURCES += leveldb/db/write_batch.cc
107 leveldb_libleveldb_a_SOURCES += leveldb/table/block_builder.cc
108 leveldb_libleveldb_a_SOURCES += leveldb/table/block.cc
109 leveldb_libleveldb_a_SOURCES += leveldb/table/filter_block.cc
110 leveldb_libleveldb_a_SOURCES += leveldb/table/format.cc
111 leveldb_libleveldb_a_SOURCES += leveldb/table/iterator.cc
112 leveldb_libleveldb_a_SOURCES += leveldb/table/merger.cc
113 leveldb_libleveldb_a_SOURCES += leveldb/table/table_builder.cc
114 leveldb_libleveldb_a_SOURCES += leveldb/table/table.cc
115 leveldb_libleveldb_a_SOURCES += leveldb/table/two_level_iterator.cc
116 leveldb_libleveldb_a_SOURCES += leveldb/util/arena.cc
117 leveldb_libleveldb_a_SOURCES += leveldb/util/bloom.cc
118 leveldb_libleveldb_a_SOURCES += leveldb/util/cache.cc
119 leveldb_libleveldb_a_SOURCES += leveldb/util/coding.cc
120 leveldb_libleveldb_a_SOURCES += leveldb/util/comparator.cc
121 leveldb_libleveldb_a_SOURCES += leveldb/util/crc32c.cc
122 leveldb_libleveldb_a_SOURCES += leveldb/util/env.cc
123 leveldb_libleveldb_a_SOURCES += leveldb/util/env_posix.cc
124 leveldb_libleveldb_a_SOURCES += leveldb/util/filter_policy.cc
125 leveldb_libleveldb_a_SOURCES += leveldb/util/hash.cc
126 leveldb_libleveldb_a_SOURCES += leveldb/util/histogram.cc
127 leveldb_libleveldb_a_SOURCES += leveldb/util/logging.cc
128 leveldb_libleveldb_a_SOURCES += leveldb/util/options.cc
129 leveldb_libleveldb_a_SOURCES += leveldb/util/status.cc
131 if TARGET_WINDOWS
132 leveldb_libleveldb_a_SOURCES += leveldb/util/env_win.cc
133 leveldb_libleveldb_a_SOURCES += leveldb/port/port_win.cc
134 else
135 leveldb_libleveldb_a_SOURCES += leveldb/port/port_posix.cc
136 endif
138 leveldb_libmemenv_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS)
139 leveldb_libmemenv_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS)
140 leveldb_libmemenv_a_SOURCES =  leveldb/helpers/memenv/memenv.cc
141 leveldb_libmemenv_a_SOURCES += leveldb/helpers/memenv/memenv.h
143 leveldb_libleveldb_sse42_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS)
144 leveldb_libleveldb_sse42_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS)
145 if ENABLE_HWCRC32
146 leveldb_libleveldb_sse42_a_CPPFLAGS += -DLEVELDB_PLATFORM_POSIX_SSE
147 leveldb_libleveldb_sse42_a_CXXFLAGS += $(SSE42_CXXFLAGS)
148 endif
149 leveldb_libleveldb_sse42_a_SOURCES =  leveldb/port/port_posix_sse.cc