fix DEPEND_CMD for out of tree builds
authorMåns Rullgård <mans@mansr.com>
Sat, 15 Mar 2008 19:24:08 +0000 (19:24 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 15 Mar 2008 19:24:08 +0000 (19:24 +0000)
Originally committed as revision 12454 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 7a89ab2516c282600ca922d05f6beac821bad6d4..30c774a025419fee1136c3c00a57dc8f22cbbfc8 100755 (executable)
--- a/configure
+++ b/configure
@@ -935,7 +935,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
 LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
 
 # gcc stupidly only outputs the basename of targets with -MM
-DEPEND_CMD='$(CC) -MM $(CFLAGS) $(filter-out %.h,$^) | sed "s,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,"'
+DEPEND_CMD='$(CC) -MM $(CFLAGS) $(filter-out %.h,$^) | sed "s,[0-9a-z._-]*: \($(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\2&,"'
 VHOOKDEPEND_CMD='$(CC) -MM $(VHOOKCFLAGS) $(filter-out %.h,$^) | sed "s,^\([a-z]\),vhook/\1,"'
 
 # find source path