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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26338 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-04-06 21:56:11 +00:00
parent 730bff7914
commit 8109559bf8
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ clean::
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 $<