Makefile revision 1.11
11.11Stv# $NetBSD: Makefile,v 1.11 2001/11/14 21:59:32 tv 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.11Stv.undef DESTDIR 271.1Scgd.include <bsd.lib.mk> 281.1Scgd 291.1Scgdlib${LIB}.o:: ${OBJS} 301.1Scgd @echo building standard ${LIB} library 311.1Scgd @rm -f lib${LIB}.o 321.1Scgd @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 331.1Scgd 341.1Scgdupdate-sources: 351.9Ssimonb -@for file in ${LIBZSRCS} ${LIBZHDRS}; do \ 361.9Ssimonb tail +2 ${.CURDIR}/../../../lib/libz/$$file > .tmp1.$$file ; \ 371.9Ssimonb tail +2 ${.CURDIR}/$$file > .tmp2.$$file ; \ 381.9Ssimonb cmp -s .tmp1.$$file .tmp2.$$file || ( echo Updating $$file ; \ 391.9Ssimonb cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR} ) ; \ 401.9Ssimonb rm .tmp1.$$file .tmp2.$$file ; \ 411.1Scgd done 42