quantum-espresso/install/Make.ibm

73 lines
2.0 KiB
Plaintext
Raw Normal View History

#
# 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
#
# 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$(OSHOME)/include \
-O3 -qstrict -qarch=auto -qtune=auto -qsuffix=cpp=f90 \
-qdpc -qalias=nointptr -Q
#
# Fortran77 compiler flags
#
F77FLAGS = $(FFLAGS)
F77FLAGS_NOOPT = -O0
#
# Fortran90 compiler flags
#
F90FLAGS = $(FFLAGS) -qfree=f90 -I$(OSHOME)/include -WF,$(CPPFLAGS)
#
# C compiler flags
#
CCFLAGS = -I$(OSHOME)/include -Wp,$(CPPFLAGS) -O2
#
# This is needed to tell the compiler where modules are
#
MODULEFLAG = -I$(OSHOME)/Modules -I$(OSHOME)/PW/ -I$(OSHOME)/PH/
#
# Libraries:
#
# 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
#
# 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 = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(OSHOME)/clib/clib.a $(LIBS) -s
#LDFLAGS = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(LIBS) -s -bmaxdata:512000000
#
# ar:
#
AR = ar
ARFLAGS = ruv
RANLIB = echo