Mercurial > mplayer.hg
changeset 26489:925b2b7a1f34
dependency generation infrastructure for C++ files
author | diego |
---|---|
date | Thu, 24 Apr 2008 21:46:50 +0000 |
parents | a347dc8f3dcd |
children | 17650f2caef1 |
files | Makefile configure mpcommon.mak |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Apr 24 17:41:19 2008 +0000 +++ b/Makefile Thu Apr 24 21:46:50 2008 +0000 @@ -494,7 +494,7 @@ include mpcommon.mak -DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d) +DEPS = $(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER))) $(DEPS) recurse: help_mp.h version.h codecs.conf.h dep depend: $(DEPS) for part in $(PARTS); do $(MAKE) -C $$part .depend; done
--- a/configure Thu Apr 24 17:41:19 2008 +0000 +++ b/configure Thu Apr 24 21:46:50 2008 +0000 @@ -7903,6 +7903,7 @@ DEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,\$^) | sed "s,[0-9a-z._-]*: \(\$(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\\2&," MPDEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,$^) | sed "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," +MPDEPEND_CMD_CXX = \$(CC) -MM \$(CXXFLAGS) \$(filter-out %.h,$^) | sed "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," EOF