Browse code

regenerate dependencies when building object files

Originally committed as revision 14143 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2008/07/10 04:09:50
Showing 2 changed files
... ...
@@ -38,6 +38,8 @@ CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
38 38
 %.d: %.cpp
39 39
 	$(DEPEND_CMD) > $@
40 40
 
41
+%.o: %.d
42
+
41 43
 %$(EXESUF): %.c
42 44
 
43 45
 SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
... ...
@@ -970,7 +970,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
970 970
 LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
971 971
 
972 972
 # gcc stupidly only outputs the basename of targets with -MM
973
-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 &/"'
973
+DEPEND_CMD='$(CC) $(CFLAGS) -MM -MG $< | sed -e "/^\#.*/d" -e "1s,^,$(@D)/," -e "s,\\([[:space:]]\\)\\(version\\.h\\),\\1\$$(BUILD_ROOT_REL)/\\2,"'
974 974
 
975 975
 # find source path
976 976
 source_path="`dirname \"$0\"`"