use cmake instead of make
This commit is contained in:
parent
17c7fa0a56
commit
96fa51e963
1 changed files with 25 additions and 11 deletions
36
Makefile
36
Makefile
|
@ -14,17 +14,31 @@ src/rocksdb/librocksdb.a:
|
||||||
libzstd.a \
|
libzstd.a \
|
||||||
libz.a
|
libz.a
|
||||||
|
|
||||||
make \
|
(cd src/rocksdb && mkdir -p build && cd build && cmake \
|
||||||
-j $(JOBS) \
|
-DWITH_SNAPPY=1 \
|
||||||
-e DEBUG_LEVEL=0 \
|
-DWITH_LZ4=1 \
|
||||||
-e EXTRA_CXXFLAGS="-fPIC" \
|
-DWITH_ZLIB=1 \
|
||||||
-e EXTRA_CFLAGS="-fPIC" \
|
-DWITH_ZSTD=1 \
|
||||||
-e WITH_SNAPPY=1 \
|
-DWITH_GFLAGS=0 \
|
||||||
-e WITH_LZ4=1 \
|
-DROCKSDB_BUILD_SHARED=0 \
|
||||||
-e WITH_ZLIB=1 \
|
-DWITH_TOOLS=0 \
|
||||||
-e WITH_ZSTD=1 \
|
-DWITH_BENCHMARK_TOOLS=0 \
|
||||||
-C src/rocksdb \
|
-DWITH_CORE_TOOLS=0 \
|
||||||
static_lib
|
-DWITH_JEMALLOC=0 \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DSnappy_INCLUDE_DIRS=../snappy-1.1.8/ \
|
||||||
|
-DSnappy_LIBRARIES=../snappy-1.1.8/build \
|
||||||
|
-Dlz4_INCLUDE_DIRS=../lz4-1.9.3/lib \
|
||||||
|
-Dlz4_LIBRARIES=../lz4-1.9.3/lib \
|
||||||
|
-Dzstd_INCLUDE_DIRS=../zstd-1.4.9/lib \
|
||||||
|
-Dzstd_LIBRARIES=../zstd-1.4.9/lib \
|
||||||
|
-DZLIB_INCLUDE_DIR=../zlib-1.2.11 \
|
||||||
|
-DZLIB_LIBRARY=./zlib-1.2.11 \
|
||||||
|
-DCMAKE_CXX_FLAGS="-fPIC -I../snappy-1.1.8/build -I../zstd-1.4.9/lib/dictBuilder" \
|
||||||
|
.. && make -j $(JOBS))
|
||||||
|
|
||||||
|
cp src/rocksdb/build/librocksdb.a src/rocksdb/librocksdb.a
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
rm -rf src/rocksdb/build
|
||||||
make -C src/rocksdb clean
|
make -C src/rocksdb clean
|
||||||
|
|
Loading…
Reference in a new issue