summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-04-05 17:04:07 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-04-05 17:04:07 (GMT)
commit8bbacc3ae3fa084209cd223f3aaf34824411f6df (patch)
tree06b7acfc787036c027cd506534ea0998d66dc0ac
parent576213d960a7627e3abc6d3bc6c3849721f3ca81 (diff)
downloadhdf5-8bbacc3ae3fa084209cd223f3aaf34824411f6df.zip
hdf5-8bbacc3ae3fa084209cd223f3aaf34824411f6df.tar.gz
hdf5-8bbacc3ae3fa084209cd223f3aaf34824411f6df.tar.bz2
[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 <hdf5_files.h> to #include "hdf5_files.h" in the source code. Platforms tested: Linux
-rw-r--r--config/depend1.in10
1 files 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