From a4aea515b085c8c56058167915a7ca83c0adc46b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Sat, 6 Mar 2010 17:14:06 +0000
Subject: [PATCH] Add YASMDEP variable; use for deps on yasm files

Originally committed as revision 22239 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure  | 1 +
 subdir.mak | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 902332f512f..de881b93b29 100755
--- a/configure
+++ b/configure
@@ -2966,6 +2966,7 @@ AS=$as
 LD=$ld
 DEPCC=$dep_cc
 YASM=$yasmexe
+YASMDEP=$yasmexe
 AR=$ar
 RANLIB=$ranlib
 LN_S=$ln_s
diff --git a/subdir.mak b/subdir.mak
index ea91f3fe2df..5774c6d76f8 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -31,7 +31,7 @@ $(SUBDIR)%-test.o: $(SUBDIR)%-test.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $$(CC_O) $$^
 
 $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
-	$(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$@ $$< > $$(@:.o=.d)
+	$(YASMDEP) $(YASMFLAGS) -I $$(<D)/ -M -o $$@ $$< > $$(@:.o=.d)
 	$(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$<
 
 clean::
-- 
GitLab