Skip to content
  • Fam Zheng's avatar
    rules.mak: Rewrite unnest-vars · 1c33ac57
    Fam Zheng authored
    
    
    The macro unnest-vars is the most important, complicated but hard to
    track magic in QEMU's build system.
    
    Rewrite it in a (hopefully) clearer way, with more comments, to make it
    easier to understand and maintain.
    
    Remove DSO_CFLAGS and module-objs-m that are not used.
    
    A bonus fix of this version is, per object variables are properly
    protected in save-objs and load-objs, before including sub-dir
    Makefile.objs, just as nested variables are. So the occasional same
    object name from different directory levels won't step on each other's
    foot.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    1c33ac57