summaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-11-18 15:55:22 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-11-18 15:55:22 (GMT)
commit4f8ca8e026fbff3eafaf514bb0be8a4126593268 (patch)
tree63f46898d4de94232f09e4c1b1bad77b99508c90 /src/Makefile.in
parent75ea10e5f50c3c23fd73f073adb84b0baf551edc (diff)
downloadhdf5-4f8ca8e026fbff3eafaf514bb0be8a4126593268.zip
hdf5-4f8ca8e026fbff3eafaf514bb0be8a4126593268.tar.gz
hdf5-4f8ca8e026fbff3eafaf514bb0be8a4126593268.tar.bz2
[svn-r11738] Purpose:
Configure feature Description: Added 'make trace' target. Solution: Added tracing to 1.7. This was done automatically in 1.6, but left out of 1.7 until now (oops!). Tracing in 1.7 only happens manually, when the user types 'make trace.' Tracing automatically requires more framework than it's worth. I also fixed a couple of tracing bugs and ran trace. Platforms tested: mir, sleipnir, modi4 Misc. update:
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 164b097..f694f38 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -364,6 +364,10 @@ docdir = $(exec_prefix)/doc
@BUILD_SHARED_ONLY_CONDITIONAL_FALSE@H5CPP = $(bindir)/h5c++
@BUILD_SHARED_ONLY_CONDITIONAL_TRUE@H5CPP = $(bindir)/h5c++ -shlib
+# The trace script; this is used on source files from the C library to
+# insert tracing macros.
+TRACE = perl $(top_srcdir)/bin/trace
+
# .chkexe files are used to mark tests that have run successfully.
# .chklog files are output from those tests.
# *.clog are from the MPE option.
@@ -994,6 +998,24 @@ H5Tinit.c: H5detect$(EXEEXT)
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
($(RM) $@ ; exit 1)
+# Add TRACE macros to library source files. This is done via the trace script
+# in the hdf5/bin directory. If the file contains HDF5 API macros, a "clean"
+# version of the source file is saved with a tilde (~) after its name and
+# tracing information is inserted. trace should have no effect on files
+# without HDF5 macros.
+.PHONY: trace
+
+trace: $(libhdf5_la_SOURCES)
+ @for dep in $? dummy; do \
+ if test $$dep != "dummy" -a -n "$(PERL)"; then \
+ case "$$dep" in \
+ *.c) \
+ $(TRACE) $$dep; \
+ ;; \
+ esac; \
+ fi; \
+ done
+
# lib/progs/tests targets recurse into subdirectories. build-* targets
# build files in this directory.
# BUILT_SOURCES contain targets that need to be built before anything else