# change the following path to the HDF5 path in your system HDF5_DIR=/mnt/hdf/kent/check_cf_example/hdf5bin CC=gcc 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_hl -lhdf5 -lsz -lz -lm #LIBS=-lhdf5_hl -lhdf5 -lz -lm all: clean general chunk_compress 3D dim_scale general: hdf5_general.c $(CC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ chunk_compress: hdf5_chunk_compress.c $(CC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ 3D: hdf5_3D.c $(CC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ dim_scale: dim_scale.c $(CC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ clean: rm -rf general chunk_compress 3D dim_scale