From a968e365c9052bc99a3e8ae462321af46f799649 Mon Sep 17 00:00:00 2001
From: Fabrice Bellard <fabrice@bellard.org>
Date: Wed, 22 Jan 2003 09:35:03 +0000
Subject: [PATCH] fixed dependancy generation (I want the case where SRC_PATH
 is not . to work too - very useful if you have different gcc versions to test
 at the same time...) - fixed -msse stuff

Originally committed as revision 1488 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 99cc021148f..851ef730188 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -51,6 +51,9 @@ OBJS += i386/fdct_mmx.o i386/cputest.o \
 	i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
 	i386/idct_mmx.o i386/motion_est_mmx.o \
 	i386/simple_idct_mmx.o i386/fft_sse.o
+ifdef TARGET_BUILTIN_VECTOR
+i386/fft_sse.o: CFLAGS+= -msse
+endif
 endif
 
 # armv4l specific stuff
@@ -131,7 +134,7 @@ alpha/motion_est_alpha.o: alpha/motion_est_alpha.c
 endif
 
 .depend: $(SRCS)
-	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
+	$(CC) -MM $(CFLAGS) $^ 1>.depend
 
 dep:	depend
 
-- 
GitLab