mkfs: move directory entry manipulation
[minix.git] / sys / lib / libz / Makefile
blobebcfe5e524f036928ac924b31cd77a55b8036e18
1 # $NetBSD: Makefile,v 1.18 2011/10/30 00:28:57 mrg Exp $
3 LIB= z
4 LIBISPRIVATE= yes
6 .ifndef __MINIX
7 ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
8 .else
9 ZDISTDIR:=${.PARSEDIR}/../../../lib/libz
10 .endif
12 CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
14 .PATH.c: ${ZDISTDIR} ${.PARSEDIR}
16 # files to be copied down from libz.
17 LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
18 inflate.c inftrees.c trees.c uncompr.c
19 LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
20 trees.h zconf.h zlib.h
22 # Other stuff
23 SRCS= ${LIBZSRCS} zalloc.c
25 # Files to clean up
26 CLEANFILES+= lib${LIB}.o
28 .undef DESTDIR
29 .include <bsd.lib.mk>
31 lib${LIB}.o:: ${OBJS}
32 @echo building standard ${LIB} library
33 @rm -f lib${LIB}.o
34 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
36 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
37 COPTS.inftrees.c+= -O0
38 .endif