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