[FFmpeg-cvslog] Add rule for compiling to asm

Mans Rullgard git at videolan.org
Sat Oct 22 21:48:51 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Fri Mar  4 19:41:33 2011 +0000| [22aebf1bfefa2347a376acea5e27dab3f1d0e08f] | committer: Michael Niedermayer

Add rule for compiling to asm

This allows commands of the form "make foo.s", which is useful
for inspecting the compiler output for debugging purposes.

Signed-off-by: Mans Rullgard <mans at mansr.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22aebf1bfefa2347a376acea5e27dab3f1d0e08f
---

 common.mak |    3 +++
 subdir.mak |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/common.mak b/common.mak
index 8dd2439..14c79f0 100644
--- a/common.mak
+++ b/common.mak
@@ -47,6 +47,9 @@ COMPILE_S = $(call COMPILE,AS)
 %.o: %.cpp
 	$(COMPILE_CXX)
 
+%.s: %.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -S -o $@ $<
+
 %.o: %.S
 	$(COMPILE_S)
 
diff --git a/subdir.mak b/subdir.mak
index 9ac824f..3589dfb 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -20,7 +20,7 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
 	$(YASMDEP) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
 	$(YASM) $(YASMFLAGS) -I $(<D)/ -o $@ $<
 
-$(OBJS) $(SUBDIR)%.ho $(TESTOBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
+$(OBJS) $(OBJS:.o=.s) $(SUBDIR)%.ho $(TESTOBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
 $(TESTOBJS): CPPFLAGS += -DTEST
 
 $(SUBDIR)$(LIBNAME): $(OBJS)



More information about the ffmpeg-cvslog mailing list