From: Fam Zheng Date: Tue, 27 May 2014 07:54:19 +0000 (+0800) Subject: rules.mak: Rewrite unnest-vars X-Git-Tag: v2.1.0-rc0~65^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c33ac5716af0840d8a2c568a47bcbee51946d69;p=thirdparty%2Fqemu.git rules.mak: Rewrite unnest-vars 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: Fam Zheng Signed-off-by: Paolo Bonzini --- diff --git a/rules.mak b/rules.mak index b12d3125d30..dde8e009894 100644 --- a/rules.mak +++ b/rules.mak @@ -22,9 +22,7 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d # Same as -I$(SRC_PATH) -I., but for the nested source/object directories QEMU_INCLUDES += -I$(