@ -21,85 +21,63 @@ LIBGCC_LIBS=" -L $LIBGCC_BASE/lib"
GLIBC_INCLUDE = " $GLIBC_BASE /include "
GLIBC_INCLUDE = " $GLIBC_BASE /include "
GLIBC_LIBS = " -L $GLIBC_BASE /lib "
GLIBC_LIBS = " -L $GLIBC_BASE /lib "
# snappy
SNAPPY_INCLUDE = " -I $SNAPPY_BASE /include/ "
if test -z $PIC_BUILD ; then
if test -z $PIC_BUILD ; then
SNAPPY_LIBS = " $SNAPPY_BASE /lib/libsnappy.a "
MAYBE_PIC =
else
else
SNAPPY_LIBS = " $SNAPPY_BASE /lib/libsnappy_pic.a "
MAYBE_PIC = _pic
fi
fi
# snappy
SNAPPY_INCLUDE = " -I $SNAPPY_BASE /include/ "
SNAPPY_LIBS = " $SNAPPY_BASE /lib/libsnappy ${ MAYBE_PIC } .a "
CFLAGS += " -DSNAPPY"
CFLAGS += " -DSNAPPY"
if test -z $PIC_BUILD ; then
# location of zlib headers and libraries
# location of zlib headers and libraries
ZLIB_INCLUDE = " -I $ZLIB_BASE /include/ "
ZLIB_INCLUDE = " -I $ZLIB_BASE /include/ "
ZLIB_LIBS = " $ZLIB_BASE /lib/libz.a "
ZLIB_LIBS = " $ZLIB_BASE /lib/libz ${ MAYBE_PIC } .a"
CFLAGS += " -DZLIB"
CFLAGS += " -DZLIB"
# location of bzip headers and libraries
# location of bzip headers and libraries
BZIP_INCLUDE = " -I $BZIP2_BASE /include/ "
BZIP_INCLUDE = " -I $BZIP2_BASE /include/ "
BZIP_LIBS = " $BZIP2_BASE /lib/libbz2.a "
BZIP_LIBS = " $BZIP2_BASE /lib/libbz2 ${ MAYBE_PIC } .a"
CFLAGS += " -DBZIP2"
CFLAGS += " -DBZIP2"
LZ4_INCLUDE = " -I $LZ4_BASE /include/ "
LZ4_INCLUDE = " -I $LZ4_BASE /include/ "
LZ4_LIBS = " $LZ4_BASE /lib/liblz4.a "
LZ4_LIBS = " $LZ4_BASE /lib/liblz4 ${ MAYBE_PIC } .a"
CFLAGS += " -DLZ4"
CFLAGS += " -DLZ4"
fi
ZSTD_INCLUDE = " -I $ZSTD_BASE /include/ "
ZSTD_INCLUDE = " -I $ZSTD_BASE /include/ "
if test -z $PIC_BUILD ; then
ZSTD_LIBS = " $ZSTD_BASE /lib/libzstd ${ MAYBE_PIC } .a "
ZSTD_LIBS = " $ZSTD_BASE /lib/libzstd.a "
else
ZSTD_LIBS = " $ZSTD_BASE /lib/libzstd_pic.a "
fi
CFLAGS += " -DZSTD"
CFLAGS += " -DZSTD"
# location of gflags headers and libraries
# location of gflags headers and libraries
GFLAGS_INCLUDE = " -I $GFLAGS_BASE /include/ "
GFLAGS_INCLUDE = " -I $GFLAGS_BASE /include/ "
if test -z $PIC_BUILD ; then
GFLAGS_LIBS = " $GFLAGS_BASE /lib/libgflags ${ MAYBE_PIC } .a "
GFLAGS_LIBS = " $GFLAGS_BASE /lib/libgflags.a "
else
GFLAGS_LIBS = " $GFLAGS_BASE /lib/libgflags_pic.a "
fi
CFLAGS += " -DGFLAGS=gflags"
CFLAGS += " -DGFLAGS=gflags"
BENCHMARK_INCLUDE = " -I $BENCHMARK_BASE /include/ "
BENCHMARK_INCLUDE = " -I $BENCHMARK_BASE /include/ "
if test -z $PIC_BUILD ; then
BENCHMARK_LIBS = " $BENCHMARK_BASE /lib/libbenchmark ${ MAYBE_PIC } .a "
BENCHMARK_LIBS = " $BENCHMARK_BASE /lib/libbenchmark.a "
else
BENCHMARK_LIBS = " $BENCHMARK_BASE /lib/libbenchmark_pic.a "
fi
# location of jemalloc
# location of jemalloc
JEMALLOC_INCLUDE = " -I $JEMALLOC_BASE /include/ "
JEMALLOC_INCLUDE = " -I $JEMALLOC_BASE /include/ "
JEMALLOC_LIB = " $JEMALLOC_BASE /lib/libjemalloc.a "
JEMALLOC_LIB = " $JEMALLOC_BASE /lib/libjemalloc ${ MAYBE_PIC } .a "
if test -z $PIC_BUILD ; then
# location of numa
# location of numa
NUMA_INCLUDE = " -I $NUMA_BASE /include/ "
NUMA_INCLUDE = " -I $NUMA_BASE /include/ "
NUMA_LIB = " $NUMA_BASE /lib/libnuma.a "
NUMA_LIB = " $NUMA_BASE /lib/libnuma ${ MAYBE_PIC } .a"
CFLAGS += " -DNUMA"
CFLAGS += " -DNUMA"
# location of libunwind
# location of libunwind
LIBUNWIND = " $LIBUNWIND_BASE /lib/libunwind.a "
LIBUNWIND = " $LIBUNWIND_BASE /lib/libunwind ${ MAYBE_PIC } .a "
fi
# location of TBB
# location of TBB
TBB_INCLUDE = " -isystem $TBB_BASE /include/ "
TBB_INCLUDE = " -isystem $TBB_BASE /include/ "
if test -z $PIC_BUILD ; then
TBB_LIBS = " $TBB_BASE /lib/libtbb ${ MAYBE_PIC } .a "
TBB_LIBS = " $TBB_BASE /lib/libtbb.a "
else
TBB_LIBS = " $TBB_BASE /lib/libtbb_pic.a "
fi
CFLAGS += " -DTBB"
CFLAGS += " -DTBB"
# location of LIBURING
# location of LIBURING
LIBURING_INCLUDE = " -isystem $LIBURING_BASE /include/ "
LIBURING_INCLUDE = " -isystem $LIBURING_BASE /include/ "
if test -z $PIC_BUILD ; then
LIBURING_LIBS = " $LIBURING_BASE /lib/liburing ${ MAYBE_PIC } .a "
LIBURING_LIBS = " $LIBURING_BASE /lib/liburing.a "
else
LIBURING_LIBS = " $LIBURING_BASE /lib/liburing_pic.a "
fi
CFLAGS += " -DLIBURING"
CFLAGS += " -DLIBURING"
test " $USE_SSE " || USE_SSE = 1
test " $USE_SSE " || USE_SSE = 1