mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 13:21:13 +00:00
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
This commit is contained in:
parent
9ceb70782b
commit
d226b09b2c
9
Makefile
9
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 $<
|
||||
|
||||
|
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user