diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-30 14:31:57 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-30 14:31:57 +0100 |
commit | 4734f491063e6b2d43e273a178da06e93a92080d (patch) | |
tree | ff0640c60cc84eed6192fdd622ceacc4a5817680 /xen/Rules.mk | |
parent | 31903a3370b4c056d7d97ee3b495bd48677d4ab9 (diff) | |
download | xen-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.mk | 5 |
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 $@ |