| MK.CONF(5) | File Formats Manual | MK.CONF(5) |
mk.conf —
system-specific configuration parameters
.include <bsd.own.mk>
To get system-specific configuration parameters,
<bsd.own.mk> will try to
include the file specified by the MAKECONF variable.
If MAKECONF is not set, or no such file exists, the
system make configuration file /etc/mk.conf is
included, if it exists. By default, this file does not exist, and must be
created from scratch. For more information on how the make process works,
and details of the format of make files, see
make(1).
<bsd.own.mk> is
generally useful when building Makefiles, so that they use the same default
owners, etc. as the rest of the tree. These files may define any of the
variables described below. Additionally, see
bsd.port.mk(5) for a list of
variables that can be set by the
ports(7) subsystem.
The following variables are set by
<bsd.own.mk>, if they are
not already defined. Defaults are in brackets.
BINGRPBINMODEBINOWNBSDOBJDIRBSDSRCDIRDIRMODEDOCDIRDOCGRPDOCMODE${NONBINMODE}]DOCOWNINSTALL_COPY-p option). See
install(1) for details. This
is to be used when building an install script so that the entire system
can either be installed with copies, or copy-if-different using a single
knob. [-c]INSTALL_STRIPINSTALL_STRIP is not set if
${DEBUG} is defined.
[-s]LIBDIRLIBGRP${BINGRP}]LIBMODE${NONBINMODE}]LIBOWN${BINOWN}]MANDIRMANGRPMANMODE${NONBINMODE}]MANOWNNONBINMODEXOBJDIRXSRCDIRAdditionally, the following variables may be set by
<bsd.own.mk> or in a make
configuration file to modify the behaviour of the system build process
(default values are in brackets along with comments, if set by
<bsd.own.mk>):
BUILDUSERBUILDUSER when
building the base system from source or making release tarballs.
[build]DEBUG-g to build with debugging symbols. Also doesn't
set INSTALL_STRIP to -s
per default if defined.GLOBAL_AUTOCONF_CACHEKEEPKERNELSNOPICNOPIENOPROFILEPIPE-pipe option which can speed up compiles on
machines with memory to spare. Instead of using temp files,
gcc(1) uses pipes for the
temporary data.SKEYSKIPDIRBSDSRCDIR, to be skipped during "make
build".SUDOSYS_INCLUDEWARNINGSCDIAGFLAGS, e.g. -Wall...)
to compiles. [no]WOBJGROUPBSDOBJDIR and
XOBJDIR. [wobj]WOBJUMASKXENOCARA_BUILD_DRIXENOCARA_RERUN_AUTOCONFThe mk.conf manual page first appeared in
OpenBSD 3.4.
| August 8, 2019 | openbsd |