Wed Jan 11 04:04:12 2017 UTC ()
adjust to new zlib


(christos)
diff -r1.15 -r1.16 src/distrib/utils/zcat/Makefile

cvs diff -r1.15 -r1.16 src/distrib/utils/zcat/Makefile (expand / switch to unified diff)

--- src/distrib/utils/zcat/Makefile 2011/05/19 22:23:12 1.15
+++ src/distrib/utils/zcat/Makefile 2017/01/11 04:04:12 1.16
@@ -1,26 +1,26 @@ @@ -1,26 +1,26 @@
1# $NetBSD: Makefile,v 1.15 2011/05/19 22:23:12 tsutsui Exp $ 1# $NetBSD: Makefile,v 1.16 2017/01/11 04:04:12 christos Exp $
2# Small zcat (i.e. for install media) 2# Small zcat (i.e. for install media)
3# 3#
4# Note: gzio.c is compiled here so that crunchgen will assume 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 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 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). 7# references to those functions in gzio.c (yes, it's a hack).
8 8
9SRCDIR= ${.CURDIR}/../../../common/dist/zlib 9SRCDIR= ${.CURDIR}/../../../common/dist/zlib
10 10
11WARNS?= 4 11WARNS?= 4
12PROG= zcat 12PROG= zcat
13NOMAN= # defined 13NOMAN= # defined
14 14
15SRCS= zcat.c gzio.c 15SRCS= zcat.c gzread.c gzclose.c gzlib.c
16 16
17CPPFLAGS+= -I${SRCDIR} -DNO_GZCOMPRESS 17CPPFLAGS+= -I${SRCDIR} -DNO_GZCOMPRESS
18DPADD+= ${LIBZ} 18DPADD+= ${LIBZ}
19LDADD+= -lz 19LDADD+= -lz
20 20
21.include <bsd.prog.mk> 21.include <bsd.prog.mk>
22 22
23.PATH: ${SRCDIR} 23.PATH: ${SRCDIR}
24 24
25test: zcat 25test: zcat
26 echo 'hello, hello!' | gzip | ./zcat 26 echo 'hello, hello!' | gzip | ./zcat