2017-04-15 20:05:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LIB= zstd
|
|
|
|
SRCS= entropy_common.c \
|
|
|
|
error_private.c \
|
|
|
|
fse_decompress.c \
|
|
|
|
pool.c \
|
|
|
|
threading.c \
|
|
|
|
xxhash.c \
|
|
|
|
zstd_common.c \
|
|
|
|
fse_compress.c \
|
|
|
|
huf_compress.c \
|
|
|
|
zstd_compress.c \
|
|
|
|
zstdmt_compress.c \
|
|
|
|
huf_decompress.c \
|
|
|
|
zstd_decompress.c \
|
|
|
|
zbuff_common.c \
|
|
|
|
zbuff_compress.c \
|
|
|
|
zbuff_decompress.c \
|
|
|
|
cover.c \
|
|
|
|
divsufsort.c \
|
2017-11-11 13:57:30 +00:00
|
|
|
zdict.c \
|
|
|
|
zstd_fast.c \
|
|
|
|
zstd_lazy.c \
|
|
|
|
zstd_ldm.c \
|
|
|
|
zstd_opt.c \
|
|
|
|
zstd_double_fast.c
|
2017-04-15 20:05:22 +00:00
|
|
|
WARNS= 2
|
|
|
|
INCS= zstd.h
|
2017-05-06 10:59:10 +00:00
|
|
|
CFLAGS+= -I${ZSTDDIR}/lib -I${ZSTDDIR}/lib/common -DXXH_NAMESPACE=ZSTD_ \
|
|
|
|
-DZSTD_MULTITHREAD=1
|
|
|
|
LIBADD= pthread
|
2017-04-15 20:05:22 +00:00
|
|
|
|
|
|
|
PRIVATELIB= yes
|
|
|
|
|
2017-11-14 05:03:38 +00:00
|
|
|
ZSTDDIR= ${SRCTOP}/sys/contrib/zstd
|
2017-04-15 20:05:22 +00:00
|
|
|
.PATH: ${ZSTDDIR}/lib/common ${ZSTDDIR}/lib/compress \
|
|
|
|
${ZSTDDIR}/lib/decompress ${ZSTDDIR}/lib/deprecated \
|
|
|
|
${ZSTDDIR}/lib/dictBuilder ${ZSTDDIR}/lib
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|