Cross Reference: Makefile
xref: /src/sys/lib/libz/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/lib/libz/
Makefile revision 1.9
11.9Ssimonb#	$NetBSD: Makefile,v 1.9 1999/04/15 02:28:36 simonb Exp $
21.1Scgd
31.1ScgdLIB=	z
41.7SlukemMKPIC=	no
51.7SlukemMKPROFILE=no
61.1Scgd
71.3ScgdCPPFLAGS=	-I. ${ZCPPFLAGS} ${ZMISCCPPFLAGS} -D_ZLIB_PRIVATE
81.1Scgd
91.1Scgd# files to be copied down from libz.
101.1ScgdLIBZSRCS= adler32.c crc32.c infblock.c infcodes.c inffast.c \
111.8Ssimonb        inflate.c inftrees.c infutil.c uncompr.c
121.1ScgdLIBZHDRS= infblock.h infcodes.h inffast.h inftrees.h infutil.h \
131.1Scgd	zconf.h zlib.h zutil.h
141.1Scgd
151.1Scgd# Other stuff
161.8SsimonbSRCS=	${LIBZSRCS} zalloc.c
171.1Scgd
181.1Scgd# Files to clean up
191.1ScgdCLEANFILES+= lib${LIB}.o
201.6Scjs
211.6Scjs# only needed during build
221.6Scjslibinstall::
231.1Scgd
241.1Scgd.include <bsd.lib.mk>
251.1Scgd
261.1Scgdlib${LIB}.o:: ${OBJS}
271.1Scgd	@echo building standard ${LIB} library
281.1Scgd	@rm -f lib${LIB}.o
291.1Scgd	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
301.1Scgd
311.1Scgdupdate-sources:
321.9Ssimonb	-@for file in ${LIBZSRCS} ${LIBZHDRS}; do \
331.9Ssimonb		tail +2 ${.CURDIR}/../../../lib/libz/$$file > .tmp1.$$file ; \
341.9Ssimonb		tail +2 ${.CURDIR}/$$file > .tmp2.$$file ; \
351.9Ssimonb		cmp -s .tmp1.$$file .tmp2.$$file || ( echo Updating $$file ; \
361.9Ssimonb		  cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR} ) ; \
371.9Ssimonb		rm .tmp1.$$file .tmp2.$$file ; \
381.1Scgd	done
39

Indexes created Thu Jan 01 03:09:32 GMT 2026