summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2000-09-28 20:46:31 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2000-09-28 20:46:31 (GMT)
commitda81e18888e11da7d0268a6bfa8d8a3c811c9d96 (patch)
treeff1231ee3d2e92d986ade35ba102b1d5a605907f /tools/Makefile.in
parentf527143c85eea81dcef6f51cb09bf9b21b767640 (diff)
downloadhdf5-da81e18888e11da7d0268a6bfa8d8a3c811c9d96.zip
hdf5-da81e18888e11da7d0268a6bfa8d8a3c811c9d96.tar.gz
hdf5-da81e18888e11da7d0268a6bfa8d8a3c811c9d96.tar.bz2
[svn-r2613]
Purpose: add h4toh5 converter tool Description: add flag h4toh5 and testh4toh5 in the Makefile. Solution: [details about the changes, algorithm, etc...] [Please as detail as you can since your own explanation is better than others guessing it from the code.] Platforms tested: test on eirene and arabica. [machines you have tested the changed version. This is absolute important. Test it out on at least two or three different platforms such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and 64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in20
1 files changed, 15 insertions, 5 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index bf3121a..30f67b8 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -15,7 +15,7 @@ CPPFLAGS=-I. -I$(srcdir) -I../src -I$(top_srcdir)/src @CPPFLAGS@
## Test programs and scripts.
TEST_PROGS=
-TEST_SCRIPTS=$(srcdir)/testh5dump.sh @TESTH5TOH4@
+TEST_SCRIPTS=$(srcdir)/testh5dump.sh @TESTH5TOH4@ @TESTH4TOH5@
## These are our main targets: library and tools. We link this library
## statically because some systems can only link executables to a single
@@ -23,7 +23,7 @@ TEST_SCRIPTS=$(srcdir)/testh5dump.sh @TESTH5TOH4@
LT_LINK_LIB=$(LT) --mode=link $(CC) -static -rpath $(libdir)
LIB=libh5tools.la
LIBHDF5=../src/libhdf5.la
-PUB_PROGS=h5debug h5import h5ls h5repart h5dump @H5TOH4@ @PDB2HDF@
+PUB_PROGS=h5debug h5import h5ls h5repart h5dump @H5TOH4@ @H4TOH5@ @PDB2HDF@
PROGS=$(PUB_PROGS) h5dumptst
## Source and object files for the library; do not install
@@ -31,11 +31,18 @@ LIB_SRC=h5tools.c
LIB_OBJ=$(LIB_SRC:.c=.lo)
PUB_LIB=
+## Source and object files for h4toh5 converter.
+H4TOH5_SRC=h4toh5main.c h4toh5vgroup.c h4toh5vdata.c h4toh5sds.c h4toh5image.c h4toh5pal.c \
+ h4toh5anno.c h4toh5util.c
+H4TOH5_OBJ=$(H4TOH5_SRC:.c=.lo)
+H4TOH5_HDR=h4toh5main.h h4toh5util.h
+
## Source and object files for programs...
PROG_SRC=h5debug.c h5import.c h5ls.c h5repart.c h5dump.c \
- h5toh4.c h5dumptst.c pdb2hdf.c
-PROG_OBJ=$(PROG_SRC:.c=.lo)
-PRIVATE_HDR=h5tools.h
+ h5toh4.c h5dumptst.c pdb2hdf.c \
+ $(H4TOH5_SRC)
+PROG_OBJ=$(PROG_SRC:.c=.lo) $(H4TOH5_OBJ)
+PRIVATE_HDR=h5tools.h $(H4TOH5_HDR)
## Source and object files for the tests
TEST_SRC=
@@ -69,6 +76,9 @@ h5toh4: h5toh4.lo
h5dumptst: h5dumptst.lo
@$(LT_LINK_EXE) $(CFLAGS) -o $@ h5dumptst.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
+h4toh5: $(H4TOH5_OBJ)
+ @$(LT_LINK_EXE) $(CFLAGS) -o $@ $(H4TOH5_OBJ) $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
+
pdb2hdf: pdb2hdf.lo
@$(LT_LINK_EXE) $(CFLAGS) -o $@ pdb2hdf.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)