1 # $NetBSD: Makefile,v 1.2.2.2 1996/09/24 20:40:11 gwr 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 9 PROG= zcat 10 NOMAN= 11 SRCS= zcat.c gzio.c 12 13 SRCDIR= ${.CURDIR}/../../../lib/libz 14 CFLAGS+= -D_ZLIB_PRIVATE -I${SRCDIR} 15 16 DPADD+= ${DESTDIR}/usr/lib/libz.a 17 LDADD+= -lz 18 19 all: ${PROG} 20 21 .include <bsd.prog.mk> 22 .PATH: ${SRCDIR} 23 24 test: zcat 25 echo 'hello, hello!' | gzip | ./zcat 26