Makefile revision 1.2
11.2Sgwr# $NetBSD: Makefile,v 1.2 1996/09/24 20:40:10 gwr 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.1SgwrPROG=	zcat
101.1SgwrNOMAN=
111.1SgwrSRCS=	zcat.c gzio.c
121.1Sgwr
131.1SgwrSRCDIR= ${.CURDIR}/../../../lib/libz
141.1SgwrCFLAGS+= -D_ZLIB_PRIVATE -I${SRCDIR}
151.1Sgwr
161.1SgwrDPADD+=	${DESTDIR}/usr/lib/libz.a
171.1SgwrLDADD+=	-lz
181.1Sgwr
191.1Sgwrall: ${PROG}
201.1Sgwr
211.1Sgwr.include <bsd.prog.mk>
221.1Sgwr.PATH:  ${SRCDIR}
231.1Sgwr
241.1Sgwrtest: zcat
251.1Sgwr	echo 'hello, hello!' | gzip | ./zcat
26