Makefile revision 1.15
11.15Stsutsui# $NetBSD: Makefile,v 1.15 2011/05/19 22:23:12 tsutsui 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.14SchristosSRCDIR= ${.CURDIR}/../../../common/dist/zlib 101.1Sgwr 111.15StsutsuiWARNS?= 4 121.13StvPROG= zcat 131.13StvNOMAN= # defined 141.1Sgwr 151.13StvSRCS= zcat.c gzio.c 161.13Stv 171.14SchristosCPPFLAGS+= -I${SRCDIR} -DNO_GZCOMPRESS 181.13StvDPADD+= ${LIBZ} 191.13StvLDADD+= -lz 201.1Sgwr 211.1Sgwr.include <bsd.prog.mk> 221.13Stv 231.13Stv.PATH: ${SRCDIR} 241.1Sgwr 251.1Sgwrtest: zcat 261.1Sgwr echo 'hello, hello!' | gzip | ./zcat 27