custom message type for VM_INFO
[minix3.git] / sys / lib / libz / Makefile
blob19b006f25edb509758c46dce86664d97284778db
1 # $NetBSD: Makefile,v 1.18 2011/10/30 00:28:57 mrg Exp $
3 LIB= z
4 LIBISPRIVATE= yes
6 ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
8 CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
10 .PATH.c: ${ZDISTDIR} ${.PARSEDIR}
12 # files to be copied down from libz.
13 LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
14 inflate.c inftrees.c trees.c uncompr.c
15 LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
16 trees.h zconf.h zlib.h
18 # Other stuff
19 SRCS= ${LIBZSRCS} zalloc.c
21 # Files to clean up
22 CLEANFILES+= lib${LIB}.o
24 .undef DESTDIR
25 .include <bsd.lib.mk>
27 lib${LIB}.o:: ${OBJS}
28 @echo building standard ${LIB} library
29 @rm -f lib${LIB}.o
30 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
32 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
33 COPTS.inftrees.c+= -O0
34 .endif