diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-11-18 15:55:22 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-11-18 15:55:22 (GMT) |
commit | 4f8ca8e026fbff3eafaf514bb0be8a4126593268 (patch) | |
tree | 63f46898d4de94232f09e4c1b1bad77b99508c90 /src/Makefile.am | |
parent | 75ea10e5f50c3c23fd73f073adb84b0baf551edc (diff) | |
download | hdf5-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.am')
-rwxr-xr-x | src/Makefile.am | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index cf9ebd1..387aea6 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -110,4 +110,22 @@ 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 + include $(top_srcdir)/config/conclude.am |