Makefile revision 1.10
1# $NetBSD: Makefile,v 1.10 2000/05/18 01:10:31 matt 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
9PROG=	zcat
10MKMAN=	no
11SRCS=	zcat.c gzio.c
12
13SRCDIR= ${.CURDIR}/../../../lib/libz
14CPPFLAGS+= -I${SRCDIR}
15COPTS+= -Os
16LDSTATIC?=-static
17
18DPADD+=	${LIBZ}
19LDADD+=	-lz
20
21all: ${PROG}
22
23.include <bsd.prog.mk>
24.PATH:  ${SRCDIR}
25
26test: zcat
27	echo 'hello, hello!' | gzip | ./zcat
28