[CRIU] [crtools-bot for Cyrill Gorcunov ] make: Add %.s target

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 08:18:08 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit b89d8394cf877922329961670a3dddfbbe7b2242
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Sun Feb 12 19:45:45 2012 +0400

    make: Add %.s target
    
    It's pretty convenient to have asm generated code
    at hands if hunting weird problems.
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 8fda273..adfc7ea 100644
--- a/Makefile
+++ b/Makefile
@@ -121,6 +121,10 @@ $(RHEAD-BLOB-GEN): $(RHEAD-BIN) $(RDEPS-BLOB)
 	$(E) "  CC      " $@
 	$(Q) $(CC) -E $(CFLAGS) $< -o $@
 
+%.s: %.c
+	$(E) "  CC      " $@
+	$(Q) $(CC) -S $(CFLAGS) -fverbose-asm $< -o $@
+
 $(PROGRAM): $(OBJS)
 	$(E) "  LINK    " $@
 	$(Q) $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@


More information about the CRIU mailing list