# HG changeset patch # User diego # Date 1207518971 0 # Node ID b7dfef4f7a01a53663e4554ea520a0daf59e8685 # Parent d2b880813c5e018928153b720138cfab93961fb1 Use DEPEND_CMD as set by configure to generate dependency information instead of hardcoding a gcc-specific command. This also fixes dependency generation for files in subdirectories. diff -r d2b880813c5e -r b7dfef4f7a01 mpcommon.mak --- a/mpcommon.mak Sun Apr 06 21:52:50 2008 +0000 +++ b/mpcommon.mak Sun Apr 06 21:56:11 2008 +0000 @@ -27,8 +27,8 @@ distclean:: clean rm -f .depend test test2 -dep depend:: - $(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) > .depend +dep depend:: $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) + $(DEPEND_CMD) > .depend %.ho: %.h $(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<