# $Id: base.site,v 1.6 2001/03/27 22:17:30 balay Exp $ 
#
# Location of BLAS and LAPACK.  See ${PETSC_DIR}/docs/intallation.html 
# for information on retrieving them.
#
BLASLAPACK_LIB = -lblas-3 -llapack-3

#
# Location of MPI (Message Passing Interface) software
#
# At build-time, mpich below is substituted with mpich or lam so the
# appropriate section below is used.

PETSC_MPI=mpich

# For mpich:
ifeq ($(PETSC_MPI),mpich)
  MPI_HOME       = /usr/lib/mpich
  MPI_LIB        = -L${MPI_HOME}/lib/shared -L${MPI_HOME}/lib -lmpich
  MPIRUN         = /usr/bin/mpirun.mpich
  MPI_INCLUDE    = -I/usr/lib/mpich/include
endif

# For lam:
ifeq ($(PETSC_MPI),lam)
  MPI_HOME       = /usr
  MPI_LIB        = -llam
  MPIRUN         = ${PETSC_DIR}/bin/mpirun.lam
  MPI_INCLUDE    = -I/usr/include/lam -DPETSC_HAVE_MPI_COMM_F2C
endif

# Future agnostic version which may work someday (if mpich gets shared libs):
ifeq ($(PETSC_MPI),agnostic)
  MPI_HOME       = /usr
  MPI_LIB        = /usr/lib/libmpi.a
  MPIRUN         = mpirun
  MPI_INCLUDE    = -I/usr/include/mpi
endif
#
# ----------------------------------------------------------------------------------------  
#  Locations of OPTIONAL packages. Comment out those you do not have.
# ----------------------------------------------------------------------------------------  
#
# Location of X-windows software
#
X11_INCLUDE    = -I/usr/X11R6/include/X11/
X11_LIB        = -L/usr/X11R6/lib -lX11
PETSC_HAVE_X11 = -DPETSC_HAVE_X11
#
# Location of MPE
# If using MPICH version 1.1.2 or higher use the flag -DPETSC_HAVE_MPE_INITIALIZED_LOGGING
#
ifeq ($(PETSC_MPI),mpich)
  MPE_INCLUDE   = ${MPI_INCLUDE} -DPETSC_HAVE_MPE_INITIALIZED_LOGGING
  MPE_LIB       = -L${MPI_HOME}/lib/shared -L${MPI_HOME}/lib -lmpe -lpmpich -lslog
  PETSC_HAVE_MPE = -DPETSC_HAVE_MPE
endif

# At build-time, main below is substituted with main or contrib to use
# or ignore ParMETIS and Hypre as appropriate:

DEBIAN_DIST=main

# Location of ParMetis
#
ifeq ($(DEBIAN_DIST),contrib)
PARMETIS_INCLUDE    = 
PARMETIS_LIB        = -lparmetis -lmetis
PETSC_HAVE_PARMETIS = -DPETSC_HAVE_PARMETIS
endif

#  Location of hypre
#
ifeq ($(DEBIAN_DIST),contrib)
HYPRE_INCLUDE    = 
HYPRE_LIB        = -lHYPRE_parcsr_ls -lHYPRE_DistributedMatrix -lHYPRE_parcsr_mv  -lHYPRE_FEI -lHYPRE_seq_mv -lHYPRE_IJ_mv -lkrylov -lHYPRE_DistributedMatrixPilutSolver -lHYPRE_utilities  -lHYPRE_MatrixMatrix -lHYPRE_ParaSails -lHYPRE_Euclid -lHYPRE_parcsr_ls -lHYPRE_DistributedMatrix -lHYPRE_parcsr_mv  -lHYPRE_FEI -lHYPRE_seq_mv -lHYPRE_IJ_mv -lkrylov -lHYPRE_DistributedMatrixPilutSolver -lHYPRE_utilities  -lHYPRE_MatrixMatrix -lHYPRE_ParaSails -lHYPRE_Euclid 

PETSC_HAVE_HYPRE = -DPETSC_HAVE_HYPRE
endif
