mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
32 lines
819 B
Makefile
32 lines
819 B
Makefile
XEN_ROOT = ../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
SUBDIRS := 32bit
|
|
|
|
.PHONY: all
|
|
all: subdirs-all
|
|
$(MAKE) BIOS-bochs-latest
|
|
|
|
.PHONY: clean
|
|
clean: subdirs-clean
|
|
rm -f *.o *.a *.s rombios.bin _rombios*_.c
|
|
rm -f as86-sym.txt ld86-sym.txt
|
|
rm -f rombios*.txt rombios*.sym usage biossums
|
|
rm -f BIOS-bochs-*
|
|
rm -f $(DEPS)
|
|
|
|
BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c
|
|
gcc -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.c
|
|
bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
|
|
sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s
|
|
as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt
|
|
-perl makesym.perl < rombios.txt > rombios.sym
|
|
mv tmp.bin BIOS-bochs-latest
|
|
./biossums BIOS-bochs-latest
|
|
rm -f _rombios_.s
|
|
|
|
biossums: biossums.c
|
|
gcc -o biossums biossums.c
|
|
|
|
-include $(DEPS)
|