1 # $NetBSD: Makefile,v 1.18 2011/10/30 00:28:57 mrg Exp $
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
19 SRCS
= ${LIBZSRCS} zalloc.c
22 CLEANFILES
+= lib
${LIB}.o
28 @echo building standard
${LIB} library
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