aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-30 14:31:57 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-30 14:31:57 +0100
commit4734f491063e6b2d43e273a178da06e93a92080d (patch)
treeff0640c60cc84eed6192fdd622ceacc4a5817680 /xen/Rules.mk
parent31903a3370b4c056d7d97ee3b495bd48677d4ab9 (diff)
downloadxen-4734f491063e6b2d43e273a178da06e93a92080d.tar.gz
xen-4734f491063e6b2d43e273a178da06e93a92080d.tar.bz2
xen-4734f491063e6b2d43e273a178da06e93a92080d.zip
Use AFLAGS for assembly files so we can "+=" more flags.
From: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index f887ea44f5..ade8b87a1e 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -55,11 +55,14 @@ ifneq ($(max_phys_cpus),)
CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus)
endif
+AFLAGS-y += -D__ASSEMBLY__
+
ALL_OBJS := $(ALL_OBJS-y)
CFLAGS := $(strip $(CFLAGS) $(CFLAGS-y))
+AFLAGS := $(strip $(AFLAGS) $(AFLAGS-y))
%.o: %.c $(HDRS) Makefile
$(CC) $(CFLAGS) -c $< -o $@
%.o: %.S $(HDRS) Makefile
- $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@
+ $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $@