etc/services - sync with NetBSD-8
[minix.git] / lib / libz / Makefile
blob55edd9974dc5862c6f5683cb8612c7a06c9ba0ec
1 # $NetBSD: Makefile,v 1.22 2014/01/30 06:49:16 wiz Exp $
3 WARNS= 3
5 USE_FORT?= yes # data-driven bugs?
7 .include <bsd.own.mk>
9 USE_SHLIBDIR= yes
11 ZLIBDIR=${NETBSDSRCDIR}/common/dist/zlib
12 .PATH: ${ZLIBDIR}
13 LIB= z
15 SRCS= adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \
16 inflate.c inftrees.c trees.c uncompr.c zutil.c
17 MAN= zlib.3
19 CPPFLAGS+= -I${ZLIBDIR}
20 CLEANFILES+= minigzip
22 INCS= zconf.h zlib.h
23 INCSDIR= /usr/include
25 FILES+= zlib.pc
26 FILESOWN_zlib.pc= ${BINOWN}
27 FILESGRP_zlib.pc= ${BINGRP}
28 FILESMODE_zlib.pc= ${NONBINMODE}
29 FILESDIR_zlib.pc= /usr/lib/pkgconfig
31 .include <bsd.lib.mk>
33 test: minigzip
34 echo hello world | ./minigzip | ./minigzip -d
36 # Note: CFLAGS ommitted by intention!
37 # This is to verify that zlib.h works standalone.
38 minigzip: minigzip.c libz.a
39 ${CC} -o minigzip ${.CURDIR}/minigzip.c libz.a