2f45771b4b
Import the wrapper script from zstdgrep (written by wiz@netbsd.org) Modify it to support more than just zstd (adding support for gzip, lzma, xz and bzip2) Write a simple manpage dedicated for it. Only use that new wrapper both for gnu grep and bsd grep Next step will be removing code related to compression format from bsdgrep Reviewed by: kevans Approved by: kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D15193
30 lines
645 B
Makefile
30 lines
645 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= zstd
|
|
SRCS= bench.c \
|
|
datagen.c \
|
|
dibio.c \
|
|
fileio.c \
|
|
zstdcli.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/programs \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/common \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/compress \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/dictBuilder \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib \
|
|
-DXXH_NAMESPACE=ZSTD_ \
|
|
-DHAVE_THREAD=1 \
|
|
-DZSTD_MULTITHREAD=1
|
|
LINKS= ${BINDIR}/zstd ${BINDIR}/unzstd \
|
|
${BINDIR}/zstd ${BINDIR}/zstdcat \
|
|
${BINDIR}/zstd ${BINDIR}/zstdmt
|
|
MLINKS= zstd.1 unzstd.1 \
|
|
zstd.1 zstdcat.1 \
|
|
zstd.1 zstdmt.1
|
|
|
|
WARNS= 2
|
|
LIBADD= zstd
|
|
.PATH: ${SRCTOP}/sys/contrib/zstd/programs
|
|
|
|
.include <bsd.prog.mk>
|