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