 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] also allow building .s files from .c ones
 commit 1d75c9148c3de27a0a2ca94740f04bf501fc6daf
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Jul 10 10:05:34 2013 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Jul 10 10:05:34 2013 +0200
    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@xxxxxxxx>
    Acked-by: Keir Fraser <keir@xxxxxxx>
---
 xen/Makefile |    2 +-
 xen/Rules.mk |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/xen/Makefile b/xen/Makefile
index b02e2dd..854a370 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -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
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 4d182b9..26e5bb6 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 $@
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |