changeset 26306:b7dfef4f7a01

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.
author diego
date Sun, 06 Apr 2008 21:56:11 +0000
parents d2b880813c5e
children ba4fc811a894
files mpcommon.mak
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 $<