############################################################################# # # Makefile to build a shared library interface to the serial HDF5 IO # routines so they can be read into IDL. # # Sun Solaris version contributed by Tom Statler. # ############################################################################# # # point to location of HDF5 library on your system # HDF5path = /usr/users/tss/Hydro/tools/5-1.4.5-sol2.7 # # point to location of external subsystem of IDL on your system # IDLpath = /usr/local/rsi/idl_5.6/external # # system-specific compiler and loader flags # CCFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ -K pic -I $(HDF5path)/include -I $(IDLpath) LDFLAGS = -Bsymbolic -znodefs -G # # ---- usually no modifications required below this line ------- # # # libraries # LIB = -L ${HDF5path}/lib -lhdf5 # # objects # OBJS = h5_read.o h5_file_interface.o h5_wrappers.o # # compilation # .c.o : cc ${CCFLAGS} -c $< # # dynamic library build # h5_wrappers.so: ${OBJS} cc -o $@ ${LDFLAGS} ${OBJS} ${LIB}