MK.CONF(5)

NAME
mk.conf - make configuration file

DESCRIPTION
The mk.conf file overrides various parameters used during the build of the system.

Listed below are the mk.conf variables that may be set, the values to which each may be set, a brief description of what each variable does, and a reference to relevant manual pages.

  NetBSD System variables

BSDOBJDIR
    The real path to the system ‘obj’ tree, so that ‘make obj’ will work correctly. Default: /usr/obj.

BSDSRCDIR
    The real path to the system sources, so that ‘make obj’ will work correctly. Default: /usr/src.

BUILD
    If defined, ‘make install’ checks that the targets in the source directories are up-to-date and remakes them if they are out of date, instead of blindly trying to install out of date or non-existant targets.

COPTS
    Extra options for the C compiler. Should be appended to (e.g., COPTS+=-g), rather than explicitly set.

MANZ
    Install manual pages compressed with gzip(1).

MKCATPAGES
    If ‘no’, don't build or install the formatted manual pages.

MKDOC
    If ‘no’, don't build or install the miscellaneous documentation.

MKINFO
    If ‘no’, don't build or install the TeXinfo Info documentation.

MKLINT
    If ‘no’, don't build or install the lint libraries.

MKMAN
    If ‘no’, don't build or install the manual pages. Sets MKCATPAGES=no.

MKNLS
    If ‘no’, don't build or install the NLS files.

MKOBJ
    If ‘no’, don't create objdirs.

MKPIC
    If ‘no’, don't build or install shared libraries.

MKPICINSTALL
    If ‘no’, don't install the ‘*_pic.a’ libraries.

MKPROFILE
    If ‘no’, don't build or install the ‘*_p.a’ profiling libraries.

MKSHARE
    If ‘no’, set MKCATPAGES=no, MKDOC=no, MKINFO=no, MKMAN=no, MKNLS=no.

OBJMACHINE
    If defined, creates objdirs of the form obj.<arch>, where ‘<arch>’ is the current architecture (as per ‘uname -m’).

UPDATE
    If defined, ‘make install’ only installs targets that are more recently modified in the source directories that their installed counterparts.

UVM The system is using the new UVM virtual memory subsystem.

  Pkgsrc system variables
Please see packages(7) for more variables used internally by the package system and /usr/pkgsrc/mk/mk.conf.example for package-specific examples.

FILES

/etc/mk.conf
    This file.

/usr/pkgsrc/mk/mk.conf.example
    Examples for settings regarding the pkgsrc collection.

SEE ALSO
make(1), packages(7)

HISTORY
The mk.conf file appeared in NetBSD 1.2.