# Set compilers and libraries for linking sked 
# History
#  2008Mar21  JMGipson first version
#  2009Mar03  JMGipson. Put in options so that it would be compatible with HP-UX.
# 
# Set the compilers and linkers:

setenv FC "gfortran -std=legacy -fno-range-check -fno-underscoring -g -D READ_LINE -I skdrincl"
setenv LINK gfortran
#setenv FC "/opt/intel/fc/bin/ifort -I skdrincl -c -fpp -nus -static -g -D READ_LINE"
#setenv LINK "/opt/intel/fc/bin/ifort -D READ_LINE"
setenv CC   "gcc -c -g -I/usr/include"
#
# Begin HP vs linux differences #
#   Following are for HP. Uncomment if appropriate.
#setenv SKED_HEAD sked_hp.o
#setenv ARCHIV "ar -qc"
#setenv VEX_LIB "../vex/vex_hp.a"
#  Following are for linux. Uncomment if appropriate.
setenv SKED_HEAD sked_lnx.o
setenv VEX_LIB "../vex/vex64.a"
setenv ARCHIV "ar -sqc"
# End HP vs linux differences.  
#
#if are using READ_LINE, then use read_cmdline_new.o
setenv READ_CMDLINE read_cmdline.o
#setenv READ_CMDLINE read_cmdline_new.o 
#
# PATHS to various libraries
#
#->setenv ATLAS_LIB /opt/lib/libatlas.a  
#->setenv BLAS_LIB  /opt/lib/libf77blas.a 
#->setenv CURSES_LIB /usr/lib/libncurses.a
setenv CURSES_LIB -lncurses
setenv FLEX_LIB  -lfl
setenv READLINE_LIB -lreadline
setenv READLINE_LIB " "
#
# If you want to link to the mysql, include the following (or something similar)
#
#->setenv MYSQL_LIB /usr/lib/mysql/libmysqlclient.so.15
#->setenv MYSQL_INT mysql_int.o
#
# If you don't want to link uncomment the following
#
setenv MYSQL_LIB 
setenv MYSQL_INT mysql_stub.o

