Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / lib / libz / Makefile
blob760b76d828c73621f995e8d110045e6c83eb4400
1 # $NetBSD: Makefile,v 1.15 2007/06/23 10:50:24 isaki Exp $
3 LIB= z
4 NOPIC= # defined
5 NOPROFILE=# defined
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
19 # Other stuff
20 SRCS= ${LIBZSRCS} zalloc.c
22 # Files to clean up
23 CLEANFILES+= lib${LIB}.o
25 # only needed during build
26 libinstall::
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`