xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] also allow building .s files from .c ones
@ 2013-07-09 14:50 Jan Beulich
  2013-07-09 15:20 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2013-07-09 14:50 UTC (permalink / raw)
  To: xen-devel; +Cc: Keir Fraser

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

... 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>

--- 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
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -177,6 +177,9 @@ $(filter %.init.o,$(obj-y) $(obj-bin-y) 
 %.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 $@




[-- Attachment #2: build-asm-from-c.patch --]
[-- Type: text/plain, Size: 782 bytes --]

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>

--- 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
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -177,6 +177,9 @@ $(filter %.init.o,$(obj-y) $(obj-bin-y) 
 %.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 $@

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-09 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-09 14:50 [PATCH] also allow building .s files from .c ones Jan Beulich
2013-07-09 15:20 ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).