xref: /freebsd/usr.bin/gzip/Makefile (revision 3f0164abf32b9b761e0a2cb4bdca3a8b84f156d4)
1#	$NetBSD: Makefile,v 1.16 2011/06/21 13:25:45 joerg Exp $
2# $FreeBSD$
3
4.include <bsd.own.mk>
5
6PROG=		gzip
7MAN=		gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1
8
9DPADD=		${LIBZ} ${LIBLZMA}
10LDADD=		-lz -llzma
11
12.if ${MK_BZIP2_SUPPORT} != "no"
13DPADD+=		${LIBBZ2}
14LDADD+=		-lbz2
15.else
16CFLAGS+=	-DNO_BZIP2_SUPPORT
17.endif
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
26LINKS+=		${BINDIR}/gzip ${BINDIR}/gunzip \
27		${BINDIR}/gzip ${BINDIR}/gzcat \
28		${BINDIR}/gzip ${BINDIR}/zcat \
29		${BINDIR}/zdiff ${BINDIR}/zcmp
30
31.include <bsd.prog.mk>
32