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.
BINGRP
BINMODE
BINOWN
BSDOBJDIR
BSDSRCDIR
DIRMODE
DOCDIR
DOCGRP
DOCMODE
${NONBINMODE}
]DOCOWN
INSTALL_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_STRIP
INSTALL_STRIP
is not set if
${DEBUG}
is defined.
[-s
]LIBDIR
LIBGRP
${BINGRP}
]LIBMODE
${NONBINMODE}
]LIBOWN
${BINOWN}
]MANDIR
MANGRP
MANMODE
${NONBINMODE}
]MANOWN
NONBINMODE
XOBJDIR
XSRCDIR
Additionally, 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>
):
BUILDUSER
BUILDUSER
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_CACHE
KEEPKERNELS
NOPIC
NOPIE
NOPROFILE
PIPE
-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.SKEY
SKIPDIR
BSDSRCDIR
, to be skipped during "make
build".SUDO
SYS_INCLUDE
WARNINGS
CDIAGFLAGS
, e.g. -Wall
...)
to compiles. [no]WOBJGROUP
BSDOBJDIR
and
XOBJDIR
. [wobj]WOBJUMASK
XENOCARA_BUILD_DRI
XENOCARA_RERUN_AUTOCONF
The mk.conf
manual page first appeared in
OpenBSD 3.4.
August 8, 2019 | OpenBSD-current |