Changes for SUN compilers.
parent
cb596870e7
commit
ae4600eefb
@ -0,0 +1,103 @@
|
|||||||
|
#Makefile for Sun Fortran Compiler version 6.2
|
||||||
|
|
||||||
|
.mod=.mod
|
||||||
|
.fh=.fh
|
||||||
|
.SUFFIXES: .f90 $(.mod) .F90 .F
|
||||||
|
|
||||||
|
|
||||||
|
####################### Section 1 #######################
|
||||||
|
# Define your compilers and compiler flags here #
|
||||||
|
##########################################################
|
||||||
|
F90=f90
|
||||||
|
FC=f90
|
||||||
|
F77=$(FC)
|
||||||
|
CC=cc
|
||||||
|
F90COPT=-fast
|
||||||
|
FCOPT=-fast
|
||||||
|
CCOPT=-fast
|
||||||
|
#
|
||||||
|
# Which flag does your compiler use for module inclusion?
|
||||||
|
# Most compilers use -I but Sun uses -M
|
||||||
|
# FIFLAG is for INCLUDE
|
||||||
|
FMFLAG=-M
|
||||||
|
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 the include dir #
|
||||||
|
##########################################################
|
||||||
|
F90LINK=mpf90
|
||||||
|
FLINK=mpf90 -lf77compat
|
||||||
|
MPF90=mpf90
|
||||||
|
MPF77=mpf90 -lf77compat
|
||||||
|
MPCC=mpcc
|
||||||
|
MPI_FINC=-DMPI_H $(FIFLAG)/opt/SUNWhpc/include
|
||||||
|
|
||||||
|
####################### Section 3 #######################
|
||||||
|
# Specify paths to libraries #
|
||||||
|
##########################################################
|
||||||
|
BLAS=-lblas
|
||||||
|
BLACS=-lblacsCinit_MPI-SUN4SOL2-0.a -lblacsF77init_MPI-SUN4SOL2-0.a -lblacs_MPI-SUN4SOL2-0.a -L$(HOME)/LIB
|
||||||
|
BLACS=$(HOME)/LIB/libblacs_MPI-SUN4SOL2-0.a $(HOME)/LIB/libblacsCinit_MPI-SUN4SOL2-0.a $(HOME)/LIB/libblacsF77init_MPI-SUN4SOL2-0.a $(HOME)/LIB/libblacs_MPI-SUN4SOL2-0.a -lmpi
|
||||||
|
|
||||||
|
####################### Section 4 #######################
|
||||||
|
# Other useful tools&defines #
|
||||||
|
##########################################################
|
||||||
|
SLUDIR=
|
||||||
|
SLU=
|
||||||
|
SLUDEF=
|
||||||
|
|
||||||
|
UMFDIR=
|
||||||
|
UMF=
|
||||||
|
UMFDEF=
|
||||||
|
|
||||||
|
|
||||||
|
METIS_LIB = -L$(HOME)/NUMERICAL/metis-4.0 -lmetis
|
||||||
|
LDLIBS=$(BLACS) $(SLU) $(SLUDist) $(UMF) $(BLAS) $(METIS_LIB)
|
||||||
|
|
||||||
|
# Add -DLargeFptr for 64-bit addresses
|
||||||
|
# SUN compiler does not have MOVE_ALLOC.
|
||||||
|
# -DHAVE_MOVE_ALLOC
|
||||||
|
CDEFINES=-DAdd_ $(SLUDEF) $(UMFDEF)
|
||||||
|
FDEFINES=-DNETLIB_BLACS $(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
|
||||||
|
|
||||||
|
# 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 $<
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue