]> git.proxmox.com Git - qemu.git/commit - rules.mak
Fix build for mingw32 on windows ($@ in macro)
authorStefan Weil <weil@mail.berlios.de>
Thu, 19 Nov 2009 19:07:52 +0000 (20:07 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 21:25:59 +0000 (15:25 -0600)
commit7ebf54bca173c1e5b970f9462436b2c151309220
treea9ac4490eae4b65a39557eeafd93e231d0038d43
parentb10fec9bfac17e932f630d341180d04be97074bc
Fix build for mingw32 on windows ($@ in macro)

Make using mingw32 on windows does not preserve $@ in macros
when they are modified using this pattern:
target: macro += something

This behaviour results in an error when QEMU_CFLAGS containing
"-MMD -MP -MT $@" is modified for compilation of source files
which use SDL: $@ will expand to nothing, -MT no longer has
the correct argument (it will take the next one from the command
line) and the build will fail or run with a wrong command line.

The problem is fixed by using a new macro QEMU_DGFLAGS
which is not modified by a target rule.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
rules.mak