38e8d05ecdae750baeac3e43ce4781a01a9f61f2
[dragonfly.git] / usr.bin / gzip / Makefile
1 #       $NetBSD: Makefile,v 1.8 2004/01/01 02:44:09 mrg Exp $
2 # $DragonFly: src/usr.bin/gzip/Makefile,v 1.5 2007/08/27 16:50:54 pavalos Exp $
3
4 PROG=           gzip
5 MAN=            gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1
6
7 DPADD=          ${LIBZ}
8 LDADD=          -lz
9
10 NOSHARED?=      yes
11
12 .if defined(NO_GZIP_UNCOMPRESS)
13 CFLAGS+=        -DNO_COMPRESS_SUPPORT
14 .endif
15 .if defined(GZIP_UNBZIP2)
16 DPADD+=         ${LIBZ2}
17 LDADD+=         -lbz2
18 .else
19 CFLAGS+=        -DNO_BZIP2_SUPPORT
20 .endif
21
22 SCRIPTS=        gzexe zdiff zforce zmore znew
23
24 MLINKS+=        gzip.1 gunzip.1 \
25                 gzip.1 gzcat.1 \
26                 gzip.1 zcat.1 \
27                 zdiff.1 zcmp.1 \
28                 zmore.1 zless.1
29
30 LINKS+=         ${BINDIR}/gzip ${BINDIR}/gunzip \
31                 ${BINDIR}/gzip ${BINDIR}/gzcat \
32                 ${BINDIR}/gzip ${BINDIR}/zcat \
33                 ${BINDIR}/zdiff ${BINDIR}/zcmp \
34                 ${BINDIR}/zmore ${BINDIR}/zless
35
36 .include <bsd.prog.mk>