2000-05-18 05:10:22 +04:00
|
|
|
# $NetBSD: Makefile,v 1.10 2000/05/18 01:10:31 matt 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
|
|
|
|
|
|
|
PROG= zcat
|
1999-02-13 05:54:17 +03:00
|
|
|
MKMAN= no
|
1996-09-13 00:24:00 +04:00
|
|
|
SRCS= zcat.c gzio.c
|
|
|
|
|
1999-06-21 05:19:36 +04:00
|
|
|
SRCDIR= ${.CURDIR}/../../../lib/libz
|
1997-10-22 06:20:09 +04:00
|
|
|
CPPFLAGS+= -I${SRCDIR}
|
2000-05-18 04:43:05 +04:00
|
|
|
COPTS+= -Os
|
2000-05-18 05:10:22 +04:00
|
|
|
LDSTATIC?=-static
|
1996-09-13 00:24:00 +04:00
|
|
|
|
1997-03-25 01:15:37 +03:00
|
|
|
DPADD+= ${LIBZ}
|
1996-09-13 00:24:00 +04:00
|
|
|
LDADD+= -lz
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.PATH: ${SRCDIR}
|
|
|
|
|
|
|
|
test: zcat
|
|
|
|
echo 'hello, hello!' | gzip | ./zcat
|