# (-*-makefile-*-)
#
# This makefile is included from 'makefile'.  It defines the
# various machine dependent things such as compiler commands,
# directories, libraries, etc.
#

#
# FFTW directories
#
FFTW_DIR = /a/csanyi/fftw-2.1.3/fftw
FFTW_LIB_DIR = -L${FFTW_DIR}/.libs

FFTW_LIB_OPTS =  -lfftw 
FFTW_INCL_OPTS = -I${FFTW_DIR}
BASIS_INCL_OPTS = ${FFTW_INCL_OPTS}

#
# The matrix diagonalization libraries, object, and and compile options
# (LAPACK or ESSL).
# 
# MATDIAGF77_OBJ must be either lapackdiagF77.o or essldiagF77.o,
# depending on which library you are going to use.
#
# MATDIAG_OPTS tells the system which library you will be using (i.e.
# LAPACK or JACOBI) .
# Set it to either -DDFT_USE_LAPACK or -DDFT_USE_JACOBI.
#
# MATDIAG_LIB_DIR is the directory where the lapack library lives
#                 (needed if the complier can't find it automatically)
#
MATDIAG_OBJ =  matdiagC.o
MATDIAG_OPTS = -DDFT_USE_LAPACK
MATDIAG_LIB_DIR = -L/usr/lib
#MATDIAG_LIB_DIR = /a/ATLAS-old/lib/Linux_21264GOTO_2_GNU

#
# Parallelization options: machine dependent ones go here, **PLUS**
#
#    put -DDFT_THREAD to use POSIX threads (SMP)
#    put -DDFT_MPI to use MPI (DMP)
# (you can specify both if needed)
#
PARALLEL_OPTS =  -DDFT_THREAD
PARALLEL_LIBS = -lpthread

#PARALLEL_OPTS = -DDFT_MPI
#PARALLEL_LIBS = -lmpich 
#PARALLEL_LIBDIR = -L/usr/lib/mpich/lib
#PARALLEL_INCDIR = -I/usr/lib/mpich/include

#
# Our libraries:  lapack, blas, FFTW, and the math library
#
F2CLIBDIR = -L/usr/lib/gcc-lib/alpha-glibc20-linux/egcs-2.90.29

LIBS = ${FFTW_LIB_DIR} ${MATDIAG_LIB_DIR} ${F2CLIBDIR} \
     ${FFTW_LIB_OPTS}  ${PARALLEL_LIBS} -lfor -lUfor -lcxml -lm -lf2c

#
# Optimization options for all compilers
#
OPTIM_OPTS = -O5 -arch ev67 -funroll-all-loops  -inline all


#
# Compiler flags for all compilers

COMPILE_OPTS = -I. -Icommands ${PARALLEL_INCDIR} ${BASIS_INCL_OPTS} \
	     ${OPTIM_OPTS} ${PARALLEL_OPTS} ${MATDIAG_OPTS}  -Dnewgridtype  -DDFT_PROFILING

#
# C++ compiler and options
#
CPLUSPLUS = cxx -x cxx
CPLUSPLUSOPTS = ${COMPILE_OPTS} 


#LINKER = ./mpiCC
LINKER = cxx

#
# Linking options: static/dynamic flags, etc., if any
#
LINKOPTS = ${CPLUSPLUSOPTS} ${PARALLEL_LIBDIR}











syntax highlighted by Code2HTML, v. 0.9.1