2001-12-12 03:05:09 +03:00
|
|
|
# $NetBSD: Makefile,v 1.13 2001/12/12 00:05:14 tv Exp $
|
1996-09-13 00:24:00 +04:00
|
|
|
# Small zcat (i.e. for install media)
|
|
|
|
#
|
1996-09-25 00:40:10 +04:00
|
|
|
# Note: gzio.c is compiled here so that crunchgen will assume
|
|
|
|
# the same symbol space for zcat.c and gzio.c which is required
|
|
|
|
# so that the fake deflate functions in zcat.c will satisfy the
|
|
|
|
# references to those functions in gzio.c (yes, it's a hack).
|
1996-09-13 00:24:00 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
SRCDIR= ${.CURDIR}/../../../lib/libz
|
1996-09-13 00:24:00 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
PROG= zcat
|
|
|
|
NOMAN= # defined
|
1996-09-13 00:24:00 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
SRCS= zcat.c gzio.c
|
1996-09-13 00:24:00 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
CPPFLAGS+= -I${SRCDIR}
|
|
|
|
DPADD+= ${LIBZ}
|
|
|
|
LDADD+= -lz
|
1996-09-13 00:24:00 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
2001-12-12 03:05:09 +03:00
|
|
|
|
|
|
|
.PATH: ${SRCDIR}
|
1996-09-13 00:24:00 +04:00
|
|
|
|
|
|
|
test: zcat
|
|
|
|
echo 'hello, hello!' | gzip | ./zcat
|