Home | History | Annotate | Line # | Download | only in zcat
Makefile revision 1.10.4.1
      1 # $NetBSD: Makefile,v 1.10.4.1 2001/07/29 20:32:33 he 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 .if ${MACHINE_ARCH} != "sparc64"
     16 COPTS+= -Os
     17 .endif
     18 LDSTATIC?=-static
     19 
     20 DPADD+=	${LIBZ}
     21 LDADD+=	-lz
     22 
     23 all: ${PROG}
     24 
     25 .include <bsd.prog.mk>
     26 .PATH:  ${SRCDIR}
     27 
     28 test: zcat
     29 	echo 'hello, hello!' | gzip | ./zcat
     30