]> git.proxmox.com Git - mirror_qemu.git/commitdiff
rules.mak: Allow .mo-objs and .mo-cflags in -y variables
authorFam Zheng <famz@redhat.com>
Tue, 28 Oct 2014 08:47:54 +0000 (16:47 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Oct 2014 10:26:25 +0000 (11:26 +0100)
Expand %.mo-objs in -y nested objects, so that we can write combined
object -cflags rules like what will be done in the coming patch.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rules.mak

index cf76b88d2654c53d9cdb5d23593f7966bb442c26..f500fefdd15e99f227f4013df1ec5dc7a1949d15 100644 (file)
--- a/rules.mak
+++ b/rules.mak
@@ -362,4 +362,9 @@ define unnest-vars
         # Include all the .d files
         $(eval -include $(addsuffix *.d, $(sort $(dir $($v)))))
         $(eval $v := $(filter-out %/,$($v))))
+
+    # For all %.mo objects that are directly added into -y, expand them to %.mo-objs
+    $(foreach v,$2,
+        $(eval $v := $(foreach o,$($v),$(if $($o-objs),$($o-objs),$o))))
+
 endef