Home | History | Annotate | Line # | Download | only in libz
Makefile revision 1.4
      1  1.4  thorpej #	$NetBSD: Makefile,v 1.4 1996/10/18 05:45:06 thorpej Exp $
      2  1.1      gwr 
      3  1.1      gwr LIB=	z
      4  1.1      gwr SRCS=	adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
      5  1.1      gwr 	zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
      6  1.1      gwr 
      7  1.1      gwr CFLAGS+= -D_ZLIB_PRIVATE -I${.CURDIR}
      8  1.1      gwr 
      9  1.1      gwr NOMAN=
     10  1.1      gwr 
     11  1.2      cgd CLEANFILES+= minigzip
     12  1.2      cgd 
     13  1.1      gwr includes:
     14  1.1      gwr 	-cd ${.CURDIR}; cmp -s zlib.h ${DESTDIR}/usr/include/zlib.h > \
     15  1.1      gwr 	    /dev/null 2>&1 || \
     16  1.4  thorpej 	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 zlib.h \
     17  1.1      gwr 	    ${DESTDIR}/usr/include
     18  1.1      gwr 
     19  1.1      gwr .include <bsd.lib.mk>
     20  1.1      gwr 
     21  1.1      gwr test: minigzip
     22  1.1      gwr 	echo hello world | ./minigzip | ./minigzip -d
     23  1.1      gwr 
     24  1.1      gwr # Note: CFLAGS ommitted by intention!
     25  1.1      gwr # This is to verify that zlib.h works standalone.
     26  1.1      gwr minigzip : minigzip.c libz.a
     27  1.2      cgd 	$(CC) -o minigzip ${.CURDIR}/minigzip.c libz.a
     28