From: Willy Tarreau Date: Thu, 21 May 2026 07:24:45 +0000 (+0200) Subject: BUILD: makefile: add macros enable_opts and disable_opts X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/static/gitweb.js?a=commitdiff_plain;h=d92c997c680dc267c5995e66c0ae603d628855cb;p=haproxy.git BUILD: makefile: add macros enable_opts and disable_opts These ones are used to only enable or disable selected options. --- diff --git a/include/make/options.mk b/include/make/options.mk index 75c84e605..87d82788f 100644 --- a/include/make/options.mk +++ b/include/make/options.mk @@ -8,6 +8,12 @@ # there unless you're adding support for a new platform. default_opts = $(foreach name,$(1),$(eval $(name)=implicit)) +# Disables all specified options +disable_opts = $(foreach name,$(1),$(eval $(name)=0)) + +# Enables all specified options +enable_opts = $(foreach name,$(1),$(eval $(name)=1)) + # Return USE_xxx=$(USE_xxx) if the variable was set from the environment or the # command line. ignore_implicit = $(if $(subst environment,,$(origin $(1))), \