mirror of https://gitlab.com/QEF/q-e.git
71 lines
2.3 KiB
Plaintext
71 lines
2.3 KiB
Plaintext
#
|
|
# System-dependent definitions for HP-PA RISC machines, HP-UX
|
|
# Contributed by Sergey Lisenkov, with help from Eyvaz Isaev
|
|
# and Joey Dieckhans. Software configuration:
|
|
# HP-UX >=11.0, HP f90 compiler v >= 2.4, HP C compiler, MLIB
|
|
#
|
|
# Note that there is one version of MPI that requires the argument
|
|
# "-stdio=i" in command line for reading from standard output
|
|
#
|
|
#
|
|
# 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$(OSHOME)/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$(OSHOME)/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
|
|
|
|
F90FLAGS = $(FFLAGS) $(CPPFLAGS)
|
|
#
|
|
# Fortran77 compiler flags
|
|
#
|
|
F77FLAGS = $(FFLAGS)
|
|
F77FLAGS_NOOPT = -O0
|
|
#
|
|
# C compiler flags
|
|
# 32-bit
|
|
CCFLAGS = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
|
|
# 64-bit
|
|
#CCFLAGS = $(CPPFLAGS) +O2 +DA2.0W +DS2.0W +DD64 +Odataprefetch +Onolimit
|
|
# This is needed to tell the compiler where modules are
|
|
MODULEFLAG= -I$(OSHOME)/Modules -I$(OSHOME)/PW -I$(OSHOME)/PH -I/opt/mpi/include
|
|
#
|
|
# Libraries:
|
|
# 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 = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(OSHOME)/clib/clib.a +U77 +DA2.0 +DS2.0 +O2 $(LIBS) -lpthread
|
|
# 64-bit
|
|
#LDFLAGS = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(OSHOME)/clib/clib.a +U77 +DA2.0W +DS2.0W +O2 $(LIBS) -lpthread
|
|
# ar:
|
|
#
|
|
AR = ar
|
|
ARFLAGS = ruv
|
|
RANLIB = echo
|