make: load only required dependency files.
commit27fa7479801ac23609110535a997b2e3ed6eb867
authorVictor Kaplansky <victork@redhat.com>
Sun, 9 Aug 2015 09:39:59 +0000 (9 12:39 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 13 Aug 2015 11:08:25 +0000 (13 14:08 +0300)
treefbdb3219027a9ccbbe5eb3637414465fe9b2b01c
parent998b7b1db4f61ee2784d8e9050c3dda15abd4425
make: load only required dependency files.

The old rules.mak loads dependency .d files using include directive
with file glob pattern "*.d". This breaks the build when build tree has
left-over *.d files from another build.

This patch fixes this by
  - loading precise list of .d files made from *.o and *.mo.
  - specifying explicit list of required dependency info files for
     *.hex autogenerated sources.

Note that Makefile still includes some .d in root directory by including
"*.d".

Signed-off-by: Victor Kaplansky <victork@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/Makefile.objs
rules.mak