1 # $NetBSD: Makefile,v 1.21 2015/09/07 03:44:19 uebayasi 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
27 lib
${LIB}.o
:: ${OBJS
:O
}
28 @echo building standard
${LIB} library
30 @
${LD} -r
-o lib
${LIB}.o
`lorder ${OBJS} | tsort`
33 .if defined
(HAVE_GCC
) && ${MACHINE_ARCH} == "vax"
34 COPTS.inftrees.c
+= -O0