Home | History | Annotate | Line # | Download | only in zcat
Makefile revision 1.9
      1 # $NetBSD: Makefile,v 1.9 2000/05/18 00:43:09 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 
      9 PROG=	zcat
     10 MKMAN=	no
     11 SRCS=	zcat.c gzio.c
     12 
     13 SRCDIR= ${.CURDIR}/../../../lib/libz
     14 CPPFLAGS+= -I${SRCDIR}
     15 COPTS+= -Os
     16 
     17 DPADD+=	${LIBZ}
     18 LDADD+=	-lz
     19 
     20 all: ${PROG}
     21 
     22 .include <bsd.prog.mk>
     23 .PATH:  ${SRCDIR}
     24 
     25 test: zcat
     26 	echo 'hello, hello!' | gzip | ./zcat
     27