diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-06 10:08:19 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-06 10:08:19 +0000 |
commit | d226b09b2cdfaad0face62079a586ae877355dd9 (patch) | |
tree | 8c16c05c7765eccf3286248804a82d8db21e81d4 | |
parent | 9ceb70782b69af5c9e8415415a12b7fb85860786 (diff) | |
download | mpv-d226b09b2cdfaad0face62079a586ae877355dd9.tar.bz2 mpv-d226b09b2cdfaad0face62079a586ae877355dd9.tar.xz |
Generate dependency information as a sideeffect of compilation.
This speeds up compilation times, simplifies the code and
fixes dependency file generation in libav*.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31026 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | Makefile | 9 | ||||
-rwxr-xr-x | configure | 4 |
2 files changed, 1 insertions, 12 deletions
@@ -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 $< @@ -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 |