2013-04-06 18:45:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2012/03/21 10:08:31 matt Exp $
|
2010-06-17 15:29:20 +02:00
|
|
|
|
2013-04-06 18:45:48 +02:00
|
|
|
WARNS= 3
|
|
|
|
|
|
|
|
USE_FORT?= yes # data-driven bugs?
|
2010-06-17 15:29:20 +02:00
|
|
|
|
2013-04-06 18:45:48 +02:00
|
|
|
.include <bsd.own.mk>
|
2010-06-17 15:29:20 +02:00
|
|
|
|
2013-04-06 18:45:48 +02:00
|
|
|
USE_SHLIBDIR= yes
|
|
|
|
|
|
|
|
ZLIBDIR=${NETBSDSRCDIR}/common/dist/zlib
|
|
|
|
.PATH: ${ZLIBDIR}
|
|
|
|
LIB= z
|
2011-04-27 15:00:52 +02:00
|
|
|
|
2013-04-06 18:45:48 +02:00
|
|
|
SRCS= adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \
|
|
|
|
inflate.c inftrees.c trees.c uncompr.c zutil.c
|
|
|
|
MAN= zlib.3
|
2010-06-17 17:05:20 +02:00
|
|
|
|
2013-04-06 18:45:48 +02:00
|
|
|
CPPFLAGS+= -I${ZLIBDIR}
|
|
|
|
CLEANFILES+= minigzip
|
|
|
|
|
|
|
|
INCS= zconf.h zlib.h
|
|
|
|
INCSDIR= /usr/include
|
2010-06-20 02:24:11 +02:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.lib.mk>
|
2013-04-06 18:45:48 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
${CC} -o minigzip ${.CURDIR}/minigzip.c libz.a
|