#!/bin/csh
# -I include paths separated by \
# -g source files separated by space
# -L library paths separated by \
# -l libraries
# -o output file
setenv INCLUDE $cwd/../
setenv DEST    $cwd/../../bin
setenv CC gcc

mkdir -p $DEST
#
setenv file_prefix "$1"
$CC -Wall -I$INCLUDE -O \
    -g3 $file_prefix.c $INCLUDE/ipol.c \
                       $INCLUDE/numio.c $INCLUDE/edfio.c $INCLUDE/bslio.c \
                       $INCLUDE/raster.c $INCLUDE/gamma.c $INCLUDE/cmpr.c \
                       $INCLUDE/strlib.c $INCLUDE/filename.c \
    -L$INCLUDE\
    -lm -lz\
    -o $DEST/$file_prefix
 

