From b1f4233cb71d0b1e40b8558032dab7e7f1b79fc2 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 13 Feb 2008 15:09:50 +0000 Subject: [PATCH] added --- .gitattributes | 1 + test/h5t/Makefile.am | 76 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 test/h5t/Makefile.am diff --git a/.gitattributes b/.gitattributes index 1855b9b..1919402 100644 --- a/.gitattributes +++ b/.gitattributes @@ -77,6 +77,7 @@ test/h5b/H5BlockParTestScalarFieldF.f90 -text test/h5b/H5BlockTestAttributes.c -text test/h5b/H5BlockTestAttributesF.f90 -text test/h5b/Makefile.am -text +test/h5t/Makefile.am -text test/h5t/simple_tet.c -text test/h5u/Bench.c -text test/h5u/H5ParallelTest.cc -text diff --git a/test/h5t/Makefile.am b/test/h5t/Makefile.am new file mode 100644 index 0000000..902730e --- /dev/null +++ b/test/h5t/Makefile.am @@ -0,0 +1,76 @@ +# test level Makefile.am + +OBJEXT = o + +# PATH SETTING +HDF5ROOT = @HDF5ROOT@ + +# COMPILER SETTING +CXX = @CXX@ +FC = @FC@ +MPIFC = @MPIFC@ +MPICXX = @MPICXX@ +MPICC = @MPICC@ + +# COMPILER FLAG SETTING +CFLAGS = @CFLAGS@ +FFLAGS = @FFLAGS@ @MPIINC@ + +# LIBRARIES +SZLIB = @SZLIB@ +HDFLIB = -L$(HDF5ROOT)/lib -lhdf5 -lz $(SZLIB) @LDFLAGS@ +MPILIB = @MPILIB@ +H5LIB = -L@H5P_LIB_LOC@ -L@H5P_LIB_LOC@/h5 -lH5Part -lH5 + +LIBS = ${H5LIB} $(HDFLIB) $(MPILIB) -lm @STDCXX@ + +# H5Part compiled library location +# H5PLIB = -L@prefix@/lib + +# INCLUDES +HDFINC = -I$(HDF5ROOT)/include +MPIINC = @MPIINC@ +H5INC = -I@H5P_LIB_LOC@ + +INC = $(HDFINC) $(MPIINC) $(H5INC) + + +# What to build... make install will place these files in the $(prefix)/bin directory. +bin_PROGRAMS = simple_tet + +# Some useful scripts that I wish to place in the $(prefix)/bin directory. +bin_SCRIPTS = + + + +# Listing of all programs that maybe built. (Has to know statically...) +EXTRA_PROGRAMS = + +# Extra files that I wish to include in the dist tar ball. +EXTRA_DIST = \ + simple_tet.c \ + $(bin_SCRIPTS) + + +############################################################################### +% : %.o + $(CC) -o $@ $< $(H5LIB) $(LIBS) + +%.o : %.c + $(CC) $(CFLAGS) $(INC) -g -c $< + +%.o : %.f90 + ${FC} $(FFLAGS) -c $(H5INC) $< + +############################################################################### +clean: + ${RM} -f *~ *.o ${bin_PROGRAMS} + +distclean: clean + ${RM} -rf .deps + ${RM} -rf .libs + ${RM} -f parttest.h5 + ${RM} -rf config.status config.log config.h Makefile + + +