aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-03-02 15:10:54 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-03-02 15:10:54 +0000
commitf8173e13af183cb5dd479f850a1e3dfdfdd9aa65 (patch)
treec11c814a04645b64c6ad76c3aa2b47abfdc43126 /xen/Rules.mk
parent47a066703b6725df987b8fa9cedac48c6e7788f0 (diff)
downloadxen-f8173e13af183cb5dd479f850a1e3dfdfdd9aa65.tar.gz
xen-f8173e13af183cb5dd479f850a1e3dfdfdd9aa65.tar.bz2
xen-f8173e13af183cb5dd479f850a1e3dfdfdd9aa65.zip
.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>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 28ee66b64d..ac42711a11 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -41,8 +41,8 @@ HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h)
include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
# Do not depend on auto-generated header files.
-HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS))
-HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
+AHDRS := $(filter-out %/include/xen/compile.h,$(HDRS))
+HDRS := $(filter-out %/asm-offsets.h,$(AHDRS))
# Note that link order matters!
ALL_OBJS-y += $(BASEDIR)/common/built_in.o
@@ -110,12 +110,12 @@ _clean_%/: FORCE
%.o: %.c $(HDRS) Makefile
$(CC) $(CFLAGS) -c $< -o $@
-%.o: %.S $(HDRS) Makefile
+%.o: %.S $(AHDRS) Makefile
$(CC) $(AFLAGS) -c $< -o $@
%.i: %.c $(HDRS) Makefile
$(CPP) $(CFLAGS) $< -o $@
# -std=gnu{89,99} gets confused by # as an end-of-line comment marker
-%.s: %.S $(HDRS) Makefile
+%.s: %.S $(AHDRS) Makefile
$(CPP) $(AFLAGS) $< -o $@