summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-11-15 17:59:28 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-11-15 17:59:28 (GMT)
commit3c2314dcbb5122e0d9d8da433554829750cb03ca (patch)
tree0f84b23ad48f83731ba4d9ed6055b4646b40e2c0 /c++
parent6e21430e32b0975a50e7a939f58a7e69741e2ada (diff)
downloadhdf5-3c2314dcbb5122e0d9d8da433554829750cb03ca.zip
hdf5-3c2314dcbb5122e0d9d8da433554829750cb03ca.tar.gz
hdf5-3c2314dcbb5122e0d9d8da433554829750cb03ca.tar.bz2
[svn-r2931] Purpose:
Changed to handle tracing in C++ files. Description: Added case statements around the tracing logic. Platforms tested: Linux
Diffstat (limited to 'c++')
-rw-r--r--c++/config/depend1.in22
1 files changed, 13 insertions, 9 deletions
diff --git a/c++/config/depend1.in b/c++/config/depend1.in
index e07f4bf..5dd25d8 100644
--- a/c++/config/depend1.in
+++ b/c++/config/depend1.in
@@ -34,15 +34,19 @@ $(srcdir)/Dependencies: .depend
@touch .depend
@for dep in $? dummy; do \
if [ $$dep != "dummy" ]; then \
- 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' | \
- sed 's% $(top_builddir)/% $$(top_builddir)/%g' | \
- sed 's/\.o/.lo/' >>$@; \
+ case "$$dep" in \
+ *.C) \
+ 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' | \
+ sed 's% $(top_builddir)/% $$(top_builddir)/%g' | \
+ sed 's/\.o/.lo/' >>$@; \
+ ;; \
+ esac; \
fi; \
done;