Makefile revision 1.10
11.10Sdrochner# $NetBSD: Makefile,v 1.10 1999/05/07 14:28:51 drochner Exp $ 21.1Scgd 31.1ScgdLIB= z 41.7SlukemMKPIC= no 51.7SlukemMKPROFILE=no 61.1Scgd 71.10SdrochnerCPPFLAGS= -I${ZDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS} -D_ZLIB_PRIVATE 81.10Sdrochner 91.10Sdrochner.PATH.c: ${ZDIR} 101.1Scgd 111.1Scgd# files to be copied down from libz. 121.1ScgdLIBZSRCS= adler32.c crc32.c infblock.c infcodes.c inffast.c \ 131.8Ssimonb inflate.c inftrees.c infutil.c uncompr.c 141.1ScgdLIBZHDRS= infblock.h infcodes.h inffast.h inftrees.h infutil.h \ 151.1Scgd zconf.h zlib.h zutil.h 161.1Scgd 171.1Scgd# Other stuff 181.8SsimonbSRCS= ${LIBZSRCS} zalloc.c 191.1Scgd 201.1Scgd# Files to clean up 211.1ScgdCLEANFILES+= lib${LIB}.o 221.6Scjs 231.6Scjs# only needed during build 241.6Scjslibinstall:: 251.1Scgd 261.1Scgd.include <bsd.lib.mk> 271.1Scgd 281.1Scgdlib${LIB}.o:: ${OBJS} 291.1Scgd @echo building standard ${LIB} library 301.1Scgd @rm -f lib${LIB}.o 311.1Scgd @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 321.1Scgd 331.1Scgdupdate-sources: 341.9Ssimonb -@for file in ${LIBZSRCS} ${LIBZHDRS}; do \ 351.9Ssimonb tail +2 ${.CURDIR}/../../../lib/libz/$$file > .tmp1.$$file ; \ 361.9Ssimonb tail +2 ${.CURDIR}/$$file > .tmp2.$$file ; \ 371.9Ssimonb cmp -s .tmp1.$$file .tmp2.$$file || ( echo Updating $$file ; \ 381.9Ssimonb cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR} ) ; \ 391.9Ssimonb rm .tmp1.$$file .tmp2.$$file ; \ 401.1Scgd done 41