]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
regenerate dependencies when building object files
authormru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 9 Jul 2008 19:09:50 +0000 (19:09 +0000)
committermru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 9 Jul 2008 19:09:50 +0000 (19:09 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14143 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

common.mak
configure

index c0ed6b957eb1720ea280f08a0e79b40b5378120d..93176c538963425b7e533e6352550dc31eead159 100644 (file)
@@ -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
index 227aafcaee3639f68216be9b0a270ca94bd2e616..040d921840f0ae1393babd08706f2b32bae25e71 100755 (executable)
--- 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\"`"