xref: /freebsd/usr.bin/gzip/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1#	$NetBSD: Makefile,v 1.10 2006/05/12 02:01:15 mrg 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}
10LDADD=		-lz
11WARNS?=		6
12
13.if ${MK_BZIP2_SUPPORT} != "no"
14DPADD+=		${LIBBZ2}
15LDADD+=		-lbz2
16.else
17CFLAGS+=	-DNO_BZIP2_SUPPORT
18.endif
19
20SCRIPTS=	gzexe zdiff zforce zmore znew
21
22MLINKS+=	gzip.1 gunzip.1 \
23		gzip.1 gzcat.1 \
24		gzip.1 zcat.1 \
25		zdiff.1 zcmp.1
26
27LINKS+=		${BINDIR}/gzip ${BINDIR}/gunzip \
28		${BINDIR}/gzip ${BINDIR}/gzcat \
29		${BINDIR}/gzip ${BINDIR}/zcat \
30		${BINDIR}/zdiff ${BINDIR}/zcmp
31
32.include <bsd.prog.mk>
33