Sync usage with man page.
[netbsd-mini2440.git] / lib / libz / Makefile
blob1b30039e0580c41aa880fcb6168e7d77cd045729
1 # $NetBSD: Makefile,v 1.19 2006/01/14 20:12:36 christos Exp $
3 USE_FORT?= yes # data-driven bugs?
5 .include <bsd.own.mk>
7 USE_SHLIBDIR= yes
9 ZLIBDIR=${NETBSDSRCDIR}/common/dist/zlib
10 .PATH: ${ZLIBDIR}
11 LIB= z
13 SRCS= adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \
14 inflate.c inftrees.c trees.c uncompr.c zutil.c
15 MAN= zlib.3
17 CPPFLAGS+= -I${ZLIBDIR}
18 CLEANFILES+= minigzip
20 INCS= zconf.h zlib.h
21 INCSDIR= /usr/include
23 .include <bsd.lib.mk>
25 test: minigzip
26 echo hello world | ./minigzip | ./minigzip -d
28 # Note: CFLAGS ommitted by intention!
29 # This is to verify that zlib.h works standalone.
30 minigzip: minigzip.c libz.a
31 ${CC} -o minigzip ${.CURDIR}/minigzip.c libz.a