[svn-r6981] Purpose:

Utility Addition

Description:
    Added h5c++ script file to compile HDF5 C++ applications.

    Modified so that these are compiled only during a make check-install
    action and then only with the h5c++ script.

Platforms tested:
    Verbena (Fortran & C++)
    Arabica (Fortran & C++)
    Modi4 (Fortran & Parallel)

Misc. update:
This commit is contained in:
Bill Wendling 2003-06-05 17:16:57 -05:00
parent bb79a09646
commit ad76468b3e

View File

@ -21,16 +21,14 @@ srcdir=@srcdir@
@COMMENCE@
## Replace building CC with the just installed h5cc
CXX=$(bindir)/h5c++
CPPFLAGS=-I. -I$(srcdir)
CFLAGS=
hdf5_srcdir=$(top_srcdir)/src
hdf5_builddir=$(top_builddir)/src
## Add include directory to the cpp preprocessor flags
CPPFLAGS=-I. -I../src -I$(srcdir)/../src -I$(hdf5_builddir) -I$(hdf5_srcdir) @CPPFLAGS@
## Add the C++ API library and the hdf5 library to the library lists
LIB=../src/libhdf5_cpp.la
LIBHDF5=$(hdf5_builddir)/libhdf5.la
## List all source files here. The list of object files will be
## created by replacing the `.cpp' with a `.lo'. This list is necessary
## for building automatic dependencies.
@ -54,25 +52,25 @@ CLEAN=
## How to build the programs... they all depend on the Fortran & C hdf5 libraries
$(TEST_PROGS): $(LIB) $(LIBHDF5)
compound: compound.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ compound.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
compound: $(srcdir)/compound.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
h5group: h5group.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ h5group.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
h5group: $(srcdir)/h5group.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
create: create.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ create.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
create: $(srcdir)/create.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
readdata: readdata.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ readdata.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
readdata: $(srcdir)/readdata.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
chunks: chunks.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ chunks.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
chunks: $(srcdir)/chunks.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
extend_ds: extend_ds.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ extend_ds.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
extend_ds: $(srcdir)/extend_ds.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
writedata: writedata.lo
@$(LT_LINK_EXE) $(CXXFLAGS) -o $@ writedata.lo $(LDFLAGS) $(LIB) $(LIBS) $(LIBHDF5) $(DEFAULT_LIBS)
writedata: $(srcdir)/writedata.cpp
$(CXX) $(CPPFLAGS) -o $@ $<
@CONCLUDE@