mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Add support for __DEFAULT_DEPENDENT_OPTIONS
This commit is contained in:
parent
9932374ea3
commit
3b33c213ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=283571
@ -18,6 +18,10 @@
|
||||
# after all this processing, allowing this file to be included
|
||||
# multiple times with different lists.
|
||||
#
|
||||
# Other parts of the build system will set BROKEN_OPTIONS to a list
|
||||
# of options that are broken on this platform. This will not be unset
|
||||
# before returning. Clients are expected to always += this variable.
|
||||
#
|
||||
# Users should generally define WITH_FOO or WITHOUT_FOO, but the build
|
||||
# system should use MK_FOO={yes,no} when it needs to override the
|
||||
# user's desires or default behavior.
|
||||
@ -33,7 +37,11 @@ MK_${var}:= no
|
||||
.else
|
||||
MK_${var}:= yes
|
||||
.endif
|
||||
.else
|
||||
.if ${MK_${var}} != "yes" && ${MK_${var}} != "no"
|
||||
.error "Illegal value for MK_${var}: ${MK_${var}}"
|
||||
.endif
|
||||
.endif # !defined(MK_${var})
|
||||
.endfor
|
||||
.undef __DEFAULT_YES_OPTIONS
|
||||
|
||||
@ -47,6 +55,31 @@ MK_${var}:= yes
|
||||
.else
|
||||
MK_${var}:= no
|
||||
.endif
|
||||
.else
|
||||
.if ${MK_${var}} != "yes" && ${MK_${var}} != "no"
|
||||
.error "Illegal value for MK_${var}: ${MK_${var}}"
|
||||
.endif
|
||||
.endif # !defined(MK_${var})
|
||||
.endfor
|
||||
.undef __DEFAULT_NO_OPTIONS
|
||||
|
||||
#
|
||||
# MK_* options which are always no, usually because they are
|
||||
# unsupported/badly broken on this architecture.
|
||||
#
|
||||
.for var in ${BROKEN_OPTIONS}
|
||||
MK_${var}:= no
|
||||
.endfor
|
||||
|
||||
.for vv in ${__DEFAULT_DEPENDENT_OPTIONS}
|
||||
.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
|
||||
MK_${vv:H}?= no
|
||||
.elif defined(WITH_${vv:H})
|
||||
MK_${vv:H}?= yes
|
||||
.elif defined(WITHOUT_${vv:H})
|
||||
MK_${vv:H}?= no
|
||||
.else
|
||||
MK_${vv:H}?= ${MK_${vv:T}}
|
||||
.endif
|
||||
.endfor
|
||||
.undef __DEFAULT_DEPENDENT_OPTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user