summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rwxr-xr-xconfigure4
2 files changed, 1 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 0f0d64c519..6d67abaeb6 100644
--- a/Makefile
+++ b/Makefile
@@ -831,15 +831,6 @@ FFMPEGFILES = $(foreach part, $(FFMPEGPARTS), $(wildcard $(part)/*.[chS] $(part)
all: $(ALL_PRG-yes)
-%.d: %.c
- $(MPDEPEND_CMD) > $@
-
-%.d: %.cpp
- $(MPDEPEND_CMD_CXX) > $@
-
-%.d: %.m
- $(MPDEPEND_CMD) > $@
-
%.ho: %.h
$(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
diff --git a/configure b/configure
index 30077230f4..da9edf35c3 100755
--- a/configure
+++ b/configure
@@ -2513,6 +2513,7 @@ else
fi
cc_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"
+cc_check -MD -MP && CFLAGS="-MD -MP $CFLAGS"
if test -n "$LDFLAGS" ; then
@@ -8472,9 +8473,6 @@ EXTRALIBS = $extra_ldflags $_ld_static $_ld_lm $extra_libs
EXTRALIBS_MPLAYER = $libs_mplayer
EXTRALIBS_MENCODER = $libs_mencoder
-MPDEPEND_CMD = \$(CC) -MM -MP \$(CFLAGS) \$(filter-out %.xpm,\$(filter-out %.h,$^)) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &,"
-MPDEPEND_CMD_CXX = \$(CC) -MM -MP \$(CXXFLAGS) \$(filter-out %.hh,\$(filter-out %.h,$^)) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &,"
-
GETCH = $_getch
HELP_FILE = $_mp_help
TIMER = $_timer