Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / distrib / utils / zcat / Makefile
blobd368f20d05590fd7ea00e8322f3eccac9ca9a272
1 # $NetBSD: Makefile,v 1.13 2001/12/12 00:05:14 tv Exp $
2 # Small zcat (i.e. for install media)
4 # Note: gzio.c is compiled here so that crunchgen will assume
5 # the same symbol space for zcat.c and gzio.c which is required
6 # so that the fake deflate functions in zcat.c will satisfy the
7 # references to those functions in gzio.c (yes, it's a hack).
9 SRCDIR= ${.CURDIR}/../../../common/dist/zlib
11 PROG= zcat
12 NOMAN= # defined
14 SRCS= zcat.c gzio.c
16 CPPFLAGS+= -I${SRCDIR} -DNO_GZCOMPRESS
17 DPADD+= ${LIBZ}
18 LDADD+= -lz
20 .include <bsd.prog.mk>
22 .PATH: ${SRCDIR}
24 test: zcat
25 echo 'hello, hello!' | gzip | ./zcat