add makefile
This commit is contained in:
parent
9181044e78
commit
0dd52751bf
1 changed files with 30 additions and 0 deletions
30
Makefile
Normal file
30
Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue