[FFmpeg-cvslog] Makefile: improve DBG option for asm

Christophe Gisquet git at videolan.org
Sat Feb 21 11:02:10 CET 2015


ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Wed Feb 18 10:51:17 2015 +0100| [3fdcb8ccdc2cf5668e02134a815e5a7acc39f763] | committer: Michael Niedermayer

Makefile: improve DBG option for asm

This improves the cleanup, dependency generation and DBG command issuing.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 common.mak |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/common.mak b/common.mak
index a6fabb3..20b7fa3 100644
--- a/common.mak
+++ b/common.mak
@@ -7,10 +7,10 @@ all: all-yes
 
 DEFAULT_YASMD=.dbg
 
-ifndef DBG
-YASMD=
-else
+ifeq (1, DBG)
 YASMD=$(DEFAULT_YASMD)
+else
+YASMD=
 endif
 
 ifndef SUBDIR
@@ -152,11 +152,11 @@ LIBSUFFIXES       = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
 
 define RULES
 clean::
-	$(RM) $(OBJS) $(OBJS:.o=.d)
+	$(RM) $(OBJS) $(OBJS:.o=.d) $(OBJS:.o=$(DEFAULT_YASMD).d)
 	$(RM) $(HOSTPROGS)
 	$(RM) $(TOOLS)
 endef
 
 $(eval $(RULES))
 
--include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d) $(SLIBOBJS:.o=.d))
+-include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d) $(SLIBOBJS:.o=.d)) $(OBJS:.o=$(DEFAULT_YASMD).d)



More information about the ffmpeg-cvslog mailing list