1 # $NetBSD: Makefile,v 1.15 2007/06/23 10:50:24 isaki Exp $
7 ZDISTDIR
:=${.PARSEDIR
}/..
/..
/..
/common
/dist/zlib
9 CPPFLAGS
+= -I
${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
11 .PATH.c
: ${ZDISTDIR} ${.PARSEDIR
}
13 # files to be copied down from libz.
14 LIBZSRCS
= adler32.c compress.c deflate.c infback.c inffast.c \
15 inflate.c inftrees.c trees.c uncompr.c
16 LIBZHDRS
= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
17 trees.h zconf.h zlib.h
20 SRCS
= ${LIBZSRCS} zalloc.c
23 CLEANFILES
+= lib
${LIB}.o
25 # only needed during build
32 @echo building standard
${LIB} library
34 @
${LD} -r
-o lib
${LIB}.o
`lorder ${OBJS} | tsort`