Makefile revision 1.13
11.13Stv# $NetBSD: Makefile,v 1.13 2001/12/12 00:05:14 tv Exp $
21.1Sgwr# Small zcat (i.e. for install media)
31.1Sgwr#
41.2Sgwr# Note: gzio.c is compiled here so that crunchgen will assume
51.2Sgwr# the same symbol space for zcat.c and gzio.c which is required
61.2Sgwr# so that the fake deflate functions in zcat.c will satisfy the
71.2Sgwr# references to those functions in gzio.c (yes, it's a hack).
81.1Sgwr
91.13StvSRCDIR=		${.CURDIR}/../../../lib/libz
101.1Sgwr
111.13StvPROG=		zcat
121.13StvNOMAN=		# defined
131.1Sgwr
141.13StvSRCS=		zcat.c gzio.c
151.13Stv
161.13StvCPPFLAGS+=	-I${SRCDIR}
171.13StvDPADD+=		${LIBZ}
181.13StvLDADD+=		-lz
191.1Sgwr
201.1Sgwr.include <bsd.prog.mk>
211.13Stv
221.13Stv.PATH:		${SRCDIR}
231.1Sgwr
241.1Sgwrtest: zcat
251.1Sgwr	echo 'hello, hello!' | gzip | ./zcat
26