dependencies are only build with make depend
[ffmpeg.git] / Makefile
index 1f0c886f728804335762457e49e9556cffcdae0d..d177c1a477f591229e19bae3ae4cda2050be4396 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ lib:
        $(MAKE) -C libavcodec all
        $(MAKE) -C libavformat all
 
-ffmpeg_g$(EXE): .depend ffmpeg.o $(DEP_LIBS)
+ffmpeg_g$(EXE): ffmpeg.o $(DEP_LIBS)
        $(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libavformat \
               -lavformat -lavcodec $(EXTRALIBS)
 
@@ -102,6 +102,11 @@ installlib:
 dep:   depend
 
 depend: .depend
+       make -C libavcodec depend
+       make -C libavformat depend
+ifeq ($(BUILD_VHOOK),yes)
+       make -C vhook depend
+endif
 
 .depend: $(SRCS)
        $(CC) -MM $(CFLAGS) $^ 1>.depend