summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-07-09 19:09:50 +0000
committerMåns Rullgård <mans@mansr.com>2008-07-09 19:09:50 +0000
commit18c640054c1dc94eeaee2d975ae1d93e16095470 (patch)
treec188092e95a4ce778657b3ea7618484dd7d04435
parent81d4ee3e168b8e27746babd3a75813d341608ca9 (diff)
regenerate dependencies when building object files
Originally committed as revision 14143 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--common.mak2
-rwxr-xr-xconfigure2
2 files changed, 3 insertions, 1 deletions
diff --git a/common.mak b/common.mak
index c0ed6b957e..93176c5389 100644
--- a/common.mak
+++ b/common.mak
@@ -38,6 +38,8 @@ CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
%.d: %.cpp
$(DEPEND_CMD) > $@
+%.o: %.d
+
%$(EXESUF): %.c
SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
diff --git a/configure b/configure
index 227aafcaee..040d921840 100755
--- a/configure
+++ b/configure
@@ -970,7 +970,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) $(CFLAGS) -MM -MG $< | sed -e "/^\#.*/d" -e "1s,^,$(@D)/," -e "s,\\([[:space:]]\\)\\(version\\.h\\),\\1\$$(BUILD_ROOT_REL)/\\2," -e "s/\(.*\)\.o/\1.d &/"'
+DEPEND_CMD='$(CC) $(CFLAGS) -MM -MG $< | sed -e "/^\#.*/d" -e "1s,^,$(@D)/," -e "s,\\([[:space:]]\\)\\(version\\.h\\),\\1\$$(BUILD_ROOT_REL)/\\2,"'
# find source path
source_path="`dirname \"$0\"`"