Home | History | Annotate | Line # | Download | only in libz
Makefile revision 1.7.4.1
      1  1.7.4.1  thorpej #	$NetBSD: Makefile,v 1.7.4.1 1999/06/21 01:25:34 thorpej Exp $
      2      1.1      cgd 
      3      1.1      cgd LIB=	z
      4      1.7    lukem MKPIC=	no
      5      1.7    lukem MKPROFILE=no
      6      1.1      cgd 
      7  1.7.4.1  thorpej CPPFLAGS=	-I${ZDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS} -D_ZLIB_PRIVATE
      8  1.7.4.1  thorpej 
      9  1.7.4.1  thorpej .PATH.c: ${ZDIR}
     10      1.1      cgd 
     11      1.1      cgd # files to be copied down from libz.
     12      1.1      cgd LIBZSRCS= adler32.c crc32.c infblock.c infcodes.c inffast.c \
     13  1.7.4.1  thorpej         inflate.c inftrees.c infutil.c uncompr.c
     14      1.1      cgd LIBZHDRS= infblock.h infcodes.h inffast.h inftrees.h infutil.h \
     15      1.1      cgd 	zconf.h zlib.h zutil.h
     16      1.1      cgd 
     17      1.1      cgd # Other stuff
     18  1.7.4.1  thorpej SRCS=	${LIBZSRCS} zalloc.c
     19      1.1      cgd 
     20      1.1      cgd # Files to clean up
     21      1.1      cgd CLEANFILES+= lib${LIB}.o
     22      1.6      cjs 
     23      1.6      cjs # only needed during build
     24      1.6      cjs libinstall::
     25      1.1      cgd 
     26      1.1      cgd .include <bsd.lib.mk>
     27      1.1      cgd 
     28      1.1      cgd lib${LIB}.o:: ${OBJS}
     29      1.1      cgd 	@echo building standard ${LIB} library
     30      1.1      cgd 	@rm -f lib${LIB}.o
     31      1.1      cgd 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     32      1.1      cgd 
     33      1.1      cgd update-sources:
     34  1.7.4.1  thorpej 	-@for file in ${LIBZSRCS} ${LIBZHDRS}; do \
     35  1.7.4.1  thorpej 		tail +2 ${.CURDIR}/../../../lib/libz/$$file > .tmp1.$$file ; \
     36  1.7.4.1  thorpej 		tail +2 ${.CURDIR}/$$file > .tmp2.$$file ; \
     37  1.7.4.1  thorpej 		cmp -s .tmp1.$$file .tmp2.$$file || ( echo Updating $$file ; \
     38  1.7.4.1  thorpej 		  cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR} ) ; \
     39  1.7.4.1  thorpej 		rm .tmp1.$$file .tmp2.$$file ; \
     40      1.1      cgd 	done
     41