Home | History | Annotate | Line # | Download | only in zcat
Makefile revision 1.11
      1  1.11    martin # $NetBSD: Makefile,v 1.11 2001/08/20 12:19:47 martin 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.1       gwr PROG=	zcat
     10   1.6     lukem MKMAN=	no
     11   1.1       gwr SRCS=	zcat.c gzio.c
     12   1.1       gwr 
     13   1.8       cgd SRCDIR= ${.CURDIR}/../../../lib/libz
     14   1.5     lukem CPPFLAGS+= -I${SRCDIR}
     15  1.11    martin .if ${MACHINE_ARCH} != "sparc64"
     16   1.9      matt COPTS+= -Os
     17  1.11    martin .endif
     18  1.10      matt LDSTATIC?=-static
     19   1.1       gwr 
     20   1.3  christos DPADD+=	${LIBZ}
     21   1.1       gwr LDADD+=	-lz
     22   1.1       gwr 
     23   1.1       gwr all: ${PROG}
     24   1.1       gwr 
     25   1.1       gwr .include <bsd.prog.mk>
     26   1.1       gwr .PATH:  ${SRCDIR}
     27   1.1       gwr 
     28   1.1       gwr test: zcat
     29   1.1       gwr 	echo 'hello, hello!' | gzip | ./zcat
     30