xref: /freebsd/usr.bin/gzip/Makefile (revision ff0ba87247820afbdfdc1b307c803f7923d0e4d3)
1#	$NetBSD: Makefile,v 1.18 2013/11/13 11:12:24 pettai 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		zmore.1 zless.1
26
27LINKS+=		${BINDIR}/gzip ${BINDIR}/gunzip \
28		${BINDIR}/gzip ${BINDIR}/gzcat \
29		${BINDIR}/gzip ${BINDIR}/zcat \
30		${BINDIR}/zdiff ${BINDIR}/zcmp
31
32.if ${MK_TESTS} != "no"
33SUBDIR+=	tests
34.endif
35
36.include <bsd.prog.mk>
37