mirror of https://gitlab.com/QEF/q-e.git
71 lines
2.0 KiB
Plaintext
71 lines
2.0 KiB
Plaintext
# 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) $(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 -D__HP64
|
|
|
|
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 +noppu +DD64
|
|
|
|
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 +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)
|
|
|
|
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 +O2 +DD64
|
|
|
|
AR = ar
|
|
ARFLAGS = ruv
|
|
RANLIB = echo
|