| 1 |
############################################################### |
| 2 |
# |
| 3 |
# Edit the following lines according to your implementation. |
| 4 |
# |
| 5 |
# The environment variable HOME_LORENE (root directory for the |
| 6 |
# Lorene implementation) must be have been already defined. |
| 7 |
# |
| 8 |
############################################################### |
| 9 |
|
| 10 |
#===============================# |
| 11 |
# COMPILERS # |
| 12 |
#===============================# |
| 13 |
|
| 14 |
# C++ compiler: |
| 15 |
# ------------ |
| 16 |
CXX = icc |
| 17 |
|
| 18 |
# Options for the C++ compiler to produce the optimized library: |
| 19 |
# ------------------------------------------------------------- |
| 20 |
CXXFLAGS = -O2 -DNDEBUG |
| 21 |
|
| 22 |
# Options for the C++ compiler to produce the library for debugging: |
| 23 |
# ----------------------------------------------------------------- |
| 24 |
CXXFLAGS_G = -g -132 |
| 25 |
|
| 26 |
##-Woverloaded-virtual -g |
| 27 |
CXXFLAGS_G = -g |
| 28 |
|
| 29 |
# Path for the include files: |
| 30 |
# -------------------------- |
| 31 |
INC = -I$(HOME_LORENE)/C++/Include \ |
| 32 |
-I$(HOME_LORENE)/C++/Include_extra |
| 33 |
|
| 34 |
# Converting archives to random libraries (if required, otherwise just ls) |
| 35 |
# ------------------------------------------------------------------------ |
| 36 |
RANLIB = ls |
| 37 |
|
| 38 |
# Fortran 77 compiler: |
| 39 |
# ------------------- |
| 40 |
F77 = ifc |
| 41 |
|
| 42 |
# Options for the Fortran 77 compiler to produce the optimized library: |
| 43 |
# --------------------------------------------------------------------- |
| 44 |
F77FLAGS = -O2 -132 |
| 45 |
|
| 46 |
# Options for the Fortran 77 compiler to produce the library for debugging: |
| 47 |
# ------------------------------------------------------------------------ |
| 48 |
F77FLAGS_G = -g -132 |
| 49 |
|
| 50 |
#===============================# |
| 51 |
# MAKEDEPEND # |
| 52 |
#===============================# |
| 53 |
|
| 54 |
# First line uses the C precompiler (usually called cpp) |
| 55 |
# if yours does not support the -M option try to figure out |
| 56 |
# how to output dependencies file, or use makedepend (2nd line) |
| 57 |
#-------------------------------------------------------------- |
| 58 |
#MAKEDEPEND = cpp $(INC) -M >> $(df).d $< |
| 59 |
MAKEDEPEND = touch $(df).d && makedepend $(INC) -f $(df).d $< |
| 60 |
DEPDIR = .deps |
| 61 |
|
| 62 |
#===============================# |
| 63 |
# SYSTEM LIBRARIES # |
| 64 |
#===============================# |
| 65 |
|
| 66 |
# FFT library: FFT991 in Fortran coming with Lorene |
| 67 |
# FFTW3 library (must be installed separately) |
| 68 |
# ------------------------------------------------------------------- |
| 69 |
FFT_DIR = FFT991 |
| 70 |
|
| 71 |
# C, C++ library, mathematical library and Fortran library |
| 72 |
# --------------------------------------------------------- |
| 73 |
ifeq ($(FFT_DIR),FFTW3) |
| 74 |
LIB_CXX = -lfftw3 -lCEPCF90 -lF90 -lPEPCF90 -lintrins -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -lg2c |
| 75 |
else |
| 76 |
LIB_CXX = -lCEPCF90 -lF90 -lPEPCF90 -lintrins -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -lg2c |
| 77 |
endif |
| 78 |
|
| 79 |
# Linear Algebra Package (LAPACK) library |
| 80 |
# --------------------------------------- |
| 81 |
LIB_LAPACK = -llapack -lblas |
| 82 |
|
| 83 |
# Graphical libraries: PGPLOT and X11 |
| 84 |
# ----------------------------------- |
| 85 |
# LIB_PGPLOT = -L/usr/X11R6/lib -lcpgplot -lpgplot -lX11 |
| 86 |
|
| 87 |
# GNU scientific library |
| 88 |
# ----------------------------------- |
| 89 |
LIB_GSL = -lgsl -lgslcblas |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|