aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-07-10 10:05:34 +0200
committerJan Beulich <jbeulich@suse.com>2013-07-10 10:05:34 +0200
commit1d75c9148c3de27a0a2ca94740f04bf501fc6daf (patch)
treed19b25aa1e40691e6cac0e1c682063e4247cd885 /xen/Rules.mk
parent5656b93d215d7c5160790ea87758625ba1de16b1 (diff)
downloadxen-1d75c9148c3de27a0a2ca94740f04bf501fc6daf.tar.gz
xen-1d75c9148c3de27a0a2ca94740f04bf501fc6daf.tar.bz2
xen-1d75c9148c3de27a0a2ca94740f04bf501fc6daf.zip
also allow building .s files from .c ones
... along the lines of allowing .i files to be built from .c ones as well as .s from .S (aiding the analysis of occasional build problems). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 4d182b9006..26e5bb6ce1 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -177,6 +177,9 @@ $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): %.init.o: %.o Makefile
%.i: %.c Makefile
$(CPP) $(CFLAGS) $< -o $@
+%.s: %.c Makefile
+ $(CC) $(CFLAGS) -S $< -o $@
+
# -std=gnu{89,99} gets confused by # as an end-of-line comment marker
%.s: %.S Makefile
$(CPP) $(AFLAGS) $< -o $@