1999-07-20 03:56:57 +08:00
|
|
|
## HDF5 Library Makefile(.in)
|
|
|
|
##
|
|
|
|
## Copyright (C) 1997 National Center for Supercomputing Applications.
|
|
|
|
## All rights reserved.
|
|
|
|
##
|
|
|
|
##
|
1999-03-04 07:17:48 +08:00
|
|
|
top_srcdir=@top_srcdir@
|
1999-03-20 04:09:50 +08:00
|
|
|
top_builddir=..
|
|
|
|
srcdir=@srcdir@
|
|
|
|
@COMMENCE@
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Add include directory to the C preprocessor flags, add -lh5tools and
|
|
|
|
## -lhdf5 to the list of libraries.
|
1999-03-20 04:09:50 +08:00
|
|
|
CPPFLAGS=-I. -I$(srcdir) -I../src -I$(top_srcdir)/src @CPPFLAGS@
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Test programs and scripts.
|
1998-11-16 23:29:54 +08:00
|
|
|
TEST_PROGS=
|
1999-03-20 04:09:50 +08:00
|
|
|
TEST_SCRIPTS=$(srcdir)/testh5dump.sh @TESTH5TOH4@
|
1998-09-04 04:46:32 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## These are our main targets: library and tools. We link this library
|
|
|
|
## statically because some systems can only link executables to a single
|
|
|
|
## shared library and libhdf5 is much bigger than libh5tools.
|
1999-04-26 22:43:53 +08:00
|
|
|
LT_LINK_LIB=$(LT) --mode=link $(CC) -static -rpath $(libdir)
|
|
|
|
LIB=libh5tools.la
|
1999-03-18 21:42:52 +08:00
|
|
|
LIBHDF5=../src/libhdf5.la
|
1999-10-15 22:53:57 +08:00
|
|
|
PROGS=h5debug h5import h5ls h5repart h5dump h5dumptst @H5TOH4@ @PDB2HDF@
|
[svn-r537] Changes since 19980722
----------------------
./src/H5A.c
./src/H5Apublic.h
./test/tattr.c
Switched the order of the second and third argument of
H5Aget_name() to make it consistent with other functions that
take buffers and buffer sizes.
./src/H5G.c
./src/H5Gpublic.h
./src/H5Gprivate.h
The H5Gget_comment() function returns the size of the comment
including the null terminator. If the object has no comment
then zero is returned. If an error occurs then a negative
value is returned.
./MANIFEST
./tools/Makefile.in
./tools/h5tools.h [NEW]
./tools/h5dump.c [NEW]
Created a library for printing values of datasets in a way
that looks nice. It's not done yet, but I needed it for
debugging the contents of files from Jim Reus.
./tools/h5ls.c
Added the `-d' and `--dump' options which cause the contents
of a dataset to be printed. Added `-w N' and `--width=N'
options to control how wide the raw data output should be. If
you want single-column output then say `-w1'.
Printing dataset values can now handle datasets of any integer
or floating point atomic type. As a special case, integers
which are one byte wide are treated a character strings for
now.
Sample output:
$ h5ls --dump --width=60 banana.hdf
ARCHIVE 0:0:0:744 Dataset {52/Inf}
Data:
(0) "U struct complex { double R; double I; };\012V"
(43) " double;\012"
U 0:0:0:2500 Dataset {256/512}
Data: printing of compound data types is not implemented yet
V 0:0:0:3928 Dataset {256/512}
Data:
(0) 0, 0.015625, 0.03125, 0.046875, 0.0625,
(5) 0.078125, 0.09375, 0.109375, 0.125, 0.140625,
(10) 0.15625, 0.171875, 0.1875, 0.203125, 0.21875,
(15) 0.234375, 0.25, 0.265625, 0.28125, 0.296875,
...
1998-07-24 05:19:17 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Source and object files for the library; do not install
|
1998-11-22 04:14:09 +08:00
|
|
|
LIB_SRC=h5tools.c h5findshd.c
|
1999-04-26 22:43:53 +08:00
|
|
|
LIB_OBJ=$(LIB_SRC:.c=.lo)
|
1999-04-16 03:57:50 +08:00
|
|
|
PUB_LIB=
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Source and object files for programs...
|
1999-07-01 02:04:16 +08:00
|
|
|
PROG_SRC=h5debug.c h5import.c h5ls.c h5repart.c h5dump.c h5dumputil.c \
|
1999-10-15 22:53:57 +08:00
|
|
|
h5toh4.c h5dumptst.c pdb2hdf.c
|
1999-04-26 22:43:53 +08:00
|
|
|
PROG_OBJ=$(PROG_SRC:.c=.lo)
|
[svn-r537] Changes since 19980722
----------------------
./src/H5A.c
./src/H5Apublic.h
./test/tattr.c
Switched the order of the second and third argument of
H5Aget_name() to make it consistent with other functions that
take buffers and buffer sizes.
./src/H5G.c
./src/H5Gpublic.h
./src/H5Gprivate.h
The H5Gget_comment() function returns the size of the comment
including the null terminator. If the object has no comment
then zero is returned. If an error occurs then a negative
value is returned.
./MANIFEST
./tools/Makefile.in
./tools/h5tools.h [NEW]
./tools/h5dump.c [NEW]
Created a library for printing values of datasets in a way
that looks nice. It's not done yet, but I needed it for
debugging the contents of files from Jim Reus.
./tools/h5ls.c
Added the `-d' and `--dump' options which cause the contents
of a dataset to be printed. Added `-w N' and `--width=N'
options to control how wide the raw data output should be. If
you want single-column output then say `-w1'.
Printing dataset values can now handle datasets of any integer
or floating point atomic type. As a special case, integers
which are one byte wide are treated a character strings for
now.
Sample output:
$ h5ls --dump --width=60 banana.hdf
ARCHIVE 0:0:0:744 Dataset {52/Inf}
Data:
(0) "U struct complex { double R; double I; };\012V"
(43) " double;\012"
U 0:0:0:2500 Dataset {256/512}
Data: printing of compound data types is not implemented yet
V 0:0:0:3928 Dataset {256/512}
Data:
(0) 0, 0.015625, 0.03125, 0.046875, 0.0625,
(5) 0.078125, 0.09375, 0.109375, 0.125, 0.140625,
(10) 0.15625, 0.171875, 0.1875, 0.203125, 0.21875,
(15) 0.234375, 0.25, 0.265625, 0.28125, 0.296875,
...
1998-07-24 05:19:17 +08:00
|
|
|
PRIVATE_HDR=h5tools.h
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Source and object files for the tests
|
1998-11-16 23:29:54 +08:00
|
|
|
TEST_SRC=
|
1999-04-26 22:43:53 +08:00
|
|
|
TEST_OBJ=$(TEST_SRC:.c=.lo)
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Programs have to be built before they can be tested!
|
1999-03-03 01:15:35 +08:00
|
|
|
check test _test: $(PROGS)
|
1998-10-06 05:01:10 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## How to build the programs... They all depend on the hdf5 library and
|
|
|
|
## the tools library compiled in this directory.
|
1999-03-03 01:15:35 +08:00
|
|
|
$(PROGS): $(LIB) ../src/libhdf5.la
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
h5debug: h5debug.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5debug.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
h5import: h5import.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5import.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
h5ls: h5ls.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5ls.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
h5repart: h5repart.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5repart.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-08-20 05:46:55 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
h5dump: h5dump.lo h5dumputil.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5dump.lo h5dumputil.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
h5toh4: h5toh4.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5toh4.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-11-22 04:14:09 +08:00
|
|
|
|
1999-07-01 02:04:16 +08:00
|
|
|
h5dumptst: h5dumptst.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5dumptst.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
1999-10-15 22:53:57 +08:00
|
|
|
pdb2hdf: pdb2hdf.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ pdb2hdf.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
1998-07-13 23:35:21 +08:00
|
|
|
@CONCLUDE@
|