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.
80 lines
2.5 KiB
PHTML
80 lines
2.5 KiB
PHTML
20 years ago
|
.mod=.mod
|
||
|
.SUFFIXES: .f90 $(.mod)
|
||
|
|
||
|
|
||
|
####################### Section 1 #######################
|
||
|
# Define your compilers and compiler flags here #
|
||
|
##########################################################
|
||
|
F90=ifort
|
||
|
FC=ifort
|
||
|
CC=icc
|
||
|
F77=$(FC)
|
||
|
F90COPT=-g -CB -no_cpprt
|
||
|
FCOPT=-g -CB -no_cpprt
|
||
|
CCOPT=-g -CB -no_cpprt
|
||
|
|
||
|
####################### Section 2 #######################
|
||
|
# Define your linker and linker flags here #
|
||
|
##########################################################
|
||
|
F90LINK=/usr/local/mpich-intel/bin/mpif90 -g -CB -no_cpprt
|
||
|
FLINK=mpif77 -g -CB -no_cpprt
|
||
|
MPF90=/usr/local/mpich-intel/bin/mpif90 -g -CB -no_cpprt
|
||
|
MPCC=/usr/local/mpich-intel/bin/mpicc -g -CB -no_cpprt
|
||
|
|
||
|
####################### Section 3 #######################
|
||
|
# Specify paths to libraries #
|
||
|
##########################################################
|
||
|
BLAS=-lblas-intel -L$(HOME)/NUMERICAL/LIB
|
||
|
BLACS=-lmpiblacs-intel -L$(HOME)/NUMERICAL/LIB
|
||
|
|
||
|
|
||
|
####################### Section 4 #######################
|
||
|
# Other useful tools&defines #
|
||
|
##########################################################
|
||
|
CDEFINES=-DAdd_
|
||
|
AR=ar -cur
|
||
|
RANLIB=ranlib
|
||
|
|
||
|
|
||
|
|
||
|
####################### Section 5 #######################
|
||
|
# Do not edit this #
|
||
|
##########################################################
|
||
|
LIBDIR = lib
|
||
|
PSBLASLIB = libpsblas.a
|
||
|
TOOLSLIB = libpsbtools.a
|
||
|
COMMLIB = libpsbcomm.a
|
||
|
METHDLIB = libpsbmethd.a
|
||
|
PRECLIB = libpsbprec.a
|
||
|
|
||
|
TYPEMODS = psb_spmat_type$(.mod) psb_desc_type$(.mod) psb_prec_type$(.mod) psb_realloc_mod$(.mod)
|
||
|
CONSTMODS = psb_tools_const$(.mod)
|
||
|
BLASMODS = $(TYPEMODS) psb_psblas_mod$(.mod) psb_comm_mod$(.mod)
|
||
|
METHDMODS = psb_methd_mod$(.mod)
|
||
|
TOOLSMODS = $(CONSTMODS) psi_mod$(.mod) psb_tools_mod$(.mod) psb_serial_mod$(.mod)
|
||
|
PRECMODS = psb_prec_mod$(.mod)
|
||
|
ERRORMODS = psb_error_mod$(.mod)
|
||
|
F90MODS= $(BLASMODS) $(PRECMODS) $(METHDMODS) $(TOOLSMODS) $(ERRORMODS) string$(.mod)
|
||
|
|
||
|
MODS=$(LIBDIR)/psb_tools_const$(.mod) $(LIBDIR)/psb_spmat_type$(.mod) $(LIBDIR)/psb_realloc_mod$(.mod) \
|
||
|
$(LIBDIR)/psb_desc_type$(.mod) $(LIBDIR)/psb_prec_type$(.mod) $(LIBDIR)/parts.f90 \
|
||
|
$(LIBDIR)/psb_serial_mod$(.mod) $(LIBDIR)/psb_comm_mod$(.mod) $(LIBDIR)/psb_error_mod$(.mod)
|
||
|
|
||
|
# Under Linux/gmake there is a rule interpreting .mod as Modula source!
|
||
|
$(.mod).o:
|
||
|
|
||
|
.f.o:
|
||
|
$(FC) $(FCOPT) -I $(INCDIRS) -c $<
|
||
|
.c.o:
|
||
|
$(CC) $(CCOPT) -I $(INCDIRS) $(CDEFINES) -c $<
|
||
|
.f$(.mod):
|
||
|
$(F90) $(FCOPT) -I $(INCDIRS) -c $<
|
||
|
.f90$(.mod):
|
||
|
$(F90) $(F90COPT) -I $(INCDIRS) -c $<
|
||
|
.f90.o:
|
||
|
$(F90) $(F90COPT) -I $(INCDIRS) -c $<
|
||
|
|
||
|
|
||
|
|
||
|
|