1274262Sdelphij# $NetBSD: Makefile,v 1.18 2013/11/13 11:12:24 pettai Exp $ 2166255Sdelphij# $FreeBSD$ 3166255Sdelphij 4166255Sdelphij.include <bsd.own.mk> 5166255Sdelphij 6166255SdelphijPROG= gzip 7166621SsimonMAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1 8166255Sdelphij 9292588SdelphijDPADD= ${LIBZ} ${LIBLZMA} ${LIBPTHREAD} 10292588SdelphijLDADD= -lz -llzma -lpthread 11166255Sdelphij 12166255Sdelphij.if ${MK_BZIP2_SUPPORT} != "no" 13166255SdelphijDPADD+= ${LIBBZ2} 14166255SdelphijLDADD+= -lbz2 15166255Sdelphij.else 16166255SdelphijCFLAGS+= -DNO_BZIP2_SUPPORT 17166255Sdelphij.endif 18166255Sdelphij 19166621SsimonSCRIPTS= gzexe zdiff zforce zmore znew 20166255Sdelphij 21166255SdelphijMLINKS+= gzip.1 gunzip.1 \ 22166255Sdelphij gzip.1 gzcat.1 \ 23166255Sdelphij gzip.1 zcat.1 \ 24274262Sdelphij zdiff.1 zcmp.1 \ 25274262Sdelphij zmore.1 zless.1 26166255Sdelphij 27166255SdelphijLINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \ 28166255Sdelphij ${BINDIR}/gzip ${BINDIR}/gzcat \ 29166255Sdelphij ${BINDIR}/gzip ${BINDIR}/zcat \ 30166621Ssimon ${BINDIR}/zdiff ${BINDIR}/zcmp 31166255Sdelphij 32276490Sngie.if ${MK_TESTS} != "no" 33276490SngieSUBDIR+= tests 34276490Sngie.endif 35276490Sngie 36166255Sdelphij.include <bsd.prog.mk> 37