xref: /netbsd/distrib/utils/zcat/Makefile (revision 6550d01e)
1# $NetBSD: Makefile,v 1.14 2006/01/14 21:15:40 christos Exp $
2# Small zcat (i.e. for install media)
3#
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).
8
9SRCDIR=		${.CURDIR}/../../../common/dist/zlib
10
11PROG=		zcat
12NOMAN=		# defined
13
14SRCS=		zcat.c gzio.c
15
16CPPFLAGS+=	-I${SRCDIR} -DNO_GZCOMPRESS
17DPADD+=		${LIBZ}
18LDADD+=		-lz
19
20.include <bsd.prog.mk>
21
22.PATH:		${SRCDIR}
23
24test: zcat
25	echo 'hello, hello!' | gzip | ./zcat
26