# opt-build-env
# November 13, 1998  C.Hammond
#  for use in setting a compilation environment when building
#  an OTHER OPTIONS server
#
#  18 Nov 1999. clh add vars for download specifically, but may be useful
# 		for other scripts in system.
#
setenv JGOFSDIR `pwd`
setenv PORT 1888
setenv MYADDR synthesis.whoi.edu:${PORT}
setenv TEMPDIR /tmp/${PORT}
#
# HELPDIR is subdirectory from JGOFSDIR for help documents
# HELPADDR is full URL to the location for help documents
#
setenv HELPDIR htdocs 
setenv HELPADDR http://${MYADDR}
setenv PERL /usr/local/bin/perl
setenv SYS Irix
#
# top level directory where objects are defined
#
setenv OBJDIR /jgofs
#
# location to be added to MYADDR to find Optionserver scripts
#
setenv JGSCRIPTDIR /jg

setenv BUTTONIMAGESDIR http://${MYADDR}/images
#
# auxiliary programs required for download functionality
#
setenv ZIPPROG /usr/local/bin/zip
setenv TARPROG /usr/bin/tar
setenv UNIXCOMPRESS /usr/bsd/compress
setenv GNUCOMPRESS /usr/sbin/gzip
# should only need to edit above this line

if ( "$SYS" == "linux" ) then
setenv CC "cc"
setenv FC "g77 -O"
setenv AR "ar rv"
setenv RANLIB "ranlib"
setenv NAWK awk
else if ( "$SYS" == "SunOS" ) then
setenv CC "cc -DSUN"
setenv FC "f77"
setenv AR "ar rv"
setenv RANLIB "ranlib"
setenv NAWK nawk
else if ( "$SYS" == "Solaris" ) then
setenv CC "cc -DSOL -DSVR4 -lnsl -lsocket"
setenv FC "f77 -lnsl -lsocket"
setenv AR "ar srv"
setenv RANLIB "echo"
setenv NAWK nawk
else if ( "$SYS" == "Irix" ) then
setenv CC "cc -cckr -DIRIX"
setenv F77 "f77 -woff 2290"
setenv AR "ar -srv"
setenv RANLIB "echo"
setenv NAWK nawk
setenv SHELL /sbin/sh
endif

setenv OPTIONSERVER ${MYADDR}/jg/otheropt
setenv INFOSERVER ${MYADDR}/jg/info
setenv DIRSERVER ${MYADDR}/jg/dir
setenv DMONAME "Option Server -- "
setenv OBJDIR /

#
# end of environment
