*** empty log message ***
parent
08d9df5fde
commit
ee72fcd3b7
@ -1,52 +0,0 @@
|
||||
# Using Lahey F95
|
||||
.mod=.mod
|
||||
.SUFFIXES: .f90 $(.mod)
|
||||
F90=lf95
|
||||
FC=lf95
|
||||
F77=$(FC)
|
||||
FCOPT= -O
|
||||
F90COPT= -O
|
||||
CC=gcc
|
||||
CCOPT=-O2 -g -ggdb -pg
|
||||
F90LINK=mpif90
|
||||
FLINK=mpif77
|
||||
#
|
||||
#
|
||||
BLAS=-lblas -L$(HOME)/LIB
|
||||
BLACS=-lmpiblacslh -L$(HOME)/LIB
|
||||
|
||||
#
|
||||
CDEFINES=-DAdd_
|
||||
AR=ar -cur
|
||||
RANLIB=ranlib
|
||||
|
||||
TYPEMODS = typesp$(.mod) typedesc$(.mod)
|
||||
CONSTMODS = tools_const$(.mod)
|
||||
BLASMODS = $(TYPEMODS) f90psblas$(.mod)
|
||||
METHDMODS = f90methd$(.mod)
|
||||
TOOLSMODS = $(CONSTMODS) f90tools$(.mod)
|
||||
F90MODS= $(BLASMODS) $(METHDMODS) $(TOOLSMODS) f90sparse$(.mod)
|
||||
|
||||
MODS=$(LIBDIR)/tools_const$(.mod) $(LIBDIR)/typesp$(.mod) \
|
||||
$(LIBDIR)/typedesc$(.mod) $(LIBDIR)/parts.f90
|
||||
|
||||
|
||||
|
||||
|
||||
# Under Linux/gmake there is a rule interpreting .mod as Modula source!
|
||||
$(.mod).o:
|
||||
|
||||
.f.o:
|
||||
$(FC) $(FCOPT) $(INCDIRS) -c $<
|
||||
.c.o:
|
||||
$(CC) $(CCOPT) $(INCDIRS) $(CDEFINES) -c $<
|
||||
.f$(.mod):
|
||||
$(F90) $(FCOPT) $(INCDIRS) -c $<
|
||||
.f90$(.mod):
|
||||
$(F90) $(F90COPT) $(INCDIRS) -c $<
|
||||
.f90.o:
|
||||
$(F90) $(F90COPT) $(INCDIRS) -c $<
|
||||
|
||||
|
||||
|
||||
|
@ -1,50 +1,85 @@
|
||||
# Using XLF
|
||||
.mod=.mod
|
||||
.fh=.fh
|
||||
.SUFFIXES: .f90 $(.mod)
|
||||
|
||||
|
||||
####################### Section 1 #######################
|
||||
# Define your compilers and compiler flags here #
|
||||
##########################################################
|
||||
F90=xlf95 -qsuffix=f=f90
|
||||
FC=xlf
|
||||
F77=$(FC)
|
||||
FCOPT=-O3
|
||||
CC=xlc
|
||||
F90COPT= -O3
|
||||
FCOPT=-O3
|
||||
CCOPT=-O3
|
||||
F90LINK=mpxlf90
|
||||
|
||||
####################### Section 2 #######################
|
||||
# Define your linker and linker flags here #
|
||||
##########################################################
|
||||
MPF90=mpxlf95 -qsuffix=f=f90
|
||||
FLINK=mpxlf77
|
||||
F90LINK=$(MPF90)
|
||||
FLINK=$(MPF90)
|
||||
MPCC=mpxlc
|
||||
#
|
||||
#
|
||||
BLAS=-lessl
|
||||
BLACS=-lmpiblacs -L$(HOME)/LIB
|
||||
#
|
||||
CDEFINES=-DNoChange
|
||||
|
||||
####################### Section 3 #######################
|
||||
# Specify paths to libraries #
|
||||
##########################################################
|
||||
BLAS=-lessl
|
||||
BLACS=-lmpiblacs
|
||||
|
||||
|
||||
####################### Section 4 #######################
|
||||
# Other useful tools&defines #
|
||||
##########################################################
|
||||
#SLUDIR=/usr/local/SuperLU_3.0
|
||||
#SLU=-lslu -L$(SLUDIR)
|
||||
#SLUDEF=-DHave_SLU_ -I$(SLUDIR)
|
||||
|
||||
#UMFDIR=$(HOME)/LIB/Umfpack
|
||||
#UMF=-lumfpack -lamd -L$(UMFDIR)
|
||||
#UMFDEF=-DHave_UMF_ -I$(UMFDIR)
|
||||
|
||||
# Add -DLargeFptr for 64-bit addresses
|
||||
CDEFINES=-DAdd_ $(SLUDEF) $(UMFDEF)
|
||||
|
||||
AR=ar -cur
|
||||
RANLIB=ranlib
|
||||
|
||||
TYPEMODS = typesp$(.mod) typedesc$(.mod) typeprec$(.mod) realloc$(.mod)
|
||||
CONSTMODS = tools_const$(.mod)
|
||||
BLASMODS = $(TYPEMODS) f90psblas$(.mod) f90comm$(.mod)
|
||||
METHDMODS = f90methd$(.mod)
|
||||
TOOLSMODS = $(CONSTMODS) psimod$(.mod) f90tools$(.mod) f90serial$(.mod)
|
||||
PRECMODS = f90prec$(.mod)
|
||||
F90MODS= $(BLASMODS) $(PRECMODS) $(METHDMODS) $(TOOLSMODS) f90sparse$(.mod)
|
||||
|
||||
MODS=$(LIBDIR)/tools_const$(.mod) $(LIBDIR)/typesp$(.mod) $(LIBDIR)/realloc$(.mod) \
|
||||
$(LIBDIR)/typedesc$(.mod) $(LIBDIR)/typeprec$(.mod) $(LIBDIR)/parts.f90 \
|
||||
$(LIBDIR)/f90serial$(.mod) $(LIBDIR)/f90comm$(.mod)
|
||||
|
||||
####################### Section 5 #######################
|
||||
# Do not edit this #
|
||||
##########################################################
|
||||
LIBDIR = lib
|
||||
LIBNAME = libpsblas.a
|
||||
|
||||
TYPEMODS = psb_spmat_type$(.mod) psb_descriptor_type$(.mod) psb_prec_type$(.mod) psb_realloc_mod$(.mod)
|
||||
CONSTMODS = psb_const_mod$(.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_const_mod$(.mod) $(LIBDIR)/psb_spmat_type$(.mod) $(LIBDIR)/psb_realloc_mod$(.mod) \
|
||||
$(LIBDIR)/psb_descriptor_type$(.mod) $(LIBDIR)/psb_prec_type$(.mod) $(LIBDIR)/parts.fh \
|
||||
$(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) $(INCDIRS) -c $<
|
||||
.c.o:
|
||||
$(CC) $(CCOPT) $(INCDIRS) $(CDEFINES) -c $<
|
||||
.f$(.mod):
|
||||
$(FC) $(FCOPT) $(INCDIRS) -c $<
|
||||
.f90$(.mod):
|
||||
$(F90) $(FCOPT) $(INCDIRS) -c $<
|
||||
.f90$(.mod):
|
||||
$(F90) $(F90COPT) $(INCDIRS) -c $<
|
||||
.f90.o:
|
||||
$(F90) $(FCOPT) $(INCDIRS) -c $<
|
||||
|
||||
$(F90) $(F90COPT) $(INCDIRS) -c $<
|
||||
|
||||
|
||||
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Using VAST F90
|
||||
.mod=.vo
|
||||
.SUFFIXES: .f90 $(.mod)
|
||||
F90=/usr/local/VASTF90/f90
|
||||
FC=/usr/local/VASTF90/f90
|
||||
F77=$(FC)
|
||||
FCOPT=-O2 -ff90 -g -ggdb -pg
|
||||
#-march=pentium4 -mfpmath=sse #You may want to use these
|
||||
CC=gcc
|
||||
CCOPT=-O2 -g -ggdb -pg
|
||||
F90LINK=/usr/local/mpich-vast/bin/mpif90
|
||||
FLINK=mpif77
|
||||
MPF90=/usr/local/mpich-vast/bin/mpif90
|
||||
MPCC=/usr/local/mpich-vast/bin/mpicc
|
||||
#
|
||||
#
|
||||
BLAS=-lblas -L$(HOME)/LIB
|
||||
BLACS=-lmpiblacsvast -L$(HOME)/LIB
|
||||
#
|
||||
CDEFINES=-DAdd_
|
||||
AR=ar -cur
|
||||
RANLIB=ranlib
|
||||
|
||||
TYPEMODS = typesp$(.mod) typedesc$(.mod) typeprec$(.mod) realloc$(.mod)
|
||||
CONSTMODS = tools_const$(.mod)
|
||||
BLASMODS = $(TYPEMODS) f90psblas$(.mod)
|
||||
METHDMODS = f90methd$(.mod)
|
||||
TOOLSMODS = $(CONSTMODS) psimod$(.mod) f90tools$(.mod)
|
||||
PRECMODS = f90prec$(.mod)
|
||||
F90MODS= $(BLASMODS) $(PRECMODS) $(METHDMODS) $(TOOLSMODS) f90sparse$(.mod)
|
||||
|
||||
MODS=$(LIBDIR)/tools_const$(.mod) $(LIBDIR)/typesp$(.mod) $(LIBDIR)/realloc$(.mod) \
|
||||
$(LIBDIR)/typedesc$(.mod) $(LIBDIR)/typeprec$(.mod) $(LIBDIR)/parts.f90
|
||||
|
||||
|
||||
|
||||
# Under Linux/gmake there is a rule interpreting .mod as Modula source!
|
||||
$(.mod).o:
|
||||
|
||||
.f.o:
|
||||
$(FC) $(FCOPT) $(INCDIRS) -c $<
|
||||
.c.o:
|
||||
$(CC) $(CCOPT) $(INCDIRS) $(CDEFINES) -c $<
|
||||
.f$(.mod):
|
||||
$(F90) $(FCOPT) $(INCDIRS) -c $<
|
||||
.f90$(.mod):
|
||||
$(F90) $(FCOPT) $(INCDIRS) -c $<
|
||||
.f90.o:
|
||||
$(F90) $(FCOPT) $(INCDIRS) -c $<
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue