[BACK]Return to BUILDING CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/BUILDING between version 1.71.4.1 and 1.72

version 1.71.4.1, 2008/09/18 04:27:23 version 1.72, 2008/08/05 19:43:33
Line 108  CONFIGURATION
Line 108  CONFIGURATION
   
      MAKEOBJDIR        Directory to use as the .OBJDIR for the current direc-       MAKEOBJDIR        Directory to use as the .OBJDIR for the current direc-
                        tory.  The value is subjected to variable expansion by                         tory.  The value is subjected to variable expansion by
                        make(1).  Typical usage is to set this variable to a                         make(1).  Used only if MAKEOBJDIRPREFIX is not defined.
                        value involving the use of `${.CURDIR:S...}' or                         MAKEOBJDIR can only be provided in the environment or
                        `${.CURDIR:C...}', to derive the value of .OBJDIR from                         via the -O flag of build.sh.
                        the value of .CURDIR.  Used only if MAKEOBJDIRPREFIX is  
                        not defined.  MAKEOBJDIR can be provided only in the  
                        environment or via the -O flag of build.sh; it cannot  
                        usefully be set inside a Makefile.  
   
      MAKEOBJDIRPREFIX  Top level directory of the object directory tree.  If       MAKEOBJDIRPREFIX  Top level directory of the object directory tree.  If
                        specified, must be an absolute path.  If this is                         specified, must be an absolute path.  If this is
                        defined, ${MAKEOBJDIRPREFIX}/${.CURDIR} is used as the                         defined, ${MAKEOBJDIRPREFIX}/${.CURDIR} is used as the
                        .OBJDIR for the current directory.  The current direc-                         .OBJDIR for the current directory.  The current direc-
                        tory may be read only.  MAKEOBJDIRPREFIX can be pro-                         tory may be read only.  MAKEOBJDIRPREFIX can only be
                        vided only in the environment or via the -M flag of                         provided in the environment or via the -M flag of
                        build.sh; it cannot usefully be set inside a Makefile.                         build.sh.
   
    "make" variables     "make" variables
      Several variables control the behavior of NetBSD builds.  Unless other-       Several variables control the behavior of NetBSD builds.  Unless other-
Line 193  CONFIGURATION
Line 189  CONFIGURATION
   
                  Default: ``yes''                   Default: ``yes''
   
      MKHTML      Can be set to ``yes'' or ``no''.  Indicates whether prefor-  
                  matted HTML manual pages will be built and installed  
   
                  Default: ``yes''  
   
      MKHOSTOBJ   Can be set to ``yes'' or ``no''.  If set to ``yes'', then for       MKHOSTOBJ   Can be set to ``yes'' or ``no''.  If set to ``yes'', then for
                  programs intended to be run on the compile host, the name,                   programs intended to be run on the compile host, the name,
                  release, and architecture of the host operating system will                   release, and architecture of the host operating system will
Line 301  CONFIGURATION
Line 292  CONFIGURATION
      MKX11       Can be set to ``yes'' or ``no''.  Indicates whether X11R6 is       MKX11       Can be set to ``yes'' or ``no''.  Indicates whether X11R6 is
                  built from X11SRCDIR.                   built from X11SRCDIR.
   
                  Mutually exclusive to MKXORG != no.  
   
                  Default: ``no''  
   
      MKXORG      Can be set to ``yes'' or ``no''.  Indicates whether X11R7  
                  (modular Xorg) is built from X11SRCDIR.  
   
                  Mutually exclusive to MKX11 != no.  
   
                  Default: ``no''                   Default: ``no''
   
      TOOLDIR     Directory to hold the host tools, once built.  If specified,       TOOLDIR     Directory to hold the host tools, once built.  If specified,
Line 427  BUILDING
Line 409  BUILDING
   
      -j njob    Run up to njob make(1) subjobs in parallel.  Makefiles should       -j njob    Run up to njob make(1) subjobs in parallel.  Makefiles should
                 use .WAIT or have explicit dependencies as necessary to                  use .WAIT or have explicit dependencies as necessary to
                 enforce build ordering.                  enforce build ordering.  If you see build failures with -j,
                   please save complete build logs so the failures can be ana-
                   lyzed.
   
      -m dir     Specify the default directory for searching for system Make-       -m dir     Specify the default directory for searching for system Make-
                 file segments, mainly the <bsd.*.mk> files.  When building any                  file segments, mainly the <bsd.*.mk> files.  When building any
Line 636  BUILDING
Line 620  BUILDING
      makewrapper   Create the nbmake-MACHINE wrapper.  This operation is auto-       makewrapper   Create the nbmake-MACHINE wrapper.  This operation is auto-
                    matically performed for any of the other operations.                     matically performed for any of the other operations.
   
      cleandir      Perform ``make cleandir''.  
   
      obj           Perform ``make obj''.       obj           Perform ``make obj''.
   
      tools         Build and install the host tools from src/tools.  This com-       tools         Build and install the host tools from src/tools.  This com-
Line 717  BUILDING
Line 699  BUILDING
      -h        Print a help message.       -h        Print a help message.
   
      -j njob   Run up to njob make(1) subjobs in parallel; passed through to       -j njob   Run up to njob make(1) subjobs in parallel; passed through to
                make(1).  If you see failures for reasons other than running                 make(1).  Makefiles should use .WAIT or have explicit dependan-
                out of memory while using build.sh with -j, please save com-                 cies as necessary to enforce build ordering.  If you see build
                plete build logs so the failures can be analyzed.                 failures with -j, please save complete build logs so the fail-
                  ures can be analyzed.
                To achieve the fastest builds, -j values between (1 + the num-  
                ber of CPUs) and (2 * the number of CPUs) are recommended.  Use       -M obj    Set MAKEOBJDIRPREFIX to obj.  If a relative path is specified,
                lower values on machines with limited memory or I/O bandwidth.                 it will be converted to an absolute path before being used.
                  Unsets MAKEOBJDIR.
      -M obj    Set MAKEOBJDIRPREFIX to obj.  For instance, if the source  
                directory is /usr/src, a setting of ``-M /usr/obj'' will place  
                build-time files under /usr/obj/usr/src/bin,  
                /usr/obj/usr/src/lib, /usr/obj/usr/src/usr.bin, and so forth.  
                If a relative path is specified, it will be converted to an  
                absolute path before being used.  Unsets MAKEOBJDIR.  See ``-O  
                -obj'' for more information.  
   
      -m mach   Set the value of MACHINE to mach, except in some special cases       -m mach   Set the value of MACHINE to mach, except in some special cases
                listed below.  This will also override any value of                 listed below.  This will also override any value of
Line 767  BUILDING
Line 742  BUILDING
                -n''.                 -n''.
   
      -O obj    Create an appropriate transform macro for MAKEOBJDIR that will       -O obj    Create an appropriate transform macro for MAKEOBJDIR that will
                place the built object files under obj.  For instance, a set-                 place the built object files under obj.  If a relative path is
                ting of ``-O /usr/obj'' will place build-time files under                 specified, it will be converted to an absolute path before
                /usr/obj/bin, /usr/obj/lib, /usr/obj/usr.bin, and so forth.  If                 being used.  For instance, a setting of /usr/obj will place
                a relative path is specified, it will be converted to an abso-                 build-time files under /usr/obj/bin, /usr/obj/lib,
                lute path before being used.  Unsets MAKEOBJDIRPREFIX.                 /usr/obj/usr.bin, and so forth.  Unsets MAKEOBJDIRPREFIX.
   
                In normal use, exactly one of the -M or -O options should be  
                specified.  If the source directory is /usr/src and neither -M  
                nor -O is specified, then a default object directory will be  
                chosen according to rules in <bsd.obj.mk>; this default is usu-  
                ally either /usr/obj or /usr/obj.MACHINE.  
   
      -o        Set the value of MKOBJDIRS to ``no''.  Otherwise, it will be       -o        Set the value of MKOBJDIRS to ``no''.  Otherwise, it will be
                automatically set to ``yes''.  This default is opposite to the                 automatically set to ``yes''.  This default is opposite to the
Line 880  HISTORY
Line 849  HISTORY
      The build.sh based build scheme was introduced for NetBSD 1.6 as       The build.sh based build scheme was introduced for NetBSD 1.6 as
      USE_NEW_TOOLCHAIN, and re-worked to TOOLCHAIN_MISSING after that.       USE_NEW_TOOLCHAIN, and re-worked to TOOLCHAIN_MISSING after that.
   
 NetBSD                          August 18, 2008                         NetBSD  BUGS
        A few platforms are not yet using this build system.
   
   NetBSD                          March 18, 2008                          NetBSD

Legend:
Removed from v.1.71.4.1  
changed lines
  Added in v.1.72

CVSweb <webmaster@jp.NetBSD.org>