Use -MMD -MF in tools/* rather than -Wp,-M...
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Jan 2009 10:16:05 +0000 (10:16 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Jan 2009 10:16:05 +0000 (10:16 +0000)
commit9f8501582f1c60c0a631a89499fb81d8f197fb30
tree9f7b768cc4205e09038c454d339b871099a7c324
parentceff4bb8a36948e4216022511b263831e7e7190f
Use -MMD -MF in tools/* rather than -Wp,-M...

If you use -MMD -MF then the correct .o filename is written to the
.*.d file as the compiler driver arranges everything.  This was done
in 19010:275abe1c5d24 for the hypervisor.

In this patch we do the same elsewhere in the xen-unstable tree,
particularly tools/.  Specifically:
 * Change tools/Rules.mk to add -MMD -MF ... to CFLAGS and set DEPS.
 * Remove -Wp,-MD... from every other Makefile
 * Remove setting of DEPS from every other Makefile
 * Ensure that every Makefile says -include $(DEPS)
 * Ensure that every Makefile's clean target removes $(DEPS)

Some Makefiles were already halfway there, but often for a different
variable name eg PROG_DEP.  The variable name is now standardised in
Rules.mk as DEPS.

I have done a test build with this change, on Debian etch.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
28 files changed:
tools/Rules.mk
tools/blktap/drivers/Makefile
tools/console/Makefile
tools/firmware/hvmloader/Makefile
tools/firmware/hvmloader/acpi/Makefile
tools/firmware/rombios/32bit/Makefile
tools/firmware/rombios/32bit/tcgbios/Makefile
tools/firmware/rombios/Makefile
tools/flask/libflask/Makefile
tools/flask/loadpolicy/Makefile
tools/fs-back/Makefile
tools/libfsimage/Rules.mk
tools/libfsimage/common/Makefile
tools/libxc/Makefile
tools/misc/Makefile
tools/pygrub/Makefile
tools/python/Makefile
tools/vnet/libxutil/Makefile
tools/vtpm/Rules.mk
tools/vtpm_manager/Rules.mk
tools/xcutils/Makefile
tools/xenmon/Makefile
tools/xenpmd/Makefile
tools/xenstat/libxenstat/Makefile
tools/xenstat/xentop/Makefile
tools/xenstore/Makefile
tools/xentrace/Makefile
xen/arch/ia64/tools/p2m_foreign/Makefile