From 0dd52751bf81cecb4385b676b21bb4e4549948e4 Mon Sep 17 00:00:00 2001 From: Dmitry Orlov Date: Wed, 18 Aug 2021 23:40:01 +0300 Subject: [PATCH] add makefile --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e6d9cf1 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +all: src/rocksdb/librocksdb.a + +JOBS=8 + +src/rocksdb/librocksdb.a: + make \ + -e EXTRA_CXXFLAGS="-fPIC" \ + -e EXTRA_CFLAGS="-fPIC" \ + -C src/rocksdb \ + -j $(JOBS) \ + libsnappy.a \ + liblz4.a \ + libbz2.a \ + libzstd.a \ + libz.a + + make \ + -j $(JOBS) \ + -e DEBUG_LEVEL=0 \ + -e EXTRA_CXXFLAGS="-fPIC" \ + -e EXTRA_CFLAGS="-fPIC" \ + -e WITH_SNAPPY=1 \ + -e WITH_LZ4=1 \ + -e WITH_ZLIB=1 \ + -e WITH_ZSTD=1 \ + -C src/rocksdb \ + static_lib + +clean: + make -C src/rocksdb clean