# Makefile to build a shared library interface to the serial HDF5 IO # routines so they can be read into IDL # SunOS version # Note, you need to have the HDF5 shared-object library in your library # path, or call_external will fail. # #Try setting LD_LIBRARY_PATH to the proper location HDF5path = /opt/local IDLpath = /opt/local/rsi/idl_5.6/external OBJS = h5_read.o h5_file_interface.o h5_wrappers.o CCFLAGS = -xarch=v9b -xchip=ultra3 -I $(HDF5path)/include/sparcv9 -I $(IDLpath) .c.o : cc ${CCFLAGS} -c $< LDFLAGS = -B static -xarch=v9b -xchip=ultra3 -R/opt/local/lib/sparcv9:/opt/gm/lib/sparcv9 LIB = -L ${HDF5path}/lib/sparcv9 -lhdf5 h5_wrappers.so: ${OBJS} cc -o $@ ${LDFLAGS} ${OBJS} ${LIB} clean: rm -f *.o *.so