mirror of https://gitlab.com/QEF/q-e.git
71 lines
2.3 KiB
Plaintext
71 lines
2.3 KiB
Plaintext
# System-dependent Make definitions for Linux, (old) Absoft compiler
|
|
# Edit according to your needs
|
|
|
|
.SUFFIXES :
|
|
.SUFFIXES : .o .c .f .f90
|
|
|
|
.f90.o:
|
|
$(CPP) $(CPPFLAGS) $*.f90 $*.F90
|
|
$(F90) $(F90FLAGS) -c $*.F90 -o $*.o
|
|
|
|
.f.o:
|
|
$(F77) $(FFLAGS) -c $<
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
# we assume that the GNU precompiler is used. The option -traditional
|
|
# prevent string concatenation '//' from being interpreted as a comment
|
|
CPP = /lib/cpp -P -traditional
|
|
|
|
# Add -DADD_BLAS_ONE_UNDERSCORE or -DADD_BLAS_TWO_UNDERSCORES to
|
|
# CPPFLAGS if your blas/lapack library names contain respectively
|
|
# one or two underscores at the end
|
|
|
|
## 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 = -D__LINUX -D__ABSOFT -D__FFTW -I../include -I$(FFTW_INC_DIR)
|
|
|
|
# Use the local copy of fftw
|
|
CPPFLAGS = -D__LINUX -D__ABSOFT -D__FFTW -D__USE_INTERNAL_FFTW \
|
|
-I../include -I.
|
|
|
|
CC = cc
|
|
MPICC = cc
|
|
F90 = /usr/absoft/bin/f90
|
|
MPIF90 = /usr/absoft/bin/f90
|
|
F77 = /usr/absoft/bin/f77
|
|
MPIF77 = /usr/absoft/bin/f77
|
|
|
|
# Fortran compiler flags
|
|
# -s for static allocation
|
|
# (otherwise everything is allocated on the stack)
|
|
# -YEXT_NAMES= LCS folds external symbols to lowercase
|
|
# (Absoft is case-sensitive) - f90 only
|
|
# -f same as above - f77 only
|
|
# -O for optimization
|
|
# -B100 for Pentium II optimization
|
|
# -B101 for Pentium optimization
|
|
# -N113 Promote REAL and COMPLEX data types to DOUBLE-f77 only
|
|
F90FLAGS = -s -O -B100 -YEXT_NAMES=LCS -p../Modules -p../PW -p../PH
|
|
FFLAGS = -s -N113 -O -B100 -f
|
|
FFLAGS_NOOPT = -f
|
|
CFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
|
|
|
|
# for precompiled blas/lapack, use the following
|
|
# (some precompiled blas/lapack libraries may need -lg2c)
|
|
LIBS = -llapack -lblas lU77 -lm $(FFTW_LIB)
|
|
|
|
## The following is to use blas and lapack from the source code
|
|
# LIBS = -lU77 -lm
|
|
# MYLIB = blas_and_lapack
|
|
|
|
LD = $(MPIF90)
|
|
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a
|
|
AR = ar
|
|
ARFLAGS = ruv
|
|
RANLIB = echo
|