You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
psblas3/Make.inc

104 lines
3.0 KiB
PHTML

20 years ago
.mod=.mod
.fh=.fh
.SUFFIXES: .f90 $(.mod) .F90 .F
20 years ago
####################### Section 1 #######################
# Define your compilers and compiler flags here #
##########################################################
F90=/usr/local/gcc42/bin/gfortran
FC=/usr/local/gcc42/bin/gfortran
20 years ago
F77=$(FC)
CC=/usr/local/gcc42/bin/gcc
F90COPT=-O3 -pg
FCOPT=-O3 -pg
CCOPT=-O3 -pg
#
# Which flag does your compiler use for module inclusion?
# Most compilers use -I but Sun uses -M
# FIFLAG is for INCLUDE
FMFLAG=-I
FIFLAG=-I
20 years ago
####################### Section 2 #######################
# Define your linker and linker flags here #
# Does your MPI provide mpi.mod or mpif.h? #
# MPI_FINC=-DMPI_H or MPI_FINC=-DMPI_MOD #
# If necessary add an include dir #
20 years ago
##########################################################
F90LINK=/usr/local/mpich-gcc42/bin/mpif90 -pg
FLINK=/usr/local/mpich-gcc42/bin/mpif77
MPF90=/usr/local/mpich-gcc42/bin/mpif90
MPF77=/usr/local/mpich-gcc42/bin/mpif77
MPCC=/usr/local/mpich-gcc42/bin/mpicc
MPI_FINC=-DMPI_MOD
#$(FIFLAG)/opt/SUNWhpc/include
20 years ago
####################### Section 3 #######################
# Specify paths to libraries #
##########################################################
BLAS=-lblas-gcc42 -L$(HOME)/LIB
BLACS=-lmpiblacs-gcc42 -L$(HOME)/LIB
20 years ago
####################### Section 4 #######################
# Other useful tools&defines #
##########################################################
SLUDIR=/usr/local/SuperLU_3.0
SLU=-lslu_lx_gcc42 -L$(SLUDIR)
SLUDistDIR=/usr/local/SLUDist_2.0
SLUDist=-lslud-bck-gcc42 -L$(SLUDistDIR) -L $(HOME)/LIB
SLUDEF=-DHave_SLU_ -I$(SLUDIR) -DHave_SLUDist_ -I$(SLUDistDIR)
UMFDIR=$(HOME)/LIB/Umfpack_gcc41
UMF=-lumfpack -lamd -L$(UMFDIR)
UMFDEF=-DHave_UMF_ -I$(UMFDIR)
#
# We are using the public domain tool METIS from U. Minnesota. To get it
# check URL http://www.cs.umn.edu:~karypis
#
METIS_LIB = -L$(HOME)/NUMERICAL/metis-4.0 -lmetis
LDLIBS=$(BLACS) $(SLU) $(SLUDist) $(UMF) $(BLAS) $(METIS_LIB)
# Add -DLargeFptr for 64-bit addresses
CDEFINES=-DAdd_ $(SLUDEF) $(UMFDEF)
FDEFINES=-DNETLIB_BLACS $(MPI_FINC) -DHAVE_MOVE_ALLOC
20 years ago
AR=ar -cur
RANLIB=ranlib
####################### Section 5 #######################
# Do not edit this #
##########################################################
LIBDIR=lib
BASELIBNAME=libpsb_base.a
PRECLIBNAME=libpsb_prec.a
METHDLIBNAME=libpsb_krylov.a
UTILLIBNAME=libpsb_util.a
20 years ago
# Under Linux/gmake there is a rule interpreting .mod as Modula source!
$(.mod).o:
.c.o:
$(CC) $(CCOPT) $(CINCLUDES) $(CDEFINES) -c $<
.f.o:
$(FC) $(FCOPT) $(FINCLUDES) -c $<
20 years ago
.f$(.mod):
$(F90) $(FCOPT) $(FINCLUDES) -c $<
20 years ago
.f90$(.mod):
$(F90) $(F90COPT) $(FINCLUDES) -c $<
20 years ago
.f90.o:
$(F90) $(F90COPT) $(FINCLUDES) -c $<
.F.o:
$(F90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
.F90.o:
$(F90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
.F90$(.mod):
$(F90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
20 years ago