]> xenbits.xensource.com Git - xen.git/commitdiff
also allow building .s files from .c ones
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Jul 2013 08:05:34 +0000 (10:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Jul 2013 08:05:34 +0000 (10:05 +0200)
... 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>
xen/Makefile
xen/Rules.mk

index b02e2dd35db4ffbcd65db1cbe7706e0bc7d43ebd..854a370151d5ad232466fdba3910a6f8a4ed9044 100644 (file)
@@ -195,7 +195,7 @@ _MAP:
 .PHONY: FORCE
 FORCE:
 
-%.o %.i: %.c FORCE
+%.o %.i %.s: %.c FORCE
        $(MAKE) -f $(BASEDIR)/Rules.mk -C $(*D) $(@F)
 
 %.o %.s: %.S FORCE
index 4d182b900654439d842cd333e495b7d1100dc80f..26e5bb6ce12e92a80ac3e94fe509d031a3122e43 100644 (file)
@@ -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 $@