minix/lib/libz/Makefile
Lionel Sambuc 435f2b0095 Downgrading to netbsd zlib version
Change-Id: I83cf73d8357ea34ab5e49fe15bd4c45ce54cac01
2013-04-09 16:43:13 +02:00

33 lines
693 B
Makefile

# $NetBSD: Makefile,v 1.21 2012/03/21 10:08:31 matt Exp $
WARNS= 3
USE_FORT?= yes # data-driven bugs?
.include <bsd.own.mk>
USE_SHLIBDIR= yes
ZLIBDIR=${NETBSDSRCDIR}/common/dist/zlib
.PATH: ${ZLIBDIR}
LIB= z
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
CPPFLAGS+= -I${ZLIBDIR}
CLEANFILES+= minigzip
INCS= zconf.h zlib.h
INCSDIR= /usr/include
.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
${CC} -o minigzip ${.CURDIR}/minigzip.c libz.a