mirror of https://gitlab.com/QEF/q-e.git
merged make.sys and make.rules together
there was no reason they should be two different files everybody must rerun configure [Gerardo] git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1690 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
ee366d19b7
commit
765729b8b3
|
@ -1,7 +1,6 @@
|
|||
# Makefile for CP/FPMD
|
||||
|
||||
include ../make.sys
|
||||
include ../make.rules
|
||||
|
||||
FOBJS = \
|
||||
atoms_type.o \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for 3rd derivative calculations - D3
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
D3OBJS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for Gamma-only code
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
PWOBJS = \
|
||||
|
|
6
Makefile
6
Makefile
|
@ -108,7 +108,7 @@ bindir :
|
|||
|
||||
# remove object files and executables
|
||||
clean :
|
||||
touch make.rules make.sys
|
||||
touch make.sys
|
||||
# make complains if they aren't there; same with make.depend below
|
||||
for dir in \
|
||||
CPV D3 Gamma Modules PH PP PW PWCOND Raman \
|
||||
|
@ -124,7 +124,7 @@ clean :
|
|||
|
||||
# remove configuration files too
|
||||
veryclean : clean
|
||||
- /bin/rm -rf make.rules make.sys \
|
||||
- /bin/rm -rf make.sys \
|
||||
config.log config.status autom4te.cache \
|
||||
espresso.tar.gz CPV/version.h \
|
||||
intel.pcl */intel.pcl
|
||||
|
@ -138,7 +138,7 @@ tar :
|
|||
tar cvf espresso.tar \
|
||||
License README* */README* Makefile */Makefile \
|
||||
configure configure.ac config.guess config.sub install-sh \
|
||||
makedeps.sh moduledep.sh make.rules.in make.sys.in \
|
||||
makedeps.sh moduledep.sh make.sys.in \
|
||||
configure.old */make.depend \
|
||||
*/*.f90 */*.c */*.f clib/*.h include/*.h* upftools/UPF \
|
||||
pwtools/*.awk pwtools/*.sh
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for Modules
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
MODULES = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for Nmr
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
NMROBJ = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for phonon (PH)
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
PHOBJS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for postprocessing (PP)
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
PPOBJS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for PW
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
PWOBJS = \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for postprocessing (PP)
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
PPOBJS = \
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# Makefile for atomic code
|
||||
#
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
LD1OBJS = \
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Makefile for clib
|
||||
|
||||
include ../make.sys
|
||||
include ../make.rules
|
||||
|
||||
OBJS = \
|
||||
c_mkdir.o \
|
||||
|
|
|
@ -5721,7 +5721,7 @@ fi
|
|||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files make.sys make.rules"
|
||||
ac_config_files="$ac_config_files make.sys"
|
||||
|
||||
|
||||
cat >confcache <<\_ACEOF
|
||||
|
@ -6274,7 +6274,6 @@ do
|
|||
case "$ac_config_target" in
|
||||
# Handling of arguments.
|
||||
"make.sys" ) CONFIG_FILES="$CONFIG_FILES make.sys" ;;
|
||||
"make.rules" ) CONFIG_FILES="$CONFIG_FILES make.rules" ;;
|
||||
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
||||
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
||||
{ (exit 1); exit 1; }; };;
|
||||
|
|
|
@ -1072,7 +1072,7 @@ AC_SUBST(arflags)
|
|||
AC_SUBST(ranlib)
|
||||
AC_SUBST(f90rule)
|
||||
|
||||
AC_CONFIG_FILES(make.sys make.rules)
|
||||
AC_CONFIG_FILES(make.sys)
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@ result=`echo $lista | grep "$1"`
|
|||
|
||||
if [ "$result" ]
|
||||
then
|
||||
PWD=`pwd`
|
||||
if [ "$1" = "pc_ifc" -o "$1" = "beo_ifc" ]
|
||||
then
|
||||
PWD=`pwd`
|
||||
echo creating catalog file for Intel compiler
|
||||
echo work.pc > $PWD/Modules/intel.pcl
|
||||
|
||||
|
@ -62,27 +62,13 @@ then
|
|||
|
||||
cat install/Make.$1 > make.sys
|
||||
|
||||
case "$1" in
|
||||
pc_ifc | beo_ifc | ibm | ibmsp | origin | nec | t3e | \
|
||||
alpha | alphaMPI | hitachi | irix | cygwin | hp | hpMPI | \
|
||||
ia64 | altix )
|
||||
# f90 compilers that support C-style preprocessing
|
||||
cp install/Rules.nocpp make.rules
|
||||
;;
|
||||
pc_pgi | pc_abs | beowulf | fujitsu | sun | sunMPI | sxcross | \
|
||||
pc_lahey )
|
||||
# f90 compilers that do not support C-style preprocessing
|
||||
cp install/Rules.cpp make.rules
|
||||
;;
|
||||
esac
|
||||
|
||||
# generate dependencies
|
||||
./makedeps.sh
|
||||
else
|
||||
echo "Valid architectures are : "
|
||||
for i in $lista
|
||||
do
|
||||
echo - $i
|
||||
echo " " $i
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Makefile for flib
|
||||
|
||||
include ../make.sys
|
||||
include ../make.rules
|
||||
|
||||
OBJS = \
|
||||
avrec.o \
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
#
|
||||
# System-dependent definitions for HP/COMPAQ alpha, Tru64
|
||||
# Edit according to your needs
|
||||
#
|
||||
|
||||
# Use fft routines from the dxml or cxml library:
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
# CPPFLAGS = -D__ALPHA -DDXML -I../include
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB= -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__ALPHA -D__FFTW -I../include \
|
||||
# -I$(FFTW_INC_DIR)
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
## Use fft routines from the dxml or cxml library:
|
||||
# CPPFLAGS = -D__ALPHA -DDXML -I../include
|
||||
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__ALPHA -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
#
|
||||
CPPFLAGS = -D__ALPHA -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
CPPFLAGS = -D__ALPHA -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
CC = cc
|
||||
#
|
||||
# options suggested by Ph. Baranek:
|
||||
# FFLAGS =-O5 -fast -big_endian -fpe0 -check underflow -real_size 64 \
|
||||
# -align dcommons -align records
|
||||
# -big_endian allows to read files generated on other (big endian) machines
|
||||
FFLAGS = -O -real_size 64 -align dcommons -align records
|
||||
# Flags for FPMD
|
||||
# FFLAGS = -double_size 64 -fpconstant -real_size 64 -fast \
|
||||
# -math_library fast -tune ev68
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -free -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -O $(CPPFLAGS)
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
CC = cc
|
||||
|
||||
FFLAGS = -O -real_size 64 -align dcommons -align records
|
||||
|
||||
## options suggested by Ph. Baranek
|
||||
## -big_endian allows to read files generated on other (big endian) machines
|
||||
# FFLAGS = -O5 -fast -big_endian -fpe0 -check underflow \
|
||||
# -real_size 64 -align dcommons -align records
|
||||
|
||||
## Flags for FPMD
|
||||
# FFLAGS = -double_size 64 -fpconstant -real_size 64 -fast \
|
||||
# -math_library fast -tune ev68
|
||||
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -free -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -O $(CPPFLAGS)
|
||||
|
||||
# Libraries:
|
||||
# If you have dxml or cxml libraries, use
|
||||
LIBS = -ldxml $(FFTW_LIB)
|
||||
LIBS = -ldxml $(FFTW_LIB)
|
||||
# BEWARE: if you have a dxml version with buggy blas/lapack, use
|
||||
# LIBS = -llapack -lblas -ldxml $(FFTW_LIB)
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
# LIBS = -llapack -lblas -ldxml $(FFTW_LIB)
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,56 +1,52 @@
|
|||
#
|
||||
# System-dependent definitions for HP/COMPAQ alpha parallel machines
|
||||
# (contributed by Guido Roma). Edit according to your needs
|
||||
#
|
||||
|
||||
# Use fft routines from the dxml or cxml library:
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
# CPPFLAGS = -D__ALPHA -D__PARA -D__MPI -DDXML -I../include
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__ALPHA -D__PARA -D__MPI -D__FFTW \
|
||||
# -I../include -I$(FFTW_INC_DIR)
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
## Use fft routines from the dxml or cxml library:
|
||||
# CPPFLAGS = -D__ALPHA -D__PARA -D__MPI -DDXML -I../include
|
||||
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__ALPHA -D__PARA -D__MPI -D__FFTW \
|
||||
# -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
#
|
||||
CPPFLAGS = -D__ALPHA -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
CPPFLAGS = -D__ALPHA -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
CC = cc
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
CC = cc
|
||||
|
||||
#
|
||||
# Fortran options:
|
||||
#
|
||||
FFLAGS = -O -fpe0 -real_size 64 -align dcommons -align records
|
||||
# Flags for FPMD
|
||||
# FFLAGS = -double_size 64 -fpconstant -real_size 64 -fast \
|
||||
# -math_library fast -tune ev68
|
||||
FFLAGS = -O -fpe0 -real_size 64 -align dcommons -align records
|
||||
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -free -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -O $(CPPFLAGS)
|
||||
## Flags for FPMD
|
||||
# FFLAGS = -double_size 64 -fpconstant -real_size 64 -fast \
|
||||
# -math_library fast -tune ev68
|
||||
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -free -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -O $(CPPFLAGS)
|
||||
|
||||
#
|
||||
# Libraries (mpi + cxml + fftw) :
|
||||
#
|
||||
LIBS = -lfmpi -lpmpi -lmpi -lelan -lcxml $(FFTW_LIB)
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
LIBS = -lfmpi -lpmpi -lmpi -lelan -lcxml $(FFTW_LIB)
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#
|
||||
# System-dependent definitions for SGI Altix 350/3000 machines running Linux
|
||||
# (parallel, MPI)
|
||||
# Contributed by by Martin Hilgeman <hilgeman@sgi.com>
|
||||
|
@ -7,7 +6,6 @@
|
|||
# SCSL >= 1.4.1, MPT >= 1.8.1, Intel 7.1 Fortran 95 and C++ compiler
|
||||
#
|
||||
# This Makefile has also been tested on:
|
||||
#
|
||||
# Red Hat Enterprise Linux AS release 3 (Taroon) with
|
||||
# SGI ProPack 3SP2 for Linux, Build 302r67-0410222239
|
||||
# SCSL >= 1.5.1.0, MPT >= 1.10, Intel 8.0.070 C/C++ compiler and
|
||||
|
@ -15,90 +13,76 @@
|
|||
#
|
||||
# Edit according to your needs
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Use the SGI SCSL scientific library (recommended)
|
||||
# We also use SHMEM as the parallel transport, which seems to be much
|
||||
# faster in the reduction routines
|
||||
#
|
||||
CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__SCSL -D__PARA \
|
||||
-D__MPI -D__SHMEM -DSHMEM -I../include -I.
|
||||
CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__SCSL -D__PARA \
|
||||
-D__MPI -D__SHMEM -DSHMEM -I../include -I.
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw64
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__FFTW -D__PARA \
|
||||
# -D__MPI -D__SHMEM -DSHMEM -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw64
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__FFTW -D__PARA \
|
||||
# -D__MPI -D__SHMEM -DSHMEM -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
#
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__FFTW \
|
||||
# -D__USE_INTERNAL_FFTW -D__PARA -D__MPI -D__SHMEM -DSHMEM \
|
||||
# -I../include -I.
|
||||
## Use the local copy of fftw
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__FFTW \
|
||||
# -D__USE_INTERNAL_FFTW -D__PARA -D__MPI -D__SHMEM -DSHMEM \
|
||||
# -I../include -I.
|
||||
|
||||
# Serial version
|
||||
#
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__SCSL \
|
||||
# -I../include -I.
|
||||
## Serial version
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ALTIX -D__LINUX64 -D__SCSL \
|
||||
# -I../include -I.
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
# Use the Intel 8.0 Fortran compiler
|
||||
#
|
||||
F90 = ifort
|
||||
F77 = ifort
|
||||
#
|
||||
F90 = ifort
|
||||
F77 = ifort
|
||||
|
||||
# Fortran compiler flags
|
||||
#
|
||||
# -W0 disable warnings
|
||||
# -O3 more aggressive optimization
|
||||
# -tpp2 Itanium2 family optimization
|
||||
# -cm suppress all comment messages
|
||||
# -w disable all warnings
|
||||
# -ftz flush denormal results to zero
|
||||
# -ip enable single-file IP optimizations (within files)
|
||||
# -fno-alias assume no aliasing
|
||||
# -safe_cray_ptr assume that CRAY pointers do not alias other variables
|
||||
# -assume byterecl assume that record lengths are in bytes
|
||||
# -r8 defines real variables to be REAL(KIND=8)
|
||||
#
|
||||
FFLAGS = -cm -w -r8 -ftz -tpp2 -assume byterecl
|
||||
OFLAGS = -O3 -fno-alias -safe_cray_ptr -ip
|
||||
F77FLAGS = $(FFLAGS) $(OFLAGS)
|
||||
F90FLAGS = $(FFLAGS) $(OFLAGS) -fpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# C compiler
|
||||
#
|
||||
# -W0 disable warnings
|
||||
# -O3 more aggressive optimization
|
||||
# -tpp2 Itanium2 family optimization
|
||||
# -cm suppress all comment messages
|
||||
# -w disable all warnings
|
||||
# -ftz flush denormal results to zero
|
||||
# -ip enable single-file IP optimizations (within files)
|
||||
# -fno-alias assume no aliasing
|
||||
# -safe_cray_ptr assume that CRAY pointers do not alias other variables
|
||||
# -assume byterecl assume that record lengths are in bytes
|
||||
# -r8 defines real variables to be REAL(KIND=8)
|
||||
FFLAGS = -cm -w -r8 -ftz -tpp2 -assume byterecl
|
||||
OFLAGS = -O3 -fno-alias -safe_cray_ptr -ip
|
||||
F77FLAGS = $(FFLAGS) $(OFLAGS)
|
||||
F90FLAGS = $(FFLAGS) $(OFLAGS) -fpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
|
||||
# Use the Intel 8.0 C/C++ compiler
|
||||
#
|
||||
CC = icc
|
||||
#
|
||||
# Flags for the C compiler
|
||||
#
|
||||
CFLAGS = -ip -tpp2 $(CPPFLAGS) -O3
|
||||
#
|
||||
CC = icc
|
||||
CFLAGS = -ip -tpp2 $(CPPFLAGS) -O3
|
||||
|
||||
# Libraries:
|
||||
#
|
||||
# Use the SGI SCSL scientific library (recommended)
|
||||
#
|
||||
LIBS = -lmpi -lsma -lscs
|
||||
#
|
||||
# Use the Intel MKL libraries
|
||||
#
|
||||
# LIBS = -lmpi -lsma $(FFTW_LIB) -L/opt/intel/mkl60/lib/64 -lmkl_lapack64 \
|
||||
# -lmkl_itp -lguide -lpthread
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
LD=$(F90)
|
||||
LIBS = -lmpi -lsma -lscs
|
||||
|
||||
LDFLAGS = $(FFLAGS) ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
## Use the Intel MKL libraries
|
||||
# LIBS = -lmpi -lsma $(FFTW_LIB) -L/opt/intel/mkl60/lib/64 \
|
||||
# -lmkl_lapack64 -lmkl_itp -lguide -lpthread
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
LD = $(F90)
|
||||
LDFLAGS = $(FFLAGS) ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,36 +1,41 @@
|
|||
#
|
||||
# System-dependent Make definitions for Linux PC cluster, Intel compiler
|
||||
# Based on info from N. Marzari and B.R. Sahu
|
||||
# Edit according to your needs
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Add -DADD_BLAS_ONE_UNDERSCORE if your blas/lapack library names contain
|
||||
# two underscores at the end
|
||||
|
||||
# Add -D__LAM if using the LAM version of MPI
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__INTEL -D__PARA -D__MPI -D__FFTW \
|
||||
# -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__INTEL -D__PARA -D__MPI -D__FFTW \
|
||||
# -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__INTEL -D__PARA -D__MPI -D__FFTW \
|
||||
-D__USE_INTERNAL_FFTW -I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__INTEL -D__PARA -D__MPI -D__FFTW \
|
||||
-D__USE_INTERNAL_FFTW -I../include -I.
|
||||
F90 = mpif90
|
||||
F77 = mpif77
|
||||
CC = mpicc
|
||||
|
||||
#
|
||||
# Fortran compiler
|
||||
#
|
||||
F90 = mpif90
|
||||
F77 = mpif77
|
||||
CC = mpicc
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
# -Vaxlib enables the use of portability libraries (getarg
|
||||
# and maybe other library calls)
|
||||
# -W0 disable warnings
|
||||
|
@ -38,54 +43,44 @@ CC = mpicc
|
|||
# -tpp5 Pentium optimization
|
||||
# -tpp6 Pentium Pro, 2, 3 optimization
|
||||
# -tpp7 Pentium 4 optimization
|
||||
#
|
||||
FFLAGS = -Vaxlib -O2 -tpp6
|
||||
#
|
||||
# Fortran90 compiler flags
|
||||
#
|
||||
# use this for version < 7
|
||||
# F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -cl,./intel.pcl
|
||||
|
||||
FFLAGS = -Vaxlib -O2 -tpp6
|
||||
|
||||
## use this for version < 7
|
||||
## F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -cl,./intel.pcl
|
||||
# use this for version = 7
|
||||
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -nomodule -I../Modules -I../PW -I../PH
|
||||
#
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -nomodule \
|
||||
-I../Modules -I../PW -I../PH
|
||||
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
||||
|
||||
# The following is for Intel MKL libraries v. 5.1 on Pentium-3
|
||||
# Use libmkl_p3.a for Pentium-3 and Athlon CPUs
|
||||
# Use libmkl_p4.a for Pentium-4 and Opteron CPUs
|
||||
LIBS= $(FFTW_LIB) /opt/intel/mkl/lib/32/libmkl_lapack.a \
|
||||
/opt/intel/mkl/lib/32/libmkl_p3.a -lpthread
|
||||
# For MKL v. 5.2 add "-lguide"
|
||||
# For MKL v. 6 use
|
||||
# LIBS= $(FFTW_LIB) -L/opt/intel/mkl/lib/32/ \
|
||||
# -lmkl_lapack -lmkl_ia32 -lguide -lpthread
|
||||
MYLIB=lapack_mkl
|
||||
# The following is for Atlas optimized blas/lapack libraries
|
||||
# You may not actually need -lcblas . See the manual for details
|
||||
# on how to fix I/O incompatibility problems with ifc
|
||||
#
|
||||
# LIBS = $(FFTW_LIB) -L$(HOME)/Linux_ATHLON256/ -llapack -lf77blas -lcblas -latlas
|
||||
LIBS = $(FFTW_LIB) /opt/intel/mkl/lib/32/libmkl_lapack.a \
|
||||
/opt/intel/mkl/lib/32/libmkl_p3.a -lpthread
|
||||
|
||||
#
|
||||
# The following is to use blas and lapack from the source code
|
||||
# MYLIB=blas_and_lapack
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a -Vaxlib $(LIBS)
|
||||
## For MKL v. 5.2 add "-lguide"
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
## For MKL v. 6 use
|
||||
# LIBS = $(FFTW_LIB) -L/opt/intel/mkl/lib/32/ \
|
||||
# -lmkl_lapack -lmkl_ia32 -lguide -lpthread
|
||||
|
||||
MYLIB = lapack_mkl
|
||||
|
||||
## The following is for Atlas optimized blas/lapack libraries
|
||||
## You may not actually need -lcblas . See the manual for details
|
||||
## on how to fix I/O incompatibility problems with ifc
|
||||
# LIBS = $(FFTW_LIB) -L$(HOME)/Linux_ATHLON256/ -llapack \
|
||||
# -lf77blas -lcblas -latlas
|
||||
|
||||
## The following is to use blas and lapack from the source code
|
||||
# MYLIB = blas_and_lapack
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a -Vaxlib $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,60 +1,56 @@
|
|||
#
|
||||
# System-dependent Make definitions for Linux PC cluster, pgi compiler
|
||||
# Edit according to your needs
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Precompiler:
|
||||
# we assume that the GNU precompiler is used. The option -traditional
|
||||
# prevent string concatenation '//' from being interpreted as a comment
|
||||
#
|
||||
CPP = /lib/cpp -P -traditional
|
||||
#
|
||||
CPP = /lib/cpp -P -traditional
|
||||
|
||||
# Add -DADD_BLAS_ONE_UNDERSCORE if your blas/lapack library names contain
|
||||
# two underscores at the end
|
||||
|
||||
# Add -D__LAM if using the LAM version of MPI
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__PGI -D__PARA -D__MPI -D__FFTW -I../include \
|
||||
# -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__PGI -D__PARA -D__MPI -D__FFTW -I../include \
|
||||
# -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__PGI -D__PARA -D__MPI -D__FFTW \
|
||||
-D__USE_INTERNAL_FFTW -I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__PGI -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
F90 = mpif90
|
||||
F77 = mpif77
|
||||
CC = mpicc
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
F90 =mpif90
|
||||
F77 =mpif77
|
||||
CC =mpicc
|
||||
#
|
||||
# Please note: -r8 is necessary for numerical stability ..
|
||||
#
|
||||
F90FLAGS = -fast -r8 -I../Modules -I../PW -I../PH
|
||||
F77FLAGS = -fast -r8
|
||||
CFLAGS = -fast $(CPPFLAGS)
|
||||
F90FLAGS = -fast -r8 -I../Modules -I../PW -I../PH
|
||||
F77FLAGS = -fast -r8
|
||||
CFLAGS = -fast $(CPPFLAGS)
|
||||
|
||||
#
|
||||
# Loader:
|
||||
# this below uses precompiled pgi libraries ( not very efficient but stable )
|
||||
#
|
||||
LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -lblas $(FFTW_LIB)
|
||||
#
|
||||
# for cineca machines:
|
||||
#
|
||||
#LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -L/cineca/lib/ATLAS -lf77blas -latlas $(FFTW_LIB)
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) -I../Modules -I../PW -I../PH
|
||||
# use precompiled pgi libraries ( not very efficient but stable )
|
||||
LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -lblas $(FFTW_LIB)
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) \
|
||||
-I../Modules -I../PW -I../PH
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,75 +1,66 @@
|
|||
#
|
||||
# System-dependent Make definitions for cygwin in Windows platform
|
||||
# and Intel compiler (v.7) - contributed by Lu Fu-Fa, CCIT, Taiwan
|
||||
|
||||
# PC Machine: Intel P-3
|
||||
# Operation System: Microsoft Windows 2000 sp4
|
||||
# Operating System: Microsoft Windows 2000 sp4
|
||||
# Unixlike Environment in Windows: cygwin
|
||||
# Compiler: Intel(R) Fortran Compiler, Ver 7.1 Build 20030801z
|
||||
# Compiler: Intel(R) C++ Compiler, Ver 7.1 Build 20030801z
|
||||
# MKL Library: Intel® Math Kernel Library, Ver6.1
|
||||
# MKL Library: Intel(R) Math Kernel Library, Ver6.1
|
||||
# FFT Library: FFTW package(http://www.fftw.org/),
|
||||
# FFTW 2.1.5.(http://www.fftw.org/fftw-2.1.5.tar.gz)
|
||||
#
|
||||
CPP = /bin/cpp
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
CPP = /bin/cpp
|
||||
|
||||
# if you want to use a precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
# you need to specify how to load the fftw library in FFTW_LIB
|
||||
# and the path to the fftw.h include file in FFTW_INC_DIR
|
||||
# FFTW_LIB=../libfftw.lib
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
# FFTW_LIB = ../libfftw.lib
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# this is what you need to use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
F90 = /cygdrive/c/Progra~1/Intel/Compiler70/IA32/Bin/ifl.exe
|
||||
F77 = $(F90)
|
||||
|
||||
#
|
||||
# Fortran compiler
|
||||
#
|
||||
F90=/cygdrive/c/Progra~1/Intel/Compiler70/IA32/Bin/ifl.exe
|
||||
F77=$(F90)
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
# /4Yportlib enables the use of portability libraries (getarg
|
||||
# and maybe other library calls)
|
||||
# /w disable warnings
|
||||
# /O3 more aggressive optimization
|
||||
# /G6 Pentium Pro, 2, 3 optimization
|
||||
# /G7 Pentium 4 optimization
|
||||
#
|
||||
FFLAGS =/4Yportlib /G6 /w /O3 /I../include/
|
||||
# use this for version = 7
|
||||
F90FLAGS= $(FFLAGS) /fpp $(CPPFLAGS) -nomodule -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
FFLAGS = /4Yportlib /G6 /w /O3 /I../include/
|
||||
F90FLAGS = $(FFLAGS) /fpp $(CPPFLAGS) -nomodule \
|
||||
-I../Modules -I../PW -I../PH
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = /O0
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CC=/cygdrive/c/Progra~1/Intel/Compiler70/IA32/Bin/ifc.exe
|
||||
CFLAGS = $(CPPFLAGS) /O3
|
||||
#
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
|
||||
CC = /cygdrive/c/Progra~1/Intel/Compiler70/IA32/Bin/ifc.exe
|
||||
CFLAGS = $(CPPFLAGS) /O3
|
||||
|
||||
# The following is for Intel MKL libraries v. 6.1 on Pentium-3 or above
|
||||
#
|
||||
# Here we use fftw-2.1.5, compiled with Intel compiler(v.7)
|
||||
#
|
||||
LIBS= $(FFTW_LIB) ../mkl_c.lib
|
||||
#
|
||||
# Linker:
|
||||
#
|
||||
LD=/cygdrive/c/Progra~1/Intel/Compiler70/IA32/Bin/icl.exe
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a /4Yportlib $(LIBS)
|
||||
#
|
||||
# Library Tools:
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
LIBS = $(FFTW_LIB) ../mkl_c.lib
|
||||
|
||||
LD = /cygdrive/c/Progra~1/Intel/Compiler70/IA32/Bin/icl.exe
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
/4Yportlib $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,36 +1,40 @@
|
|||
#
|
||||
# System-dependent definitions for Fujitsu VPP (contributed by Guido Roma)
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Precompiler
|
||||
#
|
||||
CPP = /usr/lib/cpp
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
CPP = /usr/lib/cpp
|
||||
|
||||
# -DLANGUAGE_FORTRAN avoids that // is considered as a C++ comment
|
||||
#
|
||||
CPPFLAGS = -P -DFUJ64 -DLANGUAGE_FORTRAN -I../include
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = frt
|
||||
F77 = frt
|
||||
#F90FLAGS = -O4 -X9 -AU -AR -Am -Kalign9 -Kfreealloc -KA64
|
||||
#F90FLAGS = -O4 -X9 -AU -AR -Am -Kalign9
|
||||
F90FLAGS = -O4 -KA64 -Kfast -Knof90move -Kalign7 -Knofreealloc -Ad -AR -Am -Wv,-noalias -M../Modules -M../PW -M../PH
|
||||
F77FLAGS = -g -Ad -AR -Am
|
||||
#F90FLAGS = -g -Ad -AR -Am -M../Modules -M../PW -M../PH
|
||||
#
|
||||
#
|
||||
# Libraries:
|
||||
LIBS= -L/usr/lang/lib64 -llapackvp -lblasvp -lssl2vp -L/usr/local/lib/lib64/ -lfftvp_news -lmp
|
||||
F90 = frt
|
||||
F77 = frt
|
||||
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
# F90FLAGS = -O4 -X9 -AU -AR -Am -Kalign9 -Kfreealloc -KA64
|
||||
# F90FLAGS = -O4 -X9 -AU -AR -Am -Kalign9
|
||||
F90FLAGS = -O4 -KA64 -Kfast -Knof90move -Kalign7 -Knofreealloc -Ad -AR -Am \
|
||||
-Wv,-noalias -M../Modules -M../PW -M../PH
|
||||
# F90FLAGS = -g -Ad -AR -Am -M../Modules -M../PW -M../PH
|
||||
|
||||
F77FLAGS = -g -Ad -AR -Am
|
||||
|
||||
LIBS = -L/usr/lang/lib64 -llapackvp -lblasvp -lssl2vp \
|
||||
-L/usr/local/lib/lib64/ -lfftvp_news -lmp
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,42 +1,44 @@
|
|||
# System-dependent definitions for Hitachi SR8000
|
||||
# contributed by Noejung Park
|
||||
#
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -DHITACHI -D__PARA -D__MPI -D__FFTW
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -DHITACHI -D__PARA -D__MPI -D__FFTW
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -DHITACHI -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW
|
||||
|
||||
CPPFLAGS = -DHITACHI -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f77
|
||||
CC = cc
|
||||
FFLAGS = -O4 -32 -noparallel -precexp=basic -conti199 -nosaveallocate \
|
||||
-I../include -I/usr/mpi/include
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -D__FFTW -I$(FFTW_INC_DIR)
|
||||
#
|
||||
#
|
||||
# Libraries:
|
||||
LAPACKdir = /usr/lib/LAPACK/lib32
|
||||
MPIdir = /usr/mpi/lib/lib32
|
||||
LIBS= -L$(LAPACKdir) -llapack_sc -lblas_sc \
|
||||
-L$(MPIdir) -lfmpi -lmpi $(FFTW_LIB) -lm
|
||||
F90 = f90
|
||||
F77 = f77
|
||||
CC = cc
|
||||
FFLAGS = -O4 -32 -noparallel -precexp=basic -conti199 -nosaveallocate \
|
||||
-I../include -I/usr/mpi/include
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -D__FFTW -I$(FFTW_INC_DIR)
|
||||
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
LAPACKdir = /usr/lib/LAPACK/lib32
|
||||
MPIdir = /usr/mpi/lib/lib32
|
||||
LIBS = -L$(LAPACKdir) -llapack_sc -lblas_sc \
|
||||
-L$(MPIdir) -lfmpi -lmpi $(FFTW_LIB) -lm
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
|
|
118
install/Make.hp
118
install/Make.hp
|
@ -1,4 +1,3 @@
|
|||
#
|
||||
# System-dependent definitions for HP-PA RISC machines, HP-UX
|
||||
# Contributed by Sergey Lisenkov, with help from Eyvaz Isaev
|
||||
# and Joey Dieckhans. Software configuration:
|
||||
|
@ -6,66 +5,73 @@
|
|||
#
|
||||
# Note that there is one version of MPI that requires the argument
|
||||
# "-stdio=i" in command line for reading from standard output
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# 32-bit version
|
||||
FFTW_LIB=-L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
|
||||
FFTW_INC_DIR=/nethome/proffess/lib/fftw-2.1.5/32/include
|
||||
# 64-bit version
|
||||
# FFTW_LIB=-L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
|
||||
# FFTW_INC_DIR=/nethome/proffess/lib/fftw-2.1.5/64/include
|
||||
CPPFLAGS = -I../include -D__HP -D__FFTW -I$(FFTW_INC_DIR)
|
||||
#
|
||||
#-------------------------------------------------#
|
||||
# Add -D__HP64 to CPPFLAGS for 64-bit compilation #
|
||||
#-------------------------------------------------#
|
||||
#
|
||||
# Use the local copy of fftw
|
||||
#CPPFLAGS = -I../include -D__HP -D__FFTW -D__USE_INTERNAL_FFTW
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = $(F90)
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
# 32-bit
|
||||
FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +DA2.0 +DS2.0
|
||||
# 64-bit
|
||||
#FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +DA2.0W +DS2.0W +noppu
|
||||
# 32-bit version
|
||||
FFTW_LIB = -L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
|
||||
FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/32/include
|
||||
|
||||
## 64-bit version
|
||||
# FFTW_LIB = -L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
|
||||
# FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/64/include
|
||||
|
||||
# Add -D__HP64 to CPPFLAGS for 64-bit compilation #
|
||||
CPPFLAGS = -I../include -D__HP -D__FFTW -I$(FFTW_INC_DIR)
|
||||
|
||||
## Use the local copy of fftw
|
||||
# CPPFLAGS = -I../include -D__HP -D__FFTW -D__USE_INTERNAL_FFTW
|
||||
|
||||
F90 = f90
|
||||
F77 = $(F90)
|
||||
CC = cc
|
||||
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CC = cc
|
||||
# 32-bit
|
||||
CFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
||||
# 64-bit
|
||||
#CFLAGS = $(CPPFLAGS) +O2 +DA2.0W +DS2.0W +DD64 +Odataprefetch +Onolimit
|
||||
#
|
||||
FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +DA2.0 +DS2.0
|
||||
## 64-bit
|
||||
# FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 \
|
||||
# +DA2.0W +DS2.0W +noppu
|
||||
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
|
||||
# 32-bit
|
||||
CFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
||||
## 64-bit
|
||||
# CFLAGS = $(CPPFLAGS) +O2 +DA2.0W +DS2.0W +DD64 \
|
||||
# +Odataprefetch +Onolimit
|
||||
|
||||
# Libraries:
|
||||
# 32-bit
|
||||
LIBS = -L/opt/mpi/lib/pa2.0 -lmpi -ldmpi -lmpio -lmtmpi -L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
# 64-bit
|
||||
#LIBS = -L/opt/mpi/lib/pa20_64 -lmpi -ldmpi -lmpio -lmtmpi -L/opt/mlib/lib/pa20_64 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
# Loader:
|
||||
LD=$(F90)
|
||||
#32-bit
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a +U77 +DA2.0 +DS2.0 +O2 $(LIBS)
|
||||
# 64-bit
|
||||
#LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a +U77 +DA2.0W +DS2.0W +O2 $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
LIBS = -L/opt/mpi/lib/pa2.0 -lmpi -ldmpi -lmpio -lmtmpi \
|
||||
-L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
## 64-bit
|
||||
# LIBS = -L/opt/mpi/lib/pa20_64 -lmpi -ldmpi -lmpio -lmtmpi \
|
||||
-L/opt/mlib/lib/pa20_64 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
|
||||
LD = $(F90)
|
||||
|
||||
# 32-bit
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
+U77 +DA2.0 +DS2.0 +O2 $(LIBS)
|
||||
## 64-bit
|
||||
# LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
+U77 +DA2.0W +DS2.0W +O2 $(LIBS)
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#
|
||||
# System-dependent definitions for HP-PA RISC machines, HP-UX
|
||||
# Contributed by Sergey Lisenkov, with help from Eyvaz Isaev
|
||||
# and Joey Dieckhans. Software configuration:
|
||||
|
@ -6,63 +5,73 @@
|
|||
#
|
||||
# Note that there is one version of MPI that requires the argument
|
||||
# "-stdio=i" in command line for reading from standard output
|
||||
#
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# 32-bit version
|
||||
FFTW_LIB=-L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
|
||||
FFTW_INC_DIR=/nethome/proffess/lib/fftw-2.1.5/32/include
|
||||
# 64-bit version
|
||||
# FFTW_LIB=-L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
|
||||
# FFTW_INC_DIR=/nethome/proffess/lib/fftw-2.1.5/64/include
|
||||
CPPFLAGS = -I../include -D__HP -D__FFTW -D__PARA -D__MPI -I$(FFTW_INC_DIR)
|
||||
#
|
||||
#-------------------------------------------------#
|
||||
# Add -D__HP64 to CPPFLAGS for 64-bit compilation #
|
||||
#-------------------------------------------------#
|
||||
#
|
||||
# Use the local copy of fftw
|
||||
#CPPFLAGS = -I../include -D__HP -D__FFTW -D__PARA -D__MPI -D__USE_INTERNAL_FFTW
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = $(F90)
|
||||
CC = mpicc
|
||||
#
|
||||
# Fortran compiler flags
|
||||
# 32-bit
|
||||
FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +DA2.0 +DS2.0
|
||||
# 64-bit
|
||||
#FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +DA2.0W +DS2.0W +noppu
|
||||
FFTW_LIB = -L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
|
||||
FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/32/include
|
||||
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH -I/opt/mpi/include
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
# 64-bit version
|
||||
# FFTW_LIB = -L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
|
||||
# FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/64/include
|
||||
|
||||
# Add -D__HP64 to CPPFLAGS for 64-bit compilation
|
||||
CPPFLAGS = -I../include -D__HP -D__FFTW -D__PARA -D__MPI -I$(FFTW_INC_DIR)
|
||||
|
||||
## Use the local copy of fftw
|
||||
# CPPFLAGS = -I../include -D__HP -D__FFTW -D__PARA -D__MPI \
|
||||
# -D__USE_INTERNAL_FFTW
|
||||
|
||||
F90 = f90
|
||||
F77 = $(F90)
|
||||
CC = mpicc
|
||||
|
||||
# 32-bit
|
||||
FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 \
|
||||
+DA2.0 +DS2.0
|
||||
## 64-bit
|
||||
# FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 \
|
||||
# +DA2.0W +DS2.0W +noppu
|
||||
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH \
|
||||
-I/opt/mpi/include
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# C compiler flags
|
||||
|
||||
# 32-bit
|
||||
CFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
||||
# 64-bit
|
||||
#CFLAGS = $(CPPFLAGS) +O2 +DA2.0W +DS2.0W +DD64 +Odataprefetch +Onolimit
|
||||
#
|
||||
# Libraries:
|
||||
CFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
||||
## 64-bit
|
||||
# CFLAGS = $(CPPFLAGS) +O2 +DA2.0W +DS2.0W +DD64 \
|
||||
# +Odataprefetch +Onolimit
|
||||
|
||||
## 32-bit
|
||||
# LIBS = -L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
## 64-bit
|
||||
# LIBS = -L/opt/mlib/lib/pa20_64 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
|
||||
LD = $(F90)
|
||||
|
||||
# 32-bit
|
||||
#LIBS = -L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
# 64-bit
|
||||
#LIBS = -L/opt/mlib/lib/pa20_64 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
# Loader:
|
||||
LD=$(F90)
|
||||
# 32-bit
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a +U77 +DA2.0 +DS2.0 +O2 $(LIBS) -lpthread
|
||||
# 64-bit
|
||||
#LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a +U77 +DA2.0W +DS2.0W +O2 $(LIBS) -lpthread
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
+U77 +DA2.0 +DS2.0 +O2 $(LIBS) -lpthread
|
||||
## 64-bit
|
||||
# LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
+U77 +DA2.0W +DS2.0W +O2 $(LIBS) -lpthread
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,66 +1,69 @@
|
|||
#
|
||||
# System-dependent definitions for HP Itanium machines, HP-UX
|
||||
# (a64-hp-hpux11.23) Contributed by Xianghjun
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# 32-bit version
|
||||
# FFTW_LIB=-L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
|
||||
# FFTW_INC_DIR=/nethome/proffess/lib/fftw-2.1.5/32/include
|
||||
# 64-bit version
|
||||
# FFTW_LIB=-L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
|
||||
# FFTW_INC_DIR=/nethome/proffess/lib/fftw-2.1.5/64/include
|
||||
# CPPFLAGS = -I../include -D__HP -D__FFTW -I$(FFTW_INC_DIR)
|
||||
#
|
||||
#-------------------------------------------------#
|
||||
# Add -D__HP64 to CPPFLAGS for 64-bit compilation #
|
||||
#-------------------------------------------------#
|
||||
#
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -I../include -D__HP -D__FFTW -D__USE_INTERNAL_FFTW -D__HP64
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = $(F90)
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
# 32-bit
|
||||
#FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +DA2.0 +DS2.0
|
||||
# 64-bit
|
||||
FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +noppu +DD64
|
||||
# 32-bit version
|
||||
# FFTW_LIB = -L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
|
||||
# FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/32/include
|
||||
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
# 64-bit version
|
||||
# FFTW_LIB = -L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
|
||||
# FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/64/include
|
||||
|
||||
# Add -D__HP64 to CPPFLAGS for 64-bit compilation
|
||||
# CPPFLAGS = -I../include -D__HP -D__FFTW -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -I../include -D__HP -D__FFTW -D__USE_INTERNAL_FFTW -D__HP64
|
||||
|
||||
F90 = f90
|
||||
F77 = $(F90)
|
||||
CC = cc
|
||||
|
||||
## 32-bit
|
||||
# FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 \
|
||||
# +U77 +DA2.0 +DS2.0
|
||||
# 64-bit
|
||||
FFLAGS = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 +noppu +DD64
|
||||
|
||||
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CC = cc
|
||||
# 32-bit
|
||||
#CFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
||||
|
||||
## 32-bit
|
||||
# CFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
||||
# 64-bit
|
||||
CFLAGS = $(CPPFLAGS) +O2 +DD64 +Odataprefetch +Onolimit
|
||||
#
|
||||
# Libraries:
|
||||
# 32-bit
|
||||
#LIBS = -L/opt/mpi/lib/hpux32 -lmpi -ldmpi -lmpio -lmtmpi -L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
CFLAGS = $(CPPFLAGS) +O2 +DD64 +Odataprefetch +Onolimit
|
||||
|
||||
## 32-bit
|
||||
# LIBS = -L/opt/mpi/lib/hpux32 -lmpi -ldmpi -lmpio -lmtmpi \
|
||||
# -L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
|
||||
# 64-bit
|
||||
LIBS = -L/opt/mlib/lib/hpux64 -lveclib -llapack $(FFTW_LIB)
|
||||
# Loader:
|
||||
LD=$(F90)
|
||||
#32-bit
|
||||
#LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a +U77 +DA2.0 +DS2.0 +O2 $(LIBS)
|
||||
LIBS = -L/opt/mlib/lib/hpux64 -lveclib -llapack $(FFTW_LIB)
|
||||
|
||||
LD = $(F90)
|
||||
|
||||
## 32-bit
|
||||
# LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
# +U77 +DA2.0 +DS2.0 +O2 $(LIBS)
|
||||
# 64-bit
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a +U77 +O2 +DD64 $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
|
||||
+U77 +O2 +DD64 $(LIBS)
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,68 +1,61 @@
|
|||
#
|
||||
# System-dependent definitions for IBM AIX (RISC6000) workstations
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Macros for conditional compilation
|
||||
# If the mass library is available, use
|
||||
# CPPFLAGS = -D__AIX,-D__MASS,-DHAS_ZHEGVX
|
||||
#
|
||||
CPPFLAGS = -D__AIX,-DHAS_ZHEGVX
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
## If the mass library is available, use
|
||||
# CPPFLAGS = -D__AIX,-D__MASS,-DHAS_ZHEGVX
|
||||
|
||||
CPPFLAGS = -D__AIX,-DHAS_ZHEGVX
|
||||
|
||||
# Fortran compiler:
|
||||
#
|
||||
# Use -g -C without -s in LDFLAGS for debugging
|
||||
# Use -O for optimization
|
||||
# Use -O3 -qstrict for higher optimization (may not go faster)
|
||||
# Use -qarch=auto -qtune=auto for processor-specific optimization
|
||||
# Older compilers may not recognize "auto". Specify for instance
|
||||
# -qarch=pwr2 -qtune=pwr2 (this would be for power2 cpus)
|
||||
#
|
||||
F90 = xlf
|
||||
F77 = $(F90)
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
FFLAGS = -qalias=noaryovrlp -I../include \
|
||||
-O3 -qstrict -qarch=auto -qtune=auto -qsuffix=cpp=f90 \
|
||||
-qdpc -qalias=nointptr -Q
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90 = xlf
|
||||
F77 = $(F90)
|
||||
|
||||
FFLAGS = -qalias=noaryovrlp -I../include \
|
||||
-O3 -qstrict -qarch=auto -qtune=auto -qsuffix=cpp=f90 \
|
||||
-qdpc -qalias=nointptr -Q
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# Fortran90 compiler flags
|
||||
#
|
||||
F90FLAGS = $(FFLAGS) -qfree=f90 -I../include -WF,$(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CFLAGS = -I../include -Wp,$(CPPFLAGS) -O2
|
||||
#
|
||||
# Libraries:
|
||||
#
|
||||
F90FLAGS = $(FFLAGS) -qfree=f90 -I../include -WF,$(CPPFLAGS) \
|
||||
-I../Modules -I../PW -I../PH
|
||||
CFLAGS = -I../include -Wp,$(CPPFLAGS) -O2
|
||||
|
||||
# We assume that essl is installed and that lapack is in /usr/local/lib
|
||||
# NOTA BENE: essl must be loaded BEFORE lapack in order to load the correct
|
||||
# version of diagonalization routines
|
||||
# use esslp2 if available on power2 machines
|
||||
#
|
||||
LIBS = -lessl -L/usr/local/lib -llapack
|
||||
|
||||
# For Cineca machines:
|
||||
# LIBS = -lessl -L/cineca/lib/ -llapack -L/cineca/lib/mass -lmassvp4 -lmass
|
||||
#
|
||||
LIBS = -lessl -L/usr/local/lib -llapack
|
||||
#
|
||||
# Linker flags
|
||||
#
|
||||
# Loader: use -bmaxdata:512000000 for jobs>256Mb (in this example up to 512Mb)
|
||||
# use -bnso -bI:/usr/lib/syscalls.exp for static linking
|
||||
# use -s for stripped executable (smaller file but no debugging)
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) -s
|
||||
#LDFLAGS = ../flib/ptools.a ../flib/flib.a $(LIBS) -s -bmaxdata:512000000
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
# LIBS = -lessl -L/cineca/lib/ -llapack \
|
||||
# -L/cineca/lib/mass -lmassvp4 -lmass
|
||||
|
||||
# use -bmaxdata:512000000 for jobs>256Mb (in this example up to 512Mb)
|
||||
# use -bnso -bI:/usr/lib/syscalls.exp for static linking
|
||||
# use -s for stripped executable (smaller file but no debugging)
|
||||
LD = $(F90)
|
||||
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) -s
|
||||
# LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) \
|
||||
# -s -bmaxdata:512000000
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,68 +1,60 @@
|
|||
#
|
||||
# System-dependent definitions for IBM AIX (RISC6000) parallel machines
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Macros for conditional compilation
|
||||
# If the mass library is available, use
|
||||
# CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-D__MASS,-DHAS_ZHEGVX
|
||||
#
|
||||
CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-DHAS_ZHEGVX
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
## If the mass library is available, use
|
||||
# CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-D__MASS,-DHAS_ZHEGVX
|
||||
|
||||
CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-DHAS_ZHEGVX
|
||||
|
||||
# Fortran compiler:
|
||||
#
|
||||
# Use -g -C without -s in LDFLAGS for debugging
|
||||
# Use -O for optimization
|
||||
# Use -O3 -qstrict for higher optimization (may not go faster)
|
||||
# Use -qarch=auto -qtune=auto for processor-specific optimization
|
||||
# Older compilers may not recognize "auto". Specify for instance
|
||||
# -qarch=pwr2 -qtune=pwr2 (this would be for power2 cpus)
|
||||
#
|
||||
F90 = mpxlf
|
||||
F77 = $(F90)
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
FFLAGS = -qalias=noaryovrlp -I../include \
|
||||
-O3 -qstrict -qarch=auto -qtune=auto -qsuffix=cpp=f90 \
|
||||
-qdpc -Q -qalias=nointptr
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90 = mpxlf
|
||||
F77 = $(F90)
|
||||
FFLAGS = -qalias=noaryovrlp -I../include \
|
||||
-O3 -qstrict -qarch=auto -qtune=auto -qsuffix=cpp=f90 \
|
||||
-qdpc -Q -qalias=nointptr
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# Fortran90 compiler flags
|
||||
#
|
||||
F90FLAGS = $(FFLAGS) -qfree=f90 -I../include -WF,$(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CFLAGS = -I../include -Wp,$(CPPFLAGS) -O2
|
||||
#
|
||||
# Libraries:
|
||||
#
|
||||
F90FLAGS = $(FFLAGS) -qfree=f90 -I../include -WF,$(CPPFLAGS) \
|
||||
-I../Modules -I../PW -I../PH
|
||||
CFLAGS = -I../include -Wp,$(CPPFLAGS) -O2
|
||||
|
||||
# We assume that essl is installed and that lapack is in /usr/local/lib
|
||||
# NOTA BENE: essl must be loaded BEFORE lapack in order to load the correct
|
||||
# version of diagonalization routines
|
||||
# use esslp2 if available on power2 machines
|
||||
#
|
||||
LIBS = -lessl -L/usr/local/lib -llapack
|
||||
|
||||
# For Cineca machines:
|
||||
# LIBS = -lessl -L/cineca/lib/ -llapack -L/cineca/lib/mass -lmassvp4 -lmass
|
||||
#
|
||||
LIBS = -lessl -L/usr/local/lib -llapack
|
||||
#
|
||||
# Linker flags
|
||||
#
|
||||
# Loader: use -bmaxdata:512000000 for jobs>256Mb (in this example up to 512Mb)
|
||||
# use -bnso -bI:/usr/lib/syscalls.exp for static linking
|
||||
# use -s for stripped executable (smaller file but no debugging)
|
||||
#
|
||||
LD=$(F90)
|
||||
#LDFLAGS = ../flib/ptools.a ../flib/flib.a $(LIBS) -s
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) -s -bmaxdata:512000000
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
# LIBS = -lessl -L/cineca/lib/ -llapack -L/cineca/lib/mass \
|
||||
# -lmassvp4 -lmass
|
||||
|
||||
# use -bmaxdata:512000000 for jobs>256Mb (in this example up to 512Mb)
|
||||
# use -bnso -bI:/usr/lib/syscalls.exp for static linking
|
||||
# use -s for stripped executable (smaller file but no debugging)
|
||||
LD = $(F90)
|
||||
|
||||
# LDFLAGS = ../flib/ptools.a ../flib/flib.a $(LIBS) -s
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) \
|
||||
-s -bmaxdata:512000000
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,60 +1,48 @@
|
|||
#
|
||||
# System-dependent definitions for SGI workstations
|
||||
# Edit according to your needs
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Add -D__SGI64 to compile with 64 bits (if available)
|
||||
|
||||
# Use fft routines from complib library:
|
||||
## Use fft routines from complib library:
|
||||
# CPPFLAGS = -D__SGI -I../include
|
||||
|
||||
# CPPFLAGS = -D__SGI -I../include
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__FFTW -D__SGI I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__FFTW -D__SGI I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
#
|
||||
CPPFLAGS = -D__FFTW -D__SGI -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
CPPFLAGS = -D__FFTW -D__SGI -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
CC = cc
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
#
|
||||
# use -O3 only if you are sure that it actually works
|
||||
# use -64 if compiling with 64 bits
|
||||
#
|
||||
FFLAGS = -mips4 -O2 -r10000 -r8
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# C compiler
|
||||
#
|
||||
CC=cc
|
||||
#
|
||||
# Flags for the C compiler
|
||||
# use -64 if compiling with 64 bits
|
||||
#
|
||||
CFLAGS= -mips4 -O2 -r10000 $(CPPFLAGS)
|
||||
#
|
||||
# Libraries:
|
||||
#
|
||||
LIBS = -lmpi -lcomplib.sgimath $(FFTW_LIB)
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
LD=$(F90)
|
||||
FFLAGS = -mips4 -O2 -r10000 -r8
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -mips4 -O2 -r10000 $(CPPFLAGS)
|
||||
|
||||
LDFLAGS = $(FFLAGS) ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
LIBS = -lmpi -lcomplib.sgimath $(FFTW_LIB)
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
LD = $(F90)
|
||||
LDFLAGS = $(FFLAGS) ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,79 +1,68 @@
|
|||
#
|
||||
# System-dependent definitions for SGI Origin 2000/3000 systems (parallel, MPI)
|
||||
# Modified by Martin Hilgeman <hilgeman@sgi.com>
|
||||
# IRIX >=6.5, SGI MIPSpro f90 and C compiler >=7.3.1.3m, SCSL >= 1.4.1.0
|
||||
# or CHALLENGEComplib 3.1.1
|
||||
#
|
||||
# Edit according to your needs
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# You can either choose to use the old Complib library or the newer SGI
|
||||
# SCSL scientific library. The latter is recommended. FFTW is also
|
||||
# reported to work.
|
||||
|
||||
# Use fft routines from the SCSL library (recommended):
|
||||
CPPFLAGS = -D__SGI -D__SGI64 -D__ORIGIN -D__SCSL -D__MPI -D__PARA \
|
||||
-I../include
|
||||
|
||||
CPPFLAGS = -D__SGI -D__SGI64 -D__ORIGIN -D__SCSL -D__MPI -D__PARA -I../include
|
||||
## Use fft routines from complib library:
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ORIGIN -D__COMPLIB -D__MPI -D__PARA \
|
||||
# -I../include
|
||||
|
||||
# Use fft routines from complib library:
|
||||
|
||||
# CPPFLAGS = -D__SGI -D__SGI64 -D__ORIGIN -D__COMPLIB -D__MPI -D__PARA \
|
||||
# -I../include
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw64
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__FFTW -D__SGI -D__SGI64 -D__ORIGIN -D__MPI -D__PARA \
|
||||
# -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw64
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__FFTW -D__SGI -D__SGI64 -D__ORIGIN -D__MPI -D__PARA \
|
||||
# -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
#
|
||||
# CPPFLAGS = -D__COMPLIB -D__SGI -D__SGI64 -D__ORIGIN -D__MPI -D__PARA \
|
||||
# -I../include -I.
|
||||
# CPPFLAGS = -D__COMPLIB -D__SGI -D__SGI64 -D__ORIGIN -D__MPI -D__PARA \
|
||||
# -I../include -I.
|
||||
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
CC = cc
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
#
|
||||
# use -O3 only if you are sure that it actually works
|
||||
#
|
||||
FFLAGS = -mips4 -64 -r8 -TARG:platform=ip35
|
||||
OFLAGS = -O3 -OPT:Olimit=0:IEEE_arithmetic=3:roundoff=3 -LNO:cs2=8m:fusion=0
|
||||
F77FLAGS = $(FFLAGS) $(OFLAGS)
|
||||
F90FLAGS = $(FFLAGS) $(OFLAGS) -cpp $(CPPFLAGS) -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# C compiler
|
||||
#
|
||||
CC=cc
|
||||
#
|
||||
# Flags for the C compiler
|
||||
#
|
||||
CFLAGS= -mips4 -64 $(OFLAGS) $(CPPFLAGS)
|
||||
#
|
||||
# Libraries:
|
||||
#
|
||||
FFLAGS = -mips4 -64 -r8 -TARG:platform=ip35
|
||||
OFLAGS = -O3 -OPT:Olimit=0:IEEE_arithmetic=3:roundoff=3 \
|
||||
-LNO:cs2=8m:fusion=0
|
||||
F77FLAGS = $(FFLAGS) $(OFLAGS)
|
||||
F90FLAGS = $(FFLAGS) $(OFLAGS) -cpp $(CPPFLAGS) \
|
||||
-I../Modules -I../PW -I../PH
|
||||
CFLAGS = -mips4 -64 $(OFLAGS) $(CPPFLAGS)
|
||||
|
||||
# SCSL
|
||||
#
|
||||
LIBS = -lmpi -lscs
|
||||
#
|
||||
# use this for Complib
|
||||
#
|
||||
# LIBS = -lmpi -lcomplib.sgimath
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
LD=$(F90)
|
||||
LIBS = -lmpi -lscs
|
||||
|
||||
LDFLAGS = $(FFLAGS) ../flib/ptools.a ../flib/flib.a \
|
||||
../clib/clib.a $(LIBS)
|
||||
## use this for Complib
|
||||
# LIBS = -lmpi -lcomplib.sgimath
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
LD = $(F90)
|
||||
LDFLAGS = $(FFLAGS) ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,77 +1,66 @@
|
|||
#
|
||||
# System-dependent Make definitions for Linux, (old) Absoft compiler
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Precompiler
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# we assume that the GNU precompiler is used. The option -traditional
|
||||
# prevent string concatenation '//' from being interpreted as a comment
|
||||
#
|
||||
CPP = /lib/cpp -P -traditional
|
||||
#
|
||||
CPP = /lib/cpp -P -traditional
|
||||
|
||||
# Add -DADD_BLAS_ONE_UNDERSCORE or -DADD_BLAS_TWO_UNDERSCORES to
|
||||
# CPPFLAGS if your blas/lapack library names contain respectively
|
||||
# one or two underscores at the end
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__ABSOFT -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__ABSOFT -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__ABSOFT -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__ABSOFT -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
F90 = /usr/absoft/bin/f90
|
||||
F77 = /usr/absoft/bin/f77
|
||||
|
||||
#
|
||||
# Fortran compiler
|
||||
#
|
||||
F90 = /usr/absoft/bin/f90
|
||||
F77 = /usr/absoft/bin/f77
|
||||
#
|
||||
# Fortran compiler flags
|
||||
# -s for static allocation
|
||||
# (otherwise everything is allocated on the stack)
|
||||
# -YEXT_NAMES= LCS folds external symbols to lowercase
|
||||
# (Absoft is case-sensitive) - f90 only
|
||||
# -f same as above - f77 only
|
||||
# -O for optimization
|
||||
# -B100 for Pentium II optimization
|
||||
# -B101 for Pentium optimization
|
||||
# -N113 Promote REAL and COMPLEX data types to DOUBLE-f77 only
|
||||
#
|
||||
#
|
||||
# Fortran90 compiler flags
|
||||
#
|
||||
F90FLAGS =-s -O -B100 -YEXT_NAMES=LCS -p../Modules -p../PW -p../PH
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS =-s -N113 -O -B100 -f
|
||||
# -s for static allocation
|
||||
# (otherwise everything is allocated on the stack)
|
||||
# -YEXT_NAMES= LCS folds external symbols to lowercase
|
||||
# (Absoft is case-sensitive) - f90 only
|
||||
# -f same as above - f77 only
|
||||
# -O for optimization
|
||||
# -B100 for Pentium II optimization
|
||||
# -B101 for Pentium optimization
|
||||
# -N113 Promote REAL and COMPLEX data types to DOUBLE-f77 only
|
||||
F90FLAGS = -s -O -B100 -YEXT_NAMES=LCS -p../Modules -p../PW -p../PH
|
||||
F77FLAGS = -s -N113 -O -B100 -f
|
||||
F77FLAGS_NOOPT = -f
|
||||
#
|
||||
# C compiler flags (for GNU C compiler)
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
||||
|
||||
# for precompiled blas/lapack, use the following
|
||||
# (some precompiled blas/lapack libraries may need -lg2c)
|
||||
#
|
||||
LIBS= -llapack -lblas lU77 -lm $(FFTW_LIB)
|
||||
#
|
||||
# The following is to use blas and lapack from the source code
|
||||
# LIBS= -lU77 -lm
|
||||
# MYLIB=blas_and_lapack
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
LIBS = -llapack -lblas lU77 -lm $(FFTW_LIB)
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
## The following is to use blas and lapack from the source code
|
||||
# LIBS = -lU77 -lm
|
||||
# MYLIB = blas_and_lapack
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,30 +1,36 @@
|
|||
#
|
||||
# System-dependent Make definitions for Linux, Intel compiler
|
||||
# Edit according to your needs
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# Add -DADD_BLAS_ONE_UNDERSCORE to CPPFLAGS if your blas/lapack library
|
||||
# names contain two underscores at the end
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
# CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__INTEL -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
F90 = ifc
|
||||
F77 = ifc
|
||||
|
||||
#
|
||||
# Fortran compiler
|
||||
#
|
||||
F90 = ifc
|
||||
F77 = ifc
|
||||
#
|
||||
# Fortran compiler flags
|
||||
#
|
||||
# -Vaxlib enables the use of portability libraries (getarg
|
||||
# and maybe other library calls)
|
||||
# -W0 disable warnings
|
||||
|
@ -32,55 +38,43 @@ F77 = ifc
|
|||
# -tpp5 Pentium optimization
|
||||
# -tpp6 Pentium Pro, 2, 3 optimization
|
||||
# -tpp7 Pentium 4 optimization
|
||||
#
|
||||
FFLAGS = -Vaxlib -O2 -tpp6
|
||||
#
|
||||
# Fortran90 compiler flags
|
||||
#
|
||||
# use this for version < 7
|
||||
# F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -cl,./intel.pcl
|
||||
FFLAGS = -Vaxlib -O2 -tpp6
|
||||
|
||||
## use this for version < 7
|
||||
# F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -cl,./intel.pcl
|
||||
# use this for version = 7
|
||||
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -nomodule -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
#
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS) -nomodule \
|
||||
-I../Modules -I../PW -I../PH
|
||||
|
||||
F77FLAGS = $(FFLAGS)
|
||||
F77FLAGS_NOOPT = -O0
|
||||
#
|
||||
# C compiler flags (for GNU C compiler)
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
||||
|
||||
# The following is for Intel MKL libraries v. 5.1 on Pentium-3
|
||||
# Use libmkl_p3.a for Pentium-3 and Athlon CPUs
|
||||
# Use libmkl_p4.a for Pentium-4 and Opteron CPUs
|
||||
#
|
||||
LIBS= $(FFTW_LIB) /opt/intel/mkl/lib/32/libmkl_lapack.a \
|
||||
/opt/intel/mkl/lib/32/libmkl_p3.a -lpthread
|
||||
# For MKL v. 5.2 add "-lguide"
|
||||
# For MKL v. 6 use
|
||||
# LIBS= $(FFTW_LIB) -L/opt/intel/mkl/lib/32/ \
|
||||
# -lmkl_lapack -lmkl_ia32 -lguide -lpthread
|
||||
MYLIB=lapack_mkl
|
||||
#
|
||||
# The following is for Atlas optimized blas/lapack libraries
|
||||
# You may not actually need -lcblas . See the manual for details
|
||||
# on how to fix I/O incompatibility problems with ifc
|
||||
#
|
||||
# LIBS = $(FFTW_LIB) -L$(HOME)/Linux_ATHLON256/ \
|
||||
# -llapack -lf77blas -lcblas -latlas
|
||||
#
|
||||
# The following is to use blas and lapack from the source code
|
||||
# MYLIB=blas_and_lapack
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a -Vaxlib $(LIBS)
|
||||
LIBS = $(FFTW_LIB) /opt/intel/mkl/lib/32/libmkl_lapack.a \
|
||||
/opt/intel/mkl/lib/32/libmkl_p3.a -lpthread
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
## For MKL v. 5.2 add "-lguide"
|
||||
|
||||
## For MKL v. 6 use
|
||||
# LIBS = $(FFTW_LIB) -L/opt/intel/mkl/lib/32/ \
|
||||
# -lmkl_lapack -lmkl_ia32 -lguide -lpthread
|
||||
|
||||
MYLIB = lapack_mkl
|
||||
|
||||
## The following is for Atlas optimized blas/lapack libraries
|
||||
## You may not actually need -lcblas . See the manual for details
|
||||
## on how to fix I/O incompatibility problems with ifc
|
||||
# LIBS = $(FFTW_LIB) -L$(HOME)/Linux_ATHLON256/ \
|
||||
# -llapack -lf77blas -lcblas -latlas
|
||||
|
||||
## The following is to use blas and lapack from the source code
|
||||
# MYLIB = blas_and_lapack
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a -Vaxlib $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,50 +1,49 @@
|
|||
#
|
||||
# System-dependent Make definitions for Linux PCs, Lahey compiler
|
||||
# Contributed by Marcos Verissimo Alves
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Precompiler
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# we assume that the GNU precompiler is used. The option -traditional
|
||||
# prevent string concatenation '//' from being interpreted as a comment
|
||||
#
|
||||
CPP = /usr/local/lf9560/lib/cpp -P -traditional
|
||||
#
|
||||
CPP = /usr/local/lf9560/lib/cpp -P -traditional
|
||||
|
||||
# Add -DADD_BLAS_ONE_UNDERSCORE if your blas/lapack library names contain
|
||||
# two underscores at the end
|
||||
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/lib -ldfftw
|
||||
# FFTW_INC_DIR=/usr/include/
|
||||
# CPPFLAGS = -D__LINUX -D__LAHEY -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/lib -ldfftw
|
||||
# FFTW_INC_DIR = /usr/include/
|
||||
# CPPFLAGS = -D__LINUX -D__LAHEY -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__LAHEY -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__LAHEY -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
F90 = lf95
|
||||
F77 = lf95
|
||||
F90FLAGS = --staticlink --dbl -O -I../include -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -O -$(CPPFLAGS)
|
||||
|
||||
#
|
||||
# Fortran compilers:
|
||||
#
|
||||
F90 = lf95
|
||||
F90FLAGS = --staticlink --dbl -O -I../include -I../Modules -I../PW -I../PH
|
||||
F77 = lf95
|
||||
|
||||
CFLAGS = -O -$(CPPFLAGS)
|
||||
|
||||
#
|
||||
# Loader:
|
||||
# this below uses precompiled lahey libraries.
|
||||
#
|
||||
LD=$(F90)
|
||||
LIBS = -llapackmt -lblasmt $(FFTW_LIB)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) -I../Modules -I../PW -I../PH
|
||||
LIBS = -llapackmt -lblasmt $(FFTW_LIB)
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) \
|
||||
-I../Modules -I../PW -I../PH
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,58 +1,55 @@
|
|||
#
|
||||
# System-dependent Make definitions for Linux PCs, pgi compiler
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Precompiler
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# we assume that the GNU precompiler is used. The option -traditional
|
||||
# prevent string concatenation '//' from being interpreted as a comment
|
||||
#
|
||||
CPP = /lib/cpp -P -traditional
|
||||
#
|
||||
CPP = /lib/cpp -P -traditional
|
||||
|
||||
# Add -DADD_BLAS_ONE_UNDERSCORE if your blas/lapack library names contain
|
||||
# two underscores at the end
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__PGI -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__LINUX -D__PGI -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
CPPFLAGS = -D__LINUX -D__PGI -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
CPPFLAGS = -D__LINUX -D__PGI -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I.
|
||||
|
||||
#
|
||||
# Fortran compilers:
|
||||
# Please note: -r8 is necessary for numerical stability ..
|
||||
#
|
||||
F90 =pgf90
|
||||
F77 =pgf77
|
||||
F77FLAGS = -fast -r8
|
||||
F90FLAGS = -fast -r8 -I../Modules -I../PW -I../PH
|
||||
#
|
||||
# C compiler
|
||||
#
|
||||
CC = pgcc
|
||||
CFLAGS = -fast $(CPPFLAGS)
|
||||
F90 = pgf90
|
||||
F77 = pgf77
|
||||
CC = pgcc
|
||||
F77FLAGS = -fast -r8
|
||||
F90FLAGS = -fast -r8 -I../Modules -I../PW -I../PH
|
||||
CFLAGS = -fast $(CPPFLAGS)
|
||||
|
||||
#
|
||||
# Loader:
|
||||
# this below uses precompiled pgi libraries ( not very efficient but stable )
|
||||
#
|
||||
LD=$(F90)
|
||||
LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -lblas $(FFTW_LIB)
|
||||
#
|
||||
# For CINECA machines use:
|
||||
# LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -L/cineca/lib/ATLAS \
|
||||
# -lf77blas -latlas $(FFTW_LIB)
|
||||
#
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) -I../Modules -I../PW -I../PH
|
||||
LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -lblas $(FFTW_LIB)
|
||||
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
## For CINECA machines use:
|
||||
# LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -L/cineca/lib/ATLAS \
|
||||
# -lf77blas -latlas $(FFTW_LIB)
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS) \
|
||||
-I../Modules -I../PW -I../PH
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,31 +1,36 @@
|
|||
#
|
||||
# System-dependent Make definitions, SUN workstations
|
||||
# (Using sunperf library ) - contributed by Lazaro Caldarin
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# To use fftw instead of the sunperf library fft subroutine
|
||||
# add -D__FFTW -D__USE_INTERNAL_FFTW to CPPFLAGS
|
||||
|
||||
# Preprocessor
|
||||
#
|
||||
CPP = fpp
|
||||
CPP = fpp
|
||||
CPPFLAGS = -P -D__SUN -DHAS_ZHEGVX -I../include
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f77
|
||||
#
|
||||
|
||||
F90 = f90
|
||||
F77 = f77
|
||||
F77FLAGS = -fast -dalign -xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf
|
||||
F90FLAGS = -fast -dalign -xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf -M../Modules -M../PW -M../PH
|
||||
#
|
||||
LIBS = -L/usr/opt/SUNWhpc/lib -R/opt/SUNWhpc/lib -lmvec
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a -fast -dalign \
|
||||
-xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
F90FLAGS = -fast -dalign -xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf \
|
||||
-M../Modules -M../PW -M../PH
|
||||
|
||||
LIBS = -L/usr/opt/SUNWhpc/lib -R/opt/SUNWhpc/lib -lmvec
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a -fast -dalign \
|
||||
-xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,30 +1,36 @@
|
|||
#
|
||||
# System-dependent Make definitions, SUN parallel (MPI) machines
|
||||
# (Using sunperf library ) - contributed by Lazaro Caldarin
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# To use fftw instead of the sunperf library fft subroutine
|
||||
# add -D__FFTW -D__USE_INTERNAL_FFTW to CPPFLAGS
|
||||
|
||||
# Preprocessor
|
||||
#
|
||||
CPP = fpp
|
||||
CPP = fpp
|
||||
CPPFLAGS = -P -D__SUN -D__PARA -D__MPI -DHAS_ZHEGVX -I../include
|
||||
# Fortran compiler:
|
||||
F90 = mpf90
|
||||
F77 = mpf77
|
||||
#
|
||||
F90FLAGS = -fast -xchip=ultra3 -xarch=v8plusb -stackvar -xlic_lib=sunperf -M../Modules -M../PW -M../PH
|
||||
|
||||
F90 = mpf90
|
||||
F77 = mpf77
|
||||
F90FLAGS = -fast -xchip=ultra3 -xarch=v8plusb -stackvar -xlic_lib=sunperf \
|
||||
-M../Modules -M../PW -M../PH
|
||||
F77FLAGS = -fast -xchip=ultra3 -xarch=v8plusb -stackvar -xlic_lib=sunperf
|
||||
#
|
||||
LIBS = -L/usr/opt/SUNWhpc/lib \
|
||||
-R/opt/SUNWhpc/lib -lmvec -lmpi
|
||||
#
|
||||
LD=$(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a -fast \
|
||||
-xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf $(LIBS)
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
||||
LIBS = -L/usr/opt/SUNWhpc/lib -R/opt/SUNWhpc/lib -lmvec -lmpi
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a -fast \
|
||||
-xchip=ultra3 -xarch=v8plusb -xlic_lib=sunperf $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,79 +1,78 @@
|
|||
#
|
||||
# System-dependent definitions for NEC SX6 - Contributed by Guido Roma
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Precompiler:
|
||||
#
|
||||
MAKE=sxmake
|
||||
CPP = /SX/usr/lib/sxcpp
|
||||
INC_DIR = ../include
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
MAKE = sxmake
|
||||
CPP = /SX/usr/lib/sxcpp
|
||||
INC_DIR = ../include
|
||||
|
||||
# For fft routines of ASL library
|
||||
CPPFLAGS = -P -E -DASL -DHAS_ZHEGVX -DLANGUAGE_FORTRAN -D__SX6 -I$(INC_DIR)
|
||||
# For libfft library, part of Mathkeisan Libraries
|
||||
#CPPFLAGS = -P -E -DLANGUAGE_FORTRAN -DHAS_ZHEGVX -D__SX6 -I$(INC_DIR)
|
||||
# For libjmfft library (www.idris.fr) by Jean-Marie Teuler
|
||||
#CPPFLAGS = -P -E -DZZFFT3D=ccfft3d -DHAS_ZHEGVX -DLANGUAGE_FORTRAN -D__SX6 -I$(INC_DIR)
|
||||
CPPFLAGS = -P -E -DASL -DHAS_ZHEGVX -DLANGUAGE_FORTRAN -D__SX6 -I$(INC_DIR)
|
||||
## For libfft library, part of Mathkeisan Libraries
|
||||
# CPPFLAGS = -P -E -DLANGUAGE_FORTRAN -DHAS_ZHEGVX -D__SX6 -I$(INC_DIR)
|
||||
## For libjmfft library (www.idris.fr) by Jean-Marie Teuler
|
||||
# CPPFLAGS = -P -E -DZZFFT3D=ccfft3d -DHAS_ZHEGVX -DLANGUAGE_FORTRAN \
|
||||
# -D__SX6 -I$(INC_DIR)
|
||||
|
||||
HOST=-sx6
|
||||
BASIC=-float0 -P stack $(HOST)
|
||||
MISC = -I$(INC_DIR) -eab -R5 -Wf" -P nh -ptr byte" -Wf,"-Ncont -A dbl4"
|
||||
MISC1 = -I$(INC_DIR) -eab -R5 -Wf" -P nh -ptr byte" -Wf,"-cont -A dbl4"
|
||||
PROF=-p
|
||||
FTRACE=-ftrace
|
||||
OPT= -C hopt -Wf" -pvctl noifopt loopcnt=9999999 expand=12 fullmsg vwork=stack -fusion -O noif"
|
||||
OPTVSAFE= -C vsafe -Wf" -pvctl loopcnt=9999999 fullmsg vwork=stack "
|
||||
OPT0= -C debug
|
||||
DEBUG= -g
|
||||
DEBUGOPT= -Wf" -init stack=zero heap=zero"
|
||||
HOST = -sx6
|
||||
BASIC = -float0 -P stack $(HOST)
|
||||
MISC = -I$(INC_DIR) -eab -R5 -Wf" -P nh -ptr byte" -Wf,"-Ncont -A dbl4"
|
||||
MISC1 = -I$(INC_DIR) -eab -R5 -Wf" -P nh -ptr byte" -Wf,"-cont -A dbl4"
|
||||
PROF = -p
|
||||
FTRACE = -ftrace
|
||||
OPT = -C hopt -Wf" -pvctl noifopt loopcnt=9999999 expand=12 fullmsg vwork=stack -fusion -O noif"
|
||||
OPTVSAFE = -C vsafe -Wf" -pvctl loopcnt=9999999 fullmsg vwork=stack "
|
||||
OPT0 = -C debug
|
||||
DEBUG = -g
|
||||
DEBUGOPT = -Wf" -init stack=zero heap=zero"
|
||||
|
||||
#
|
||||
F90 = sxf90
|
||||
F77 = sxf90
|
||||
|
||||
AR = sxar
|
||||
ARFLAGS = rv
|
||||
FFLAGS = $(BASIC) $(MISC) $(OPT) $(DEBUGOPT)
|
||||
# $(FTRACE)
|
||||
# FFLAGS = $(BASIC) $(MISC) $(DEBUG) $(DEBUGOPT) $(OPT0)
|
||||
# FCAUTIOUS = $(BASIC) $(MISC1) $(DEBUG) $(DEBUGOPT)
|
||||
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
#
|
||||
F90 = sxf90
|
||||
F77 = sxf90
|
||||
F90FLAGS = $(FFLAGS) -I../Modules -I../PW -I../PH
|
||||
F77FLAGS = -f3 $(FFLAGS)
|
||||
|
||||
FFLAGS = $(BASIC) $(MISC) $(OPT) $(DEBUGOPT)
|
||||
#$(FTRACE)
|
||||
#FFLAGS = $(BASIC) $(MISC) $(DEBUG) $(DEBUGOPT) $(OPT0)
|
||||
#FCAUTIOUS=$(BASIC) $(MISC1) $(DEBUG) $(DEBUGOPT)
|
||||
F90FLAGS=$(FFLAGS) -I../Modules -I../PW -I../PH
|
||||
F77FLAGS=-f3 $(FFLAGS)
|
||||
# CC = sxc++
|
||||
# CFLAGS = -DLANGUAGE_C -DNEC -DSX -I$(INC_DIR) -hfloat0,0,acct
|
||||
CC = sxcc
|
||||
CCLOCAL = cc
|
||||
CFLAGS = -D__SX6 -I$(INC_DIR)
|
||||
|
||||
#
|
||||
# C compiler:
|
||||
#
|
||||
#CC = sxc++
|
||||
#CFLAGS = -DLANGUAGE_C -DNEC -DSX -I$(INC_DIR) -hfloat0,0,acct
|
||||
CC = sxcc
|
||||
CCLOCAL=cc
|
||||
CFLAGS = -D__SX6 -I$(INC_DIR)
|
||||
|
||||
#
|
||||
# Libraries:
|
||||
#
|
||||
# With ASL fft libraries
|
||||
LIBS = -llapack -lblas -lasl
|
||||
# With libfft (Mathkeisan) libraries
|
||||
# be careful, versions <= 1.4 are buggy (zzfft3d),
|
||||
#wait for 1.5 (expected end of 2003)
|
||||
#LIBS = -llapack -lblas ../zzfft3d.o -lfft
|
||||
# You can find the jmfft Cray compatible library written
|
||||
# by Jean-Marie Teuler on www.idris.fr (search for jmfft)
|
||||
#LIBS = -llapack -lblas -L$(HOME)/mylocal/lib -ljmfft
|
||||
LIBS = -llapack -lblas -lasl
|
||||
|
||||
#
|
||||
# Loader flags:
|
||||
#
|
||||
LD = $(F90)
|
||||
#LDFLAGS = $(BASIC) $(PROF) $(FTRACE)
|
||||
LDFLAGS = $(BASIC) $(DEBUG) $(DEBUGOPT) ../flib/ptools.a \
|
||||
../flib/flib.a ../clib/clib.a \
|
||||
-p -Wl" -f zero " $(LIBS)
|
||||
RANLIB = echo
|
||||
## With libfft (Mathkeisan) libraries
|
||||
## be careful, versions <= 1.4 are buggy (zzfft3d),
|
||||
##wait for 1.5 (expected end of 2003)
|
||||
# LIBS = -llapack -lblas ../zzfft3d.o -lfft
|
||||
|
||||
## You can find the jmfft Cray compatible library written
|
||||
## by Jean-Marie Teuler on www.idris.fr (search for jmfft)
|
||||
# LIBS = -llapack -lblas -L$(HOME)/mylocal/lib -ljmfft
|
||||
|
||||
LD = $(F90)
|
||||
|
||||
# LDFLAGS = $(BASIC) $(PROF) $(FTRACE)
|
||||
LDFLAGS = $(BASIC) $(DEBUG) $(DEBUGOPT) ../flib/ptools.a \
|
||||
../flib/flib.a ../clib/clib.a -p -Wl" -f zero " $(LIBS)
|
||||
|
||||
AR = sxar
|
||||
ARFLAGS = rv
|
||||
RANLIB = echo
|
||||
|
|
103
install/Make.t3e
103
install/Make.t3e
|
@ -1,71 +1,64 @@
|
|||
#
|
||||
# System-dependent definitions for t3e using MPI
|
||||
# Edit according to your needs
|
||||
#
|
||||
# Precompiler
|
||||
#
|
||||
CPP = /opt/ctl/bin/cpp
|
||||
#
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
CPP = /opt/ctl/bin/cpp
|
||||
|
||||
# add -D__BENCHLIB to CPPFLAGS if the benchlib is installed
|
||||
|
||||
# Use fft routines from mathematical t3e libraries
|
||||
# CPPFLAGS = -I../include -D__T3E -D__PARA -D__MPI
|
||||
## Use fft routines from mathematical t3e libraries
|
||||
# CPPFLAGS = -I../include -D__T3E -D__PARA -D__MPI
|
||||
|
||||
# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
#
|
||||
# In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB=-L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR=/usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__T3E -D__PARA -D__MPI -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
||||
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
|
||||
## In this case, specify also how to load the fftw library (FFTW_LIB)
|
||||
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
|
||||
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
|
||||
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
|
||||
# CPPFLAGS = -D__T3E -D__PARA -D__MPI -D__FFTW -I../include \
|
||||
# -I$(FFTW_INC_DIR)
|
||||
|
||||
# Use the local copy of fftw
|
||||
#
|
||||
CPPFLAGS = -D__T3E -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
#
|
||||
# Fortran compiler:
|
||||
#
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
#
|
||||
CPPFLAGS = -D__T3E -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW \
|
||||
-I../include -I.
|
||||
|
||||
F90 = f90
|
||||
F77 = f90
|
||||
|
||||
# you may need to add -Idir, where "dir"=directory where mpif.h resides
|
||||
# with -M1110 flag compiler does not issue warning messages for
|
||||
# the use of DOUBLE PRECISION constants in the code. (SdG)
|
||||
#
|
||||
|
||||
# More aggressive optimization flags:
|
||||
# -O3 -O unroll2 -O pipeline3 -O aggress -O fusion -O bl
|
||||
#
|
||||
FFLAGS = -em -dp -M1110
|
||||
#
|
||||
# Fortran90 compiler flags
|
||||
#
|
||||
F90FLAGS = $(FFLAGS) -F -eZ $(CPPFLAGS) -p../Modules -p../PW -p../PH
|
||||
#
|
||||
# Fortran77 compiler flags
|
||||
F77FLAGS = $(FFLAGS) -eZ
|
||||
#
|
||||
# C compiler flags
|
||||
#
|
||||
CFLAGS = $(CPPFLAGS) -O2
|
||||
#
|
||||
# Loader:
|
||||
#
|
||||
# FFLAGS = -O3 -O unroll2 -O pipeline3 -O aggress -O fusion -O bl
|
||||
|
||||
FFLAGS = -em -dp -M1110
|
||||
|
||||
F90FLAGS = $(FFLAGS) -F -eZ $(CPPFLAGS) -p../Modules -p../PW -p../PH
|
||||
F77FLAGS = $(FFLAGS) -eZ
|
||||
CFLAGS = $(CPPFLAGS) -O2
|
||||
|
||||
# usually blas and lapack are automatically loaded
|
||||
# and only fftw (if required) and mpi need to be specified
|
||||
# if you use -D__BENCHLIB, load the benchlib as well :
|
||||
# -l _scalar -l _vect -l _ereg
|
||||
#
|
||||
LD=$(F90)
|
||||
LIBS = $(FFTW_LIB) -lmpi
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
#
|
||||
LIBS = $(FFTW_LIB) -lmpi
|
||||
|
||||
# this contains auxiliary routines missing in T3E lapack
|
||||
#
|
||||
MYLIB = lapack_t3e
|
||||
#
|
||||
# ar:
|
||||
#
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
MYLIB = lapack_t3e
|
||||
|
||||
LD = $(F90)
|
||||
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a $(LIBS)
|
||||
AR = ar
|
||||
ARFLAGS = ruv
|
||||
RANLIB = echo
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
||||
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
|
@ -1,11 +0,0 @@
|
|||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
$(F90) $(F90FLAGS) -c $<
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
|
@ -5721,7 +5721,7 @@ fi
|
|||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files make.sys make.rules"
|
||||
ac_config_files="$ac_config_files make.sys"
|
||||
|
||||
|
||||
cat >confcache <<\_ACEOF
|
||||
|
@ -6274,7 +6274,6 @@ do
|
|||
case "$ac_config_target" in
|
||||
# Handling of arguments.
|
||||
"make.sys" ) CONFIG_FILES="$CONFIG_FILES make.sys" ;;
|
||||
"make.rules" ) CONFIG_FILES="$CONFIG_FILES make.rules" ;;
|
||||
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
||||
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
||||
{ (exit 1); exit 1; }; };;
|
||||
|
|
|
@ -1072,7 +1072,7 @@ AC_SUBST(arflags)
|
|||
AC_SUBST(ranlib)
|
||||
AC_SUBST(f90rule)
|
||||
|
||||
AC_CONFIG_FILES(make.sys make.rules)
|
||||
AC_CONFIG_FILES(make.sys)
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
# @configure_input@
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
@f90rule@
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
@SET_MAKE@
|
||||
CC = @cc@
|
||||
CFLAGS = @cflags@ $(DFLAGS) $(IFLAGS)
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
# @configure_input@
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
@f90rule@
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
13
make.sys.in
13
make.sys.in
|
@ -1,4 +1,17 @@
|
|||
# @configure_input@
|
||||
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .o .c .f .f90
|
||||
|
||||
.f90.o:
|
||||
@f90rule@
|
||||
|
||||
.f.o:
|
||||
$(F77) $(F77FLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
@SET_MAKE@
|
||||
CC = @cc@
|
||||
CFLAGS = @cflags@ $(DFLAGS) $(IFLAGS)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Makefile for tools
|
||||
|
||||
include ../make.sys
|
||||
include ../make.rules
|
||||
|
||||
PWOBJS = \
|
||||
../PW/cft_3.o \
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Makefile for converters to UPF format
|
||||
|
||||
include ../make.rules
|
||||
include ../make.sys
|
||||
|
||||
OBJS = write_upf.o errore.o
|
||||
|
|
Loading…
Reference in New Issue