quantum-espresso/install/Make.hp

80 lines
2.4 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
.SUFFIXES :
.SUFFIXES : .o .c .f .f90
.f90.o:
$(F90) $(F90FLAGS) -c $<
.f.o:
$(F77) $(FFLAGS) -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
# 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
CC = cc
MPICC = cc
F90 = f90
MPIF90 = f90
F77 = $(F90)
MPIF77 = $(MPIF90)
# 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
FFLAGS_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
LD = $(MPIF90)
# 32-bit
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
+U77 +DA2.0 +DS2.0 +O2
## 64-bit
# LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
+U77 +DA2.0W +DS2.0W +O2
AR = ar
ARFLAGS = ruv
RANLIB = echo