2014-04-18 17:04:09 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Option file for src builds.
|
|
|
|
#
|
|
|
|
# Users define WITH_FOO and WITHOUT_FOO on the command line or in /etc/src.conf
|
|
|
|
# and /etc/make.conf files. These translate in the build system to MK_FOO={yes,no}
|
|
|
|
# with sensible (usually) defaults.
|
|
|
|
#
|
|
|
|
# Makefiles must include bsd.opts.mk after defining specific MK_FOO options that
|
|
|
|
# are applicable for that Makefile (typically there are none, but sometimes there
|
|
|
|
# are exceptions). Recursive makes usually add MK_FOO=no for options that they wish
|
|
|
|
# to omit from that make.
|
|
|
|
#
|
|
|
|
# Makefiles must include bsd.srcpot.mk before they test the value of any MK_FOO
|
|
|
|
# variable.
|
|
|
|
#
|
|
|
|
# Makefiles may also assume that this file is included by bsd.own.mk should it
|
|
|
|
# need variables defined there prior to the end of the Makefile where
|
|
|
|
# bsd.{subdir,lib.bin}.mk is traditionally included.
|
|
|
|
#
|
|
|
|
# The old-style YES_FOO and NO_FOO are being phased out. No new instances of them
|
|
|
|
# should be added. Old instances should be removed since they were just to
|
|
|
|
# bridge the gap between FreeBSD 4 and FreeBSD 5.
|
|
|
|
#
|
|
|
|
# Makefiles should never test WITH_FOO or WITHOUT_FOO directly (although an
|
|
|
|
# exception is made for _WITHOUT_SRCONF which turns off this mechanism
|
|
|
|
# completely).
|
|
|
|
#
|
|
|
|
|
|
|
|
.if !target(__<bsd.opts.mk>__)
|
|
|
|
__<bsd.opts.mk>__:
|
|
|
|
|
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
|
|
|
#
|
|
|
|
# Define MK_* variables (which are either "yes" or "no") for users
|
|
|
|
# to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
|
|
|
|
# make(1) environment.
|
|
|
|
# These should be tested with `== "no"' or `!= "no"' in makefiles.
|
|
|
|
# The NO_* variables should only be set by makefiles for variables
|
|
|
|
# that haven't been converted over.
|
|
|
|
#
|
|
|
|
|
2014-05-27 16:30:54 +00:00
|
|
|
# Only these options are used by bsd.*.mk. KERBEROS and OPENSSH are
|
|
|
|
# unforutnately needed to support statically linking the entire
|
|
|
|
# tree. su(1) wouldn't link since it depends on PAM which depends on
|
|
|
|
# ssh libraries when building with OPENSSH, and likewise for KERBEROS.
|
|
|
|
|
|
|
|
# All other variables used to build /usr/src live in src.opts.mk
|
|
|
|
# and variables from both files are documented in src.conf(5).
|
2014-04-25 19:25:53 +00:00
|
|
|
|
|
|
|
__DEFAULT_YES_OPTIONS = \
|
|
|
|
ASSERT_DEBUG \
|
2014-05-10 16:38:54 +00:00
|
|
|
DOCCOMPRESS \
|
2014-11-18 17:06:44 +00:00
|
|
|
INCLUDES \
|
2014-04-25 19:25:53 +00:00
|
|
|
INSTALLLIB \
|
|
|
|
KERBEROS \
|
|
|
|
MAN \
|
|
|
|
MANCOMPRESS \
|
|
|
|
NIS \
|
2014-04-29 14:52:39 +00:00
|
|
|
NLS \
|
2014-04-25 19:25:53 +00:00
|
|
|
OPENSSH \
|
|
|
|
PROFILE \
|
|
|
|
SSP \
|
|
|
|
SYMVER \
|
2014-05-10 16:37:53 +00:00
|
|
|
TOOLCHAIN \
|
|
|
|
WARNS
|
2014-04-25 19:25:53 +00:00
|
|
|
|
|
|
|
__DEFAULT_NO_OPTIONS = \
|
|
|
|
CTF \
|
|
|
|
DEBUG_FILES \
|
2014-06-08 17:29:31 +00:00
|
|
|
INSTALL_AS_USER \
|
2014-08-19 15:04:32 +00:00
|
|
|
INFO
|
2014-04-18 17:04:09 +00:00
|
|
|
|
2014-04-18 17:04:26 +00:00
|
|
|
.include <bsd.mkopt.mk>
|
2014-04-18 17:04:09 +00:00
|
|
|
|
2014-05-07 18:14:56 +00:00
|
|
|
#
|
|
|
|
# Supported NO_* options (if defined, MK_* will be forced to "no",
|
|
|
|
# regardless of user's setting).
|
|
|
|
#
|
|
|
|
# These are transitional and will disappaer in the FreeBSD 12.
|
|
|
|
#
|
|
|
|
.for var in \
|
|
|
|
CTF \
|
|
|
|
DEBUG_FILES \
|
|
|
|
INSTALLLIB \
|
|
|
|
MAN \
|
2014-05-10 16:37:53 +00:00
|
|
|
PROFILE \
|
|
|
|
WARNS
|
2014-05-07 18:14:56 +00:00
|
|
|
.if defined(NO_${var})
|
|
|
|
# This warning may be premature...
|
|
|
|
#.warning "NO_${var} is defined, but deprecated. Please use MK_${var}=no instead."
|
|
|
|
MK_${var}:=no
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2014-04-18 17:04:09 +00:00
|
|
|
.endif # !_WITHOUT_SRCCONF
|
|
|
|
|
|
|
|
.endif
|