From 8bbacc3ae3fa084209cd223f3aaf34824411f6df Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 5 Apr 2001 12:04:07 -0500 Subject: [svn-r3778] Purpose: Update Description: Changed the way .depend and Dependencies files were being generated. Instead of gathering all files which are ``#included'', we only pick out the ones which are local to us. Solution: Changed -M flag to -MM and changed #include to #include "hdf5_files.h" in the source code. Platforms tested: Linux --- config/depend1.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/depend1.in b/config/depend1.in index b46d0e8..bc9aea0 100644 --- a/config/depend1.in +++ b/config/depend1.in @@ -39,16 +39,16 @@ $(srcdir)/Dependencies: .depend echo Building dependencies for $$dep; \ obj=`basename $$dep .c`.lo; \ sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \ - $(TRACE) $$dep; \ - $(CC) -M -MG $(CPPFLAGS) $$dep 2>/dev/null | \ - sed 's% $(srcdir)/% $$(srcdir)/%g' | \ - sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' | \ + $(TRACE) $$dep; \ + $(CC) -MM -MG $(CPPFLAGS) $$dep 2>/dev/null | \ + sed 's% $(srcdir)/% $$(srcdir)/%g' | \ + sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' | \ sed 's% $(top_builddir)/% $$(top_builddir)/%g' | \ sed 's/\.o/.lo/' >>$@; \ ;; \ esac; \ fi; \ - done; + done -include .depend -- cgit v0.12