[FFmpeg-cvslog] r12421 - trunk/Makefile

diego subversion
Wed Mar 12 10:40:36 CET 2008


Author: diego
Date: Wed Mar 12 10:40:36 2008
New Revision: 12421

Log:
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.


Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Wed Mar 12 10:40:36 2008
@@ -223,7 +223,7 @@ depend dep: .depend .vhookdep
 	$(MAKE-$(CONFIG_AVFILTER)) -C libavfilter depend
 
 .depend: $(SRCS) version.h
-	$(CC) -MM $(CFLAGS) $(SRCS) > $@
+	$(CC) -MM $(CFLAGS) $(filter-out %.h,$^) > $@
 
 # gcc stupidly only outputs the basename of targets with -MM
 .vhookdep: $(ALLHOOKS_SRCS) version.h




More information about the ffmpeg-cvslog mailing list