# $Id: variables,v 1.16 2001/08/22 17:58:22 balay Exp $ 
#
#     See the file bmake/variables.defs for a complete explanation of all these fields
#
AR		   = ar
AR_FLAGS           = cr
RM		   = rm -f
OMAKE		   = make
RANLIB		   = true
SHELL		   = /bin/sh
SED		   = /bin/sed
MKDIR              = mkdir -p
LIB_SUFFIX         = a
DIFF               = diff
INSTALL_DIR        = ${PETSC_DIR}
# ######################### C and Fortran compiler ########################
# LAM installed with sun compilers cc, CC, f90
LAM_HOME           = /home/petsc/soft/solaris-9-lam/lam-6.5.8
C_CC		   = ${LAM_HOME}/bin/mpicc -KPIC -dalign
C_FC		   = ${LAM_HOME}/bin/mpif77 -xpp=cpp -dalign
C_CLINKER_SLFLAG   = -R
C_FLINKER_SLFLAG   = -R
C_CLINKER	   = ${LAM_HOME}/bin/mpicc 
C_FLINKER	   = ${LAM_HOME}/bin/mpif77
C_CCV		   = cc -V -c
C_FCV		   = f90 -V
C_SYS_LIB	   = -lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai -lfminvai -lfmaxvai -lfsu -lsunmath -lm
# ---------------------------- BOPT - g options ----------------------------
G_COPTFLAGS	   = -g -xs
G_FOPTFLAGS	   = -g -xs
# ----------------------------- BOPT - O options -----------------------------
O_COPTFLAGS	   = -xO3  -fsimple=2
O_FOPTFLAGS	   = -xO3
# ########################## C++ compiler ##################################
#
CXX_CC		   = ${LAM_HOME}/bin/mpCC  -w -features=anachronisms -instances=static -KPIC
CXX_FC		   = ${LAM_HOME}/bin/mpf77   -xpp=cpp
CXX_CLINKER_SLFLAG = -R
CXX_FLINKER_SLFLAG = -R
CXX_CLINKER	   = ${LAM_HOME}/bin/mpCC
CXX_FLINKER	   = ${LAM_HOME}/bin/mpCC
CXX_CCV		   = CC    -V -c
CXX_SYS_LIB	   = -lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai -lfminvai -lfmaxvai -lfsu -lsunmath -lm
# older versions of the compiler may require -lcomplex before the -ldl
# ------------------------- BOPT - g_c++ options ------------------------------
GCXX_COPTFLAGS	   = -g  -xs
GCXX_FOPTFLAGS	   = -g  -xs
# ------------------------- BOPT - O_c++ options ------------------------------
OCXX_COPTFLAGS	   = -xO3 -fsimple=2
OCXX_FOPTFLAGS	   = -xO3
# -------------------------- BOPT - g_complex options ------------------------
GCOMP_COPTFLAGS	   = -g -xs
GCOMP_FOPTFLAGS	   = -g -xs
# --------------------------- BOPT - O_complex options -------------------------
OCOMP_COPTFLAGS	   = -xO3 -fsimple=2
OCOMP_FOPTFLAGS	   = -xO3
# ########################### PETSc install options ###########################
G_PETSCFLAGS	   = -DPETSC_USE_DEBUG  -DPETSC_USE_LOG -DPETSC_USE_BOPT_g \
                     -DPETSC_USE_STACK 
O_PETSCFLAGS	   = -DPETSC_USE_DEBUG  -DPETSC_USE_BOPT_O -DPETSC_USE_LOG
GCXX_PETSCFLAGS	   = -DPETSC_USE_DEBUG  -DPETSC_USE_LOG -DPETSC_USE_BOPT_g \
                     -DPETSC_USE_STACK
OCXX_PETSCFLAGS	   = -DPETSC_USE_DEBUG  -DPETSC_USE_LOG -DPETSC_USE_BOPT_O
GCOMP_PETSCFLAGS   = -DPETSC_USE_DEBUG  -DPETSC_USE_LOG -DPETSC_USE_BOPT_g \
                     -DPETSC_USE_COMPLEX  -DPETSC_USE_FORTRAN_KERNELS -DPETSC_USE_STACK
OCOMP_PETSCFLAGS   = -DPETSC_USE_DEBUG  -DPETSC_USE_LOG -DPETSC_USE_BOPT_O \
                     -DPETSC_USE_COMPLEX  -DPETSC_USE_FORTRAN_KERNELS
# ############################ Notes ############################################
#
#  1) use the Solaris command fpversion to get detailed compiler optimization
#     flags regarding the cache, e.g.
#fire>fpversion
#Use "-xtarget	   = ultra2 -xcache=16/32/1:2048/64/1" code-generation option.
#
##################################################################################
#
#   PETSc installers should very rarely ever need to edit anything below this 
#
##################################################################################
NEEDED_A_LIBS      = -lm
PARCH		   = solaris


