2011-10-10 06:37:32 +00:00
|
|
|
# $NetBSD: Makefile,v 1.16 2011/06/21 13:25:45 joerg Exp $
|
2007-01-26 10:19:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2007-01-26 10:19:08 +00:00
|
|
|
|
|
|
|
PROG= gzip
|
2007-02-10 13:49:39 +00:00
|
|
|
MAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1
|
2007-01-26 10:19:08 +00:00
|
|
|
|
2011-10-10 06:37:32 +00:00
|
|
|
DPADD= ${LIBZ} ${LIBLZMA}
|
|
|
|
LDADD= -lz -llzma
|
2007-01-26 10:19:08 +00:00
|
|
|
|
|
|
|
.if ${MK_BZIP2_SUPPORT} != "no"
|
|
|
|
DPADD+= ${LIBBZ2}
|
|
|
|
LDADD+= -lbz2
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DNO_BZIP2_SUPPORT
|
|
|
|
.endif
|
|
|
|
|
2007-02-10 13:49:39 +00:00
|
|
|
SCRIPTS= gzexe zdiff zforce zmore znew
|
2007-01-26 10:19:08 +00:00
|
|
|
|
|
|
|
MLINKS+= gzip.1 gunzip.1 \
|
|
|
|
gzip.1 gzcat.1 \
|
|
|
|
gzip.1 zcat.1 \
|
2007-02-10 13:49:39 +00:00
|
|
|
zdiff.1 zcmp.1
|
2007-01-26 10:19:08 +00:00
|
|
|
|
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \
|
|
|
|
${BINDIR}/gzip ${BINDIR}/gzcat \
|
|
|
|
${BINDIR}/gzip ${BINDIR}/zcat \
|
2007-02-10 13:49:39 +00:00
|
|
|
${BINDIR}/zdiff ${BINDIR}/zcmp
|
2007-01-26 10:19:08 +00:00
|
|
|
|
2014-10-09 02:24:34 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2007-01-26 10:19:08 +00:00
|
|
|
.include <bsd.prog.mk>
|