ia64/xen-unstable
changeset 19103:dbf53b739af0
x86-64: don't generate dependency files when building compat headers
The generated dependency files weren't correct (as their names get
derived only from the base name of the target file, and there are
public headers with the same base name in different directories), not
needed (as the makefile already listed all necessary dependencies
explicitly), and resulted in the first re-build in an already built
tree to be an almost full re-build since the *.c files explicitly
mentioned in the .*.d result in make not considering them as
intermediate anymore, thus triggering re-generation of the headers,
and hence re-building of almost the entire tree.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
The generated dependency files weren't correct (as their names get
derived only from the base name of the target file, and there are
public headers with the same base name in different directories), not
needed (as the makefile already listed all necessary dependencies
explicitly), and resulted in the first re-build in an already built
tree to be an almost full re-build since the *.c files explicitly
mentioned in the .*.d result in make not considering them as
intermediate anymore, thus triggering re-generation of the headers,
and hence re-building of almost the entire tree.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue Jan 27 11:54:22 2009 +0000 (2009-01-27) |
parents | 6e623569455c |
children | bcf77bfd1161 |
files | xen/include/Makefile |
line diff
1.1 --- a/xen/include/Makefile Tue Jan 27 11:45:59 2009 +0000 1.2 +++ b/xen/include/Makefile Tue Jan 27 11:54:22 2009 +0000 1.3 @@ -51,7 +51,7 @@ compat/%.h: compat/%.i Makefile 1.4 mv -f $@.new $@ 1.5 1.6 compat/%.i: compat/%.c Makefile 1.7 - $(CPP) $(CFLAGS) $(cppflags-y) -o $@ $< 1.8 + $(CPP) $(filter-out -M% .%.d,$(CFLAGS)) $(cppflags-y) -o $@ $< 1.9 1.10 compat/%.c: public/%.h xlat.lst Makefile 1.11 mkdir -p $(@D)