# change the following path to the HDF5 path in your system HDF5_DIR=/mnt/hdf/kent/check_cf_example/hdf5bin #We are using h5fc script FC=$(HDF5_DIR)/bin/h5fc CFLAGS=-I$(HDF5_DIR)/include LDFLAGS=-L$(HDF5_DIR)/lib #If you don't install hdf5 with szip, removing "-lsz" below # or uncomment the following line LIBS=-lhdf5 -lhdf5_hl -lhdf5hl_fortran -lhdf5_fortran -lsz -lz -lm #LIBS=-lhdf5 -lhdf5_hl -lhdf5hl_fortran -lhdf5_fortran -lz -lm all: clean general chunk_compress 3D general: hdf5_general.f90 $(FC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ chunk_compress: hdf5_chunk_compress.f90 $(FC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ 3D: hdf5_3D.f90 $(FC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ clean: rm -rf general chunk_compress 3D *.o