1 # $NetBSD: Makefile,v 1.18 2011/10/30 00:28:57 mrg Exp $
7 ZDISTDIR
:=${.PARSEDIR
}/..
/..
/..
/common
/dist/zlib
9 ZDISTDIR
:=${.PARSEDIR
}/..
/..
/..
/lib
/libz
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
23 SRCS
= ${LIBZSRCS} zalloc.c
26 CLEANFILES
+= lib
${LIB}.o
32 @echo building standard
${LIB} library
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