2003-01-20 05:58:50 +08:00
|
|
|
#
|
2003-06-12 15:43:14 +08:00
|
|
|
# System-dependent definitions for IBM AIX (RISC6000) workstations
|
2003-01-20 05:58:50 +08:00
|
|
|
# Edit according to your needs
|
|
|
|
#
|
2003-03-01 18:48:56 +08:00
|
|
|
# Macros for conditional compilation
|
|
|
|
# If the mass library is available, use
|
|
|
|
# CPPFLAGS = -D__AIX,-D__MASS,-DHAS_ZHEGVX
|
|
|
|
#
|
|
|
|
CPPFLAGS = -D__AIX,-DHAS_ZHEGVX
|
2003-01-20 05:58:50 +08:00
|
|
|
#
|
|
|
|
# Fortran compiler:
|
2003-03-01 18:48:56 +08:00
|
|
|
#
|
2003-02-15 07:36:46 +08:00
|
|
|
# Use -g -C without -s in LDFLAGS for debugging
|
2003-01-20 05:58:50 +08:00
|
|
|
# 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)
|
2003-03-01 18:48:56 +08:00
|
|
|
#
|
2003-01-20 18:47:49 +08:00
|
|
|
F90 = xlf
|
2003-03-01 18:48:56 +08:00
|
|
|
F77 = $(F90)
|
|
|
|
#
|
|
|
|
# Fortran compiler flags
|
|
|
|
#
|
2004-10-27 16:23:13 +08:00
|
|
|
FFLAGS = -qalias=noaryovrlp -I$(OSHOME)/include \
|
2003-03-01 18:48:56 +08:00
|
|
|
-O3 -qstrict -qarch=auto -qtune=auto -qsuffix=cpp=f90 \
|
2003-04-30 16:42:07 +08:00
|
|
|
-qdpc -qalias=nointptr -Q
|
2003-03-01 18:48:56 +08:00
|
|
|
#
|
|
|
|
# Fortran77 compiler flags
|
|
|
|
#
|
|
|
|
F77FLAGS = $(FFLAGS)
|
|
|
|
F77FLAGS_NOOPT = -O0
|
|
|
|
#
|
|
|
|
# Fortran90 compiler flags
|
|
|
|
#
|
2004-10-27 16:23:13 +08:00
|
|
|
F90FLAGS = $(FFLAGS) -qfree=f90 -I$(OSHOME)/include -WF,$(CPPFLAGS)
|
2003-03-01 18:48:56 +08:00
|
|
|
#
|
|
|
|
# C compiler flags
|
|
|
|
#
|
2004-10-27 16:23:13 +08:00
|
|
|
CCFLAGS = -I$(OSHOME)/include -Wp,$(CPPFLAGS) -O2
|
2003-01-20 18:47:49 +08:00
|
|
|
#
|
|
|
|
# This is needed to tell the compiler where modules are
|
|
|
|
#
|
|
|
|
MODULEFLAG = -I$(OSHOME)/Modules -I$(OSHOME)/PW/ -I$(OSHOME)/PH/
|
2003-01-20 05:58:50 +08:00
|
|
|
#
|
|
|
|
# Libraries:
|
2003-03-01 18:48:56 +08:00
|
|
|
#
|
2003-01-20 05:58:50 +08:00
|
|
|
# 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
|
2003-03-01 18:48:56 +08:00
|
|
|
# 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
|
2003-01-20 05:58:50 +08:00
|
|
|
#
|
2003-03-01 18:48:56 +08:00
|
|
|
# Linker flags
|
2003-01-20 05:58:50 +08:00
|
|
|
#
|
|
|
|
# Loader: use -bmaxdata:512000000 for jobs>256Mb (in this example up to 512Mb)
|
|
|
|
# use -bnso -bI:/usr/lib/syscalls.exp for static linking
|
2003-03-01 18:48:56 +08:00
|
|
|
# use -s for stripped executable (smaller file but no debugging)
|
2003-01-20 05:58:50 +08:00
|
|
|
#
|
2003-01-20 18:47:49 +08:00
|
|
|
LD=$(F90)
|
2003-07-11 00:59:11 +08:00
|
|
|
LDFLAGS = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(OSHOME)/clib/clib.a $(LIBS) -s
|
2003-06-12 15:43:14 +08:00
|
|
|
#LDFLAGS = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(LIBS) -s -bmaxdata:512000000
|
2003-01-20 05:58:50 +08:00
|
|
|
#
|
|
|
|
# ar:
|
|
|
|
#
|
|
|
|
AR = ar
|
|
|
|
ARFLAGS = ruv
|
2004-08-12 17:08:38 +08:00
|
|
|
RANLIB = echo
|