1 1.16 tls # $NetBSD: Makefile,v 1.16 2009/03/25 18:41:06 tls Exp $ 2 1.1 cgd 3 1.1 cgd LIB= z 4 1.12 tv NOPIC= # defined 5 1.12 tv NOPROFILE=# defined 6 1.1 cgd 7 1.14 christos ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib 8 1.10 drochner 9 1.15 isaki CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS} 10 1.14 christos 11 1.14 christos .PATH.c: ${ZDISTDIR} ${.PARSEDIR} 12 1.1 cgd 13 1.1 cgd # files to be copied down from libz. 14 1.16 tls LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \ 15 1.14 christos inflate.c inftrees.c trees.c uncompr.c 16 1.16 tls LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \ 17 1.14 christos trees.h zconf.h zlib.h 18 1.1 cgd 19 1.1 cgd # Other stuff 20 1.8 simonb SRCS= ${LIBZSRCS} zalloc.c 21 1.1 cgd 22 1.1 cgd # Files to clean up 23 1.1 cgd CLEANFILES+= lib${LIB}.o 24 1.6 cjs 25 1.6 cjs # only needed during build 26 1.6 cjs libinstall:: 27 1.1 cgd 28 1.11 tv .undef DESTDIR 29 1.1 cgd .include <bsd.lib.mk> 30 1.1 cgd 31 1.1 cgd lib${LIB}.o:: ${OBJS} 32 1.1 cgd @echo building standard ${LIB} library 33 1.1 cgd @rm -f lib${LIB}.o 34 1.1 cgd @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 35