aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 998f866..01be04b 100644
--- a/Makerules
+++ b/Makerules
@@ -276,6 +276,17 @@ ifndef sysd-rules-done
no_deps=t
endif
+# Generate version maps.
+ifeq ($(versioning),yes)
+-include $(common-objpfx)sysd-versions
+$(common-objpfx)sysd-versions: $(..)Versions.def $(..)versions.awk \
+ $(wildcard $(all-subdirs:%=$(..)%/Versions)) \
+ $(wildcard $(+sysdep_dirs:%=%/Versions))
+ $(AWK) -v buildroot=$(common-objpfx) -v defsfile=$< \
+ -f $(filter-out $<,$^) > $@T
+ mv -f $@T $@
+$(all-version-maps): $(common-objpfx)sysd-versions
+endif
ifndef compile-command.S
compile-command.S = $(compile.S) $(OUTPUT_OPTION)