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.inc

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.inc,v 1.12 2003/11/07 23:34:28 dsl Exp $
    2 #
    3 #       Configuration variables (default values are below):
    4 #
    5 #       S       must be set to the top of the 'sys' tree.
    6 #       ZDST    may be set to the location of the directory where library
    7 #               objects are to be built.  Defaults to ${.OBJDIR}/lib/z.
    8 #       Z_AS    may be set to 'obj' to build a object from the library's
    9 #               object files.  (Otherwise, a library will be built.)
   10 #               Defaults to 'library'.
   11 #       ZMISCCPPFLAGS
   12 #               Miscellaneous cpp flags to be passed to the library's Makefile
   13 #               when building.
   14 #       ZMISCMAKEFLAGS
   15 #               Miscellaneous flags to be passed to the library's Makefile when
   16 #               building.  See library's Makefile for more details about
   17 #               supported flags and their default values.
   18 
   19 # Default values:
   20 ZDST?=          ${.OBJDIR}/lib/z
   21 Z_AS?=          library
   22 ZDOTDIR?= ../../.
   23 
   24 ZDIR=           ${S:S@^.@${ZDOTDIR}@:Q}/lib/libz
   25 .if (${Z_AS} == "obj")
   26 ZLIB=           ${ZDST}/libz.o
   27 ZLIB_PROF=      ${ZDST}/libz.po
   28 .else
   29 ZLIB=           ${ZDST}/libz.a
   30 ZLIB_PROF=      ${ZDST}/libz_p.a
   31 .endif
   32 
   33 ZMAKE= \
   34         cd ${ZDST} && ${MAKE} -f ${ZDIR:Q}/Makefile \
   35             ZDIR=${ZDIR:Q} \
   36             CC=${CC:Q} CFLAGS=${CFLAGS:Q} \
   37             AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
   38             LORDER=${LORDER:Q} \
   39             TSORT=${TSORT:Q} \
   40             LD=${LD:Q} STRIP=${STRIP:Q} \
   41             AR=${AR:Q} NM=${NM:Q} \
   42             RANLIB=${RANLIB:Q} SIZE=${SIZE:Q} \
   43             MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
   44             ZCPPFLAGS=${CPPFLAGS:S@^-I.@-I${ZDOTDIR}@g:Q} \
   45             ZMISCCPPFLAGS=${ZMISCCPPFLAGS:Q} \
   46             ${ZMISCMAKEFLAGS}
   47 
   48 ${ZLIB}:                .NOTMAIN .MAKE __always_make_zlib
   49         @echo making sure the z library is up to date...
   50 .if (${Z_AS} == "library")
   51         @${ZMAKE} libz.a
   52 .else
   53         @${ZMAKE} libz.o
   54 .endif
   55 
   56 ${ZLIB_PROF}:           .NOTMAIN .MAKE __always_make_zlib
   57         @echo making sure the profiled z library is up to date...
   58 .if (${Z_AS} == "library")
   59         @${ZMAKE} libz_p.a
   60 .else
   61         @${ZMAKE} libz.po
   62 .endif
   63 
   64 clean:                  .NOTMAIN cleanzlib
   65 cleanzlib:              .NOTMAIN
   66         @echo cleaning the z library objects
   67         @if [ -d "${ZDST}" ]; then ${ZMAKE} clean; fi
   68 
   69 cleandir distclean:     .NOTMAIN cleandirzlib
   70 cleandirzlib:           .NOTMAIN
   71         @echo cleandiring the z library objects
   72         @if [ -d "${ZDST}" ]; then ${ZMAKE} cleandir; fi
   73 
   74 dependall depend:       .NOTMAIN dependzlib
   75 dependzlib:             .NOTMAIN .MAKE __always_make_zlib
   76         @echo depending the z library objects
   77         @${ZMAKE} depend
   78 
   79 __always_make_zlib:     .NOTMAIN
   80         @mkdir -p ${ZDST}
   81 
   82 .PHONY: __always_make_zlib
   83 .PHONY: cleanzlib cleandirzlib dependzlib

Cache object: dc37c7d1d21163b0af64f6e0c1dd342a


[ 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.