Makefile revision 1.11
1# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:47 martin 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}
15.if ${MACHINE_ARCH} != "sparc64"
16COPTS+= -Os
17.endif
18LDSTATIC?=-static
19
20DPADD+=	${LIBZ}
21LDADD+=	-lz
22
23all: ${PROG}
24
25.include <bsd.prog.mk>
26.PATH:  ${SRCDIR}
27
28test: zcat
29	echo 'hello, hello!' | gzip | ./zcat
30