Resurrect z*grep script to support gzip'ped files.
[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 zgrep.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 zgrep 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                 zgrep.1 zegrep.1 \
29                 zgrep.1 zfgrep.1 \
30                 zmore.1 zless.1
31
32 LINKS+=         ${BINDIR}/gzip ${BINDIR}/gunzip \
33                 ${BINDIR}/gzip ${BINDIR}/gzcat \
34                 ${BINDIR}/gzip ${BINDIR}/zcat \
35                 ${BINDIR}/zdiff ${BINDIR}/zcmp \
36                 ${BINDIR}/zgrep ${BINDIR}/zegrep \
37                 ${BINDIR}/zgrep ${BINDIR}/zfgrep \
38                 ${BINDIR}/zmore ${BINDIR}/zless
39
40 .include <bsd.prog.mk>