1999-10-26 07:42:58 +04:00
|
|
|
# $NetBSD: Makefile,v 1.14 1999/10/26 03:42:58 itojun Exp $
|
1996-09-12 23:33:53 +04:00
|
|
|
|
|
|
|
LIB= z
|
1999-02-13 05:54:17 +03:00
|
|
|
MKMAN= no
|
1997-05-14 02:57:09 +04:00
|
|
|
|
1999-07-09 11:07:13 +04:00
|
|
|
SRCS= adler32.c compress.c crc32.c deflate.c gzio.c infblock.c \
|
1998-11-01 23:33:24 +03:00
|
|
|
infcodes.c inffast.c inflate.c inftrees.c infutil.c trees.c uncompr.c \
|
|
|
|
zutil.c
|
1999-10-26 07:42:58 +04:00
|
|
|
SRCS+= gzio_compat.c
|
1996-09-12 23:33:53 +04:00
|
|
|
|
1997-10-23 07:31:09 +04:00
|
|
|
CPPFLAGS+= -I${.CURDIR}
|
1996-09-12 23:33:53 +04:00
|
|
|
|
1996-09-13 02:33:40 +04:00
|
|
|
CLEANFILES+= minigzip
|
|
|
|
|
1997-05-26 02:58:09 +04:00
|
|
|
INCS= zconf.h zlib.h
|
1997-03-25 01:11:48 +03:00
|
|
|
INCSDIR=/usr/include
|
1996-09-12 23:33:53 +04:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
test: minigzip
|
|
|
|
echo hello world | ./minigzip | ./minigzip -d
|
|
|
|
|
|
|
|
# Note: CFLAGS ommitted by intention!
|
|
|
|
# This is to verify that zlib.h works standalone.
|
|
|
|
minigzip : minigzip.c libz.a
|
1996-09-13 02:33:40 +04:00
|
|
|
$(CC) -o minigzip ${.CURDIR}/minigzip.c libz.a
|