# HDF5 HL_REGION version 1.1.5 # # Copyright by The HDF Group. # All rights reserved. # # This file is part of the High-Level region HDF5 APIs. The full copyright # notice, including terms governing use, modification, and redistribution, # is contained in the file COPYING, which can be found at the root of the # source code distribution tree and in the documentation directory (doc/html/). # If you do not have access to this file, you may request a copy of # "the High-Level region HDF5 APIs copyright and license statement" from # help@hdfgroup.org. # ############################################################################# # source files. SRC = hl_region_H5HLerror.c hl_region_H5HLint.c hl_region_H5LR.c hl_region_H5LT.c OBJ = $(SRC:.c=.o) OUT = ./libhdf5_hl_region.a # test to see if h5cc compiler is set #ifeq ($(CC),h5cc) # get the install path #HDF5_INSTALL_DIR = $(CC) | grep -E '[^:]+$' #else #endif # [^:]+$ # include directories INCLUDES = -I$(HDF5_INSTALL_DIR)/include # compiler #CC = $(HDF5_INSTALL_DIR)/bin/h5cc -g CC = $(HDF5_INSTALL_DIR)/bin/h5cc .SUFFIXES: .c default: $(OUT) .c.o: $(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@ $(OUT): $(OBJ) ar rcs $(OUT) $(OBJ) clean: \rm -f $(OBJ) $(OUT)