Home | History | Annotate | Line # | Download | only in zcat
Makefile revision 1.16
      1  1.16  christos # $NetBSD: Makefile,v 1.16 2017/01/11 04:04:12 christos Exp $
      2   1.1       gwr # Small zcat (i.e. for install media)
      3   1.1       gwr #
      4   1.2       gwr # Note: gzio.c is compiled here so that crunchgen will assume
      5   1.2       gwr # the same symbol space for zcat.c and gzio.c which is required
      6   1.2       gwr # so that the fake deflate functions in zcat.c will satisfy the
      7   1.2       gwr # references to those functions in gzio.c (yes, it's a hack).
      8   1.1       gwr 
      9  1.14  christos SRCDIR=		${.CURDIR}/../../../common/dist/zlib
     10   1.1       gwr 
     11  1.15   tsutsui WARNS?=		4
     12  1.13        tv PROG=		zcat
     13  1.13        tv NOMAN=		# defined
     14   1.1       gwr 
     15  1.16  christos SRCS=		zcat.c gzread.c gzclose.c gzlib.c
     16  1.13        tv 
     17  1.14  christos CPPFLAGS+=	-I${SRCDIR} -DNO_GZCOMPRESS
     18  1.13        tv DPADD+=		${LIBZ}
     19  1.13        tv LDADD+=		-lz
     20   1.1       gwr 
     21   1.1       gwr .include <bsd.prog.mk>
     22  1.13        tv 
     23  1.13        tv .PATH:		${SRCDIR}
     24   1.1       gwr 
     25   1.1       gwr test: zcat
     26   1.1       gwr 	echo 'hello, hello!' | gzip | ./zcat
     27