From 69b9b6bb4b0401ae6dd5c0fc9edc2171c435a859 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 13 Feb 2008 15:09:35 +0000 Subject: [PATCH] added --- .gitattributes | 1 + test/h5b/Makefile.am | 99 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 test/h5b/Makefile.am diff --git a/.gitattributes b/.gitattributes index 428d82e..1d565d3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -76,6 +76,7 @@ test/h5b/H5BlockParTestScalarField.pbs -text test/h5b/H5BlockParTestScalarFieldF.f90 -text test/h5b/H5BlockTestAttributes.c -text test/h5b/H5BlockTestAttributesF.f90 -text +test/h5b/Makefile.am -text test/h5u/Bench.c -text test/h5u/H5ParallelTest.cc -text test/h5u/H5PartAndreasTest.cc -text diff --git a/test/h5b/Makefile.am b/test/h5b/Makefile.am new file mode 100644 index 0000000..ec2f500 --- /dev/null +++ b/test/h5b/Makefile.am @@ -0,0 +1,99 @@ +# test level Makefile.am + +# 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 = @TBTARGET@ + +# Some useful scripts that I wish to place in the $(prefix)/bin directory. +bin_SCRIPTS = +#bin_SCRIPTS = JAC_H5PartTestP_script.scr JAC_H5testFpar_script.scr JAC_RUN_ALL_script.scr + + +# 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 = \ + H5BlockParTestScalarField.c H5BlockParTestScalarFieldF.f90 \ + H5BlockTestAttributes.c H5BlockTestAttributesF.f90 \ + $(bin_SCRIPTS) + +# Specific building instruction (What compilers to use...) +# ------------ Build Tests ------------ + +############################################################################### + +% : %.o + $(CC) -o $@ $< $(H5LIB) $(LIBS) + +%.o : %.c + $(CC) $(CFLAGS) $(INC) -g -c $< + +%.o : %.f90 + ${FC} $(FFLAGS) -c $(H5INC) $< + +H5BlockTestAttributes.o: H5BlockTestAttributes.c + +H5BlockTestAttributes: H5BlockTestAttributes.o + +H5BlockTestAttributesF.o: H5BlockTestAttributesF.f90 + +H5BlockTestAttributesF: H5BlockTestAttributesF.o + $(FC) -o $@ $< $(H5LIB) -lH5PartF -lH5Part $(LIBS) + +H5BlockParTestScalarField.o: H5BlockParTestScalarField.c + +H5BlockParTestScalarField: H5BlockParTestScalarField.o + +H5BlockParTestScalarFieldF.o: H5BlockParTestScalarFieldF.f90 + +H5BlockParTestScalarFieldF: H5BlockParTestScalarFieldF.o + $(FC) -o $@ $< $(H5LIB) -lH5PartF -lH5Part $(LIBS) + +H5BlockDissolveGhosts.o: H5BlockDissolveGhosts.c + +H5BlockDissolveGhosts: H5BlockDissolveGhosts.o + + +############################################################################### +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 +