quantum-espresso/install/Make.hitachi

47 lines
1.3 KiB
Plaintext
Raw Normal View History

# System-dependent definitions for Hitachi SR8000
# contributed by Noejung Park
.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:
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
# CPPFLAGS = -DHITACHI -D__PARA -D__MPI -D__FFTW
# Use the local copy of fftw
CPPFLAGS = -DHITACHI -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW
CC = cc
MPICC = cc
F90 = f90
MPIF90 = f90
F77 = f77
MPIF77 = f77
FFLAGS = -O4 -32 -noparallel -precexp=basic -conti199 -nosaveallocate \
-I../include -I/usr/mpi/include
F90FLAGS = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH
CFLAGS = -D__FFTW -I$(FFTW_INC_DIR)
LAPACKdir = /usr/lib/LAPACK/lib32
MPIdir = /usr/mpi/lib/lib32
LIBS = -L$(LAPACKdir) -llapack_sc -lblas_sc \
-L$(MPIdir) -lfmpi -lmpi $(FFTW_LIB) -lm
LD = $(MPIF90)
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a
AR = ar
ARFLAGS = rv
RANLIB = echo