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.
100 lines
2.6 KiB
Plaintext
100 lines
2.6 KiB
Plaintext
.mod=.mod
|
|
.fh=.fh
|
|
.SUFFIXES: .f90 $(.mod) .F90 .F
|
|
|
|
|
|
####################### Section 1 #######################
|
|
# Define your compilers and compiler flags here #
|
|
##########################################################
|
|
F90=/usr/local/gcc42/bin/gfortran
|
|
FC=/usr/local/gcc42/bin/gfortran
|
|
F77=$(FC)
|
|
CC=/usr/local/gcc42/bin/gcc
|
|
F90COPT=-O3
|
|
FCOPT=-O3
|
|
CCOPT=-O3
|
|
#
|
|
# 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
|
|
|
|
####################### 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 MPIINCDIR #
|
|
##########################################################
|
|
F90LINK=$(FC)
|
|
FLINK=$(FC)
|
|
MPF90=$(FC)
|
|
MPF77=$(FC)
|
|
MPCC=$(CC)
|
|
MPI_FINC=-DMPI_MOD
|
|
#$(FIFLAG)/opt/SUNWhpc/include
|
|
|
|
####################### Section 3 #######################
|
|
# Specify paths to libraries #
|
|
##########################################################
|
|
BLAS=-lblas-gcc42 -L$(HOME)/LIB
|
|
# No BLACS in serialMPI. But we need the fakempi.o
|
|
#BLACS=-lmpiblacs-gcc42 -L$(HOME)/LIB
|
|
EXTRA_COBJS=fakempi.o
|
|
|
|
|
|
####################### Section 4 #######################
|
|
# Other useful tools&defines #
|
|
##########################################################
|
|
#
|
|
# 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
|
|
PSBLDLIBS=$(BLACS) $(BLAS) $(METIS_LIB)
|
|
|
|
# Add -DLargeFptr for 64-bit addresses
|
|
PSBCDEFINES=-DAdd_
|
|
PSBFDEFINES=-DHAVE_MOVE_ALLOC -DSERIAL_MPI $(MPI_FINC)
|
|
|
|
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
|
|
|
|
CDEFINES=$(PSBCDEFINES)
|
|
FDEFINES=$(PSBFDEFINES)
|
|
|
|
# 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 $<
|
|
.f$(.mod):
|
|
$(FC) $(FCOPT) $(FINCLUDES) -c $<
|
|
.f90$(.mod):
|
|
$(F90) $(F90COPT) $(FINCLUDES) -c $<
|
|
.f90.o:
|
|
$(F90) $(F90COPT) $(FINCLUDES) -c $<
|
|
.F.o:
|
|
$(FC) $(FCOPT) $(FINCLUDES) $(FDEFINES) -c $<
|
|
.F90.o:
|
|
$(F90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
|
|
.F90$(.mod):
|
|
$(F90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
|
|
|
|
|
|
|
|
|