OSDN Git Service

fix make dep with some gcc versions
authorMåns Rullgård <mans@mansr.com>
Sun, 12 Nov 2006 16:37:32 +0000 (16:37 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 12 Nov 2006 16:37:32 +0000 (16:37 +0000)
Originally committed as revision 6988 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index 6c01a82..344cfbc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -208,7 +208,7 @@ ifeq ($(CONFIG_VHOOK),yes)
 endif
 
 .depend: $(SRCS) version.h
-       $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $^ 1>.depend
+       $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $(filter-out %.h,$^) 1>.depend
 
 .libs: lib
        @test -f .libs || touch .libs