# with subdirectories)
# xxx_DEFINES .. list of config directives to be included in
# config header file of the name <somedir>/xxx.h
+# DOXYGEN .. if non-empty, generated headers includes Doxygen's @file
+# command, so it is possible to document config
+# variables.
# Syntax: $(call BUILD_CONFIG_H_template,<header_file_path>,<list_of_options_to_export>,<header_barrier>)
define BUILD_CONFIG_H_template
mkdir `dirname $(1).tmp` ; fi
@echo "/* Automatically generated from */" > "$(1).tmp"
@echo "/* config file: $$< */" >> "$(1).tmp"
+ $(if $(DOXYGEN),@echo "/** @file */" >> "$(1).tmp")
@echo "#ifndef $(3)" >> "$(1).tmp"
@echo "#define $(3)" >> "$(1).tmp"
@( $(foreach x, $(shell echo '$($(2))' | sed -e 's/\<\([^ =]*\)\(=[^ ]\+\|\)\>/\1/g' ), \