xref: /freebsd/usr.bin/gzip/Makefile (revision 2a382033b5c379d4d57f4030f6045bbd5527a1e9)
1#	$NetBSD: Makefile,v 1.16 2011/06/21 13:25:45 joerg Exp $
2# $FreeBSD$
3
4.include <src.opts.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.if ${MK_TESTS} != "no"
32SUBDIR+=	tests
33.endif
34
35.include <bsd.prog.mk>
36