Home | History | Annotate | Line # | Download | only in zcat
      1  1.21     lukem # $NetBSD: Makefile,v 1.21 2023/06/03 09:09:02 lukem Exp $
      2   1.1       gwr # Small zcat (i.e. for install media)
      3   1.1       gwr #
      4  1.17  christos 
      5  1.17  christos NOSSP=yes
      6  1.17  christos NOMAN=
      7  1.17  christos .include <bsd.own.mk>
      8   1.1       gwr 
      9  1.14  christos SRCDIR=		${.CURDIR}/../../../common/dist/zlib
     10  1.17  christos LIBC=		${NETBSDSRCDIR}/lib/libc
     11  1.17  christos 
     12  1.17  christos .PATH:		${SRCDIR} ${LIBC}/stdlib
     13   1.1       gwr 
     14  1.15   tsutsui WARNS?=		4
     15  1.13        tv PROG=		zcat
     16   1.1       gwr 
     17  1.17  christos # Just what we need from libz
     18  1.17  christos SRCS=		zcat.c gzread.c gzclose.c gzlib.c inflate.c 
     19  1.17  christos SRCS+=		adler32.c crc32.c zutil.c inffast.c inftrees.c
     20  1.17  christos CPPFLAGS+=	-I${SRCDIR} -DNO_GZCOMPRESS
     21  1.13        tv 
     22  1.17  christos # This avoids including stdio, threads, locale, etc.
     23  1.17  christos SRCS+=		misc.c
     24  1.17  christos SRCS+=		malloc.c	# small
     25  1.17  christos CPPFLAGS+=	-I${LIBC}/include
     26  1.17  christos CPPFLAGS+=	-Dsnprintf=snprintf_ss -Dsprintf=sprintf_ss
     27  1.17  christos CPPFLAGS+=	-Dstrerror=strerror_ss
     28   1.1       gwr 
     29  1.21     lukem COPTS.inflate.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
     30  1.18       mrg 
     31   1.1       gwr .include <bsd.prog.mk>
     32  1.13        tv 
     33   1.1       gwr test: zcat
     34   1.1       gwr 	echo 'hello, hello!' | gzip | ./zcat
     35