# /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/../include
setenv DEST    $cwd/../bin
#
setenv file_prefix "$1"
$CC -I/$INCLUDE/ -O \
    -g3 $file_prefix.c $INCLUDE/SaxsError.c $INCLUDE/SaxsExpression.c \
                      $INCLUDE/SaxsInput.c $INCLUDE/SaxsImage.c \
                      $INCLUDE/SaxsRoutine.c $INCLUDE/SaxsOption.c \
                      $INCLUDE/SaxsFilename.c $INCLUDE/GetCCDFrame.c \
                      $INCLUDE/edfio.c $INCLUDE/bslio.c \
                      $INCLUDE/gamma.c \
    -L$INCLUDE \
    -lm\
    -o $DEST/$file_prefix | more

