The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/lib/libz/Makefile

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 28c33b9aaab04c3544f3e23514a99f55


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.