Home | History | Annotate | Line # | Download | only in zcat
Makefile revision 1.18
      1  1.18       mrg # $NetBSD: Makefile,v 1.18 2019/02/06 09:17:18 mrg 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.18       mrg .if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
     30  1.18       mrg COPTS.inflate.c+=	-Wno-error=implicit-fallthrough
     31  1.18       mrg .endif
     32  1.18       mrg 
     33   1.1       gwr .include <bsd.prog.mk>
     34  1.13        tv 
     35   1.1       gwr test: zcat
     36   1.1       gwr 	echo 'hello, hello!' | gzip | ./zcat
     37