#!/bin/csh -f # # Sun script to compile and link HDF C file using binaries # installed in DIR # # Required option: C file to be compiled, without the ".c" extension # set COMPILER=gcc set CFLAGS='-ansi' set DIR= # ${COMPILER} ${CFLAGS} -o $1 $1'.c' -I${DIR}/include -L${DIR}/lib \ -lmfhdf -ldf -ljpeg -lz