ia64/xen-unstable

changeset 14216:4847e5b8adf1

.S->.o generation should depend on asm-offsets.h

While object files generated from C sources should generally not
depend on asm-offsets.h, those generated from assembly sources
should.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Fri Mar 02 15:10:54 2007 +0000 (2007-03-02)
parents 84e1455ebc15
children 145d3c81e654
files xen/Rules.mk
line diff
     1.1 --- a/xen/Rules.mk	Fri Mar 02 15:08:26 2007 +0000
     1.2 +++ b/xen/Rules.mk	Fri Mar 02 15:10:54 2007 +0000
     1.3 @@ -41,8 +41,8 @@ HDRS += $(wildcard $(BASEDIR)/include/as
     1.4  include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
     1.5  
     1.6  # Do not depend on auto-generated header files.
     1.7 -HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS))
     1.8 -HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
     1.9 +AHDRS := $(filter-out %/include/xen/compile.h,$(HDRS))
    1.10 +HDRS  := $(filter-out %/asm-offsets.h,$(AHDRS))
    1.11  
    1.12  # Note that link order matters!
    1.13  ALL_OBJS-y               += $(BASEDIR)/common/built_in.o
    1.14 @@ -110,12 +110,12 @@ clean:: $(addprefix _clean_, $(subdir-al
    1.15  %.o: %.c $(HDRS) Makefile
    1.16  	$(CC) $(CFLAGS) -c $< -o $@
    1.17  
    1.18 -%.o: %.S $(HDRS) Makefile
    1.19 +%.o: %.S $(AHDRS) Makefile
    1.20  	$(CC) $(AFLAGS) -c $< -o $@
    1.21  
    1.22  %.i: %.c $(HDRS) Makefile
    1.23  	$(CPP) $(CFLAGS) $< -o $@
    1.24  
    1.25  # -std=gnu{89,99} gets confused by # as an end-of-line comment marker
    1.26 -%.s: %.S $(HDRS) Makefile
    1.27 +%.s: %.S $(AHDRS) Makefile
    1.28  	$(CPP) $(AFLAGS) $< -o $@