Commit 8d52060d authored by diego's avatar diego

Use $^ without header files instead of $(SRCS) to reference the dependencies

of the .depend target. $^ apparently includes the full path to files found
in a vpath directory, $(SRCS) does not. This makes out of tree builds fail.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12421 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ad933b35
...@@ -223,7 +223,7 @@ depend dep: .depend .vhookdep ...@@ -223,7 +223,7 @@ depend dep: .depend .vhookdep
$(MAKE-$(CONFIG_AVFILTER)) -C libavfilter depend $(MAKE-$(CONFIG_AVFILTER)) -C libavfilter depend
.depend: $(SRCS) version.h .depend: $(SRCS) version.h
$(CC) -MM $(CFLAGS) $(SRCS) > $@ $(CC) -MM $(CFLAGS) $(filter-out %.h,$^) > $@
# gcc stupidly only outputs the basename of targets with -MM # gcc stupidly only outputs the basename of targets with -MM
.vhookdep: $(ALLHOOKS_SRCS) version.h .vhookdep: $(ALLHOOKS_SRCS) version.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment