Makefile revision 1.15
1# $NetBSD: Makefile,v 1.15 2011/05/19 22:23:12 tsutsui 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 11WARNS?= 4 12PROG= zcat 13NOMAN= # defined 14 15SRCS= zcat.c gzio.c 16 17CPPFLAGS+= -I${SRCDIR} -DNO_GZCOMPRESS 18DPADD+= ${LIBZ} 19LDADD+= -lz 20 21.include <bsd.prog.mk> 22 23.PATH: ${SRCDIR} 24 25test: zcat 26 echo 'hello, hello!' | gzip | ./zcat 27