1# $NetBSD: Makefile,v 1.18 2013/11/13 11:12:24 pettai Exp $ 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6PROG= gzip 7MAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1 8 9LIBADD= z lzma zstd 10 11.if ${MK_BZIP2_SUPPORT} != "no" 12LIBADD+= bz2 13.else 14CFLAGS+= -DNO_BZIP2_SUPPORT 15.endif 16 17CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib 18 19SCRIPTS= gzexe zdiff zforce zmore znew 20 21MLINKS+= gzip.1 gunzip.1 \ 22 gzip.1 gzcat.1 \ 23 gzip.1 zcat.1 \ 24 zdiff.1 zcmp.1 \ 25 zdiff.1 xzdiff.1 \ 26 zmore.1 zless.1 27 28LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \ 29 ${BINDIR}/gzip ${BINDIR}/gzcat \ 30 ${BINDIR}/gzip ${BINDIR}/zcat \ 31 ${BINDIR}/zdiff ${BINDIR}/xzdiff \ 32 ${BINDIR}/zdiff ${BINDIR}/zcmp 33 34HAS_TESTS= 35SUBDIR.${MK_TESTS}+= tests 36 37.include <bsd.prog.mk> 38