| 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 |
# Requirements for Macintosh OS X.6 (Intel Core 2 Duo) to use |
| 10 |
# LORENE: |
| 11 |
# (1) install the software MacPorts (http://www.macports.org/) |
| 12 |
# and XCode (Developer Tools); |
| 13 |
# (2) install the following packages (using MacPorts): |
| 14 |
# cpp4, doxygen, dx, fftw3, gfortran, gsl, pgplot, tetex; |
| 15 |
# (3) activate GNU make (which comes with the Developer Tools) |
| 16 |
# by adding the link |
| 17 |
# ln -s /Developer/usr/bin/make /usr/bin/make |
| 18 |
# |
| 19 |
############################################################### |
| 20 |
|
| 21 |
#===============================# |
| 22 |
# COMPILERS # |
| 23 |
#===============================# |
| 24 |
|
| 25 |
# C++ compiler: |
| 26 |
# ------------ |
| 27 |
CXX = /usr/bin/g++ |
| 28 |
|
| 29 |
# Options for the C++ compiler to produce the optimized library: |
| 30 |
# ------------------------------------------------------------- |
| 31 |
CXXFLAGS = -O2 -DNDEBUG -Wall -W -Wundef -Wshadow -Wcast-qual \ |
| 32 |
-Wcast-align -Wconversion -Winline \ |
| 33 |
-Wabi -Wold-style-cast -Woverloaded-virtual -pedantic |
| 34 |
|
| 35 |
# Options for the C++ compiler to produce the library for debugging: |
| 36 |
# ----------------------------------------------------------------- |
| 37 |
CXXFLAGS_G = -g -Wall -W -Wundef -Wshadow -Wcast-qual \ |
| 38 |
-Wcast-align -Wconversion -Winline \ |
| 39 |
-Wabi -Wold-style-cast -Woverloaded-virtual |
| 40 |
|
| 41 |
# Path for the include files: |
| 42 |
# -------------------------- |
| 43 |
INC = -I$(HOME_LORENE)/C++/Include \ |
| 44 |
-I$(HOME_LORENE)/C++/Include_extra \ |
| 45 |
-I/opt/local/include \ |
| 46 |
-I/usr/local/include |
| 47 |
|
| 48 |
# Converting archives to random libraries (if required, otherwise just ls) |
| 49 |
# ------------------------------------------------------------------------ |
| 50 |
#RANLIB = ranlib |
| 51 |
RANLIB = ls |
| 52 |
|
| 53 |
# Fortran 77 compiler |
| 54 |
# ------------------- |
| 55 |
F77 = /usr/local/bin/gfortran |
| 56 |
|
| 57 |
# Options for the Fortran 77 compiler to produce the optimized library: |
| 58 |
# --------------------------------------------------------------------- |
| 59 |
F77FLAGS = -ffixed-form -ffixed-line-length-none -O2 -m64 |
| 60 |
|
| 61 |
# Options for the Fortran 77 compiler to produce the library for debugging: |
| 62 |
# ------------------------------------------------------------------------ |
| 63 |
F77FLAGS_G = -ffixed-form -ffixed-line-length-none -g -m64 |
| 64 |
|
| 65 |
#===============================# |
| 66 |
# MAKEDEPEND # |
| 67 |
#===============================# |
| 68 |
|
| 69 |
# First line uses the C precompiler (usually called cpp) |
| 70 |
# if yours does not support the -M option try to figure out |
| 71 |
# how to output dependencies file, or use makedepend (2nd line) |
| 72 |
#-------------------------------------------------------------- |
| 73 |
MAKEDEPEND = cpp-4.2 $(INC) -M >> $(df).d $< |
| 74 |
#MAKEDEPEND = touch $(df).d && makedepend $(INC) -f $(df).d $< |
| 75 |
DEPDIR = .deps |
| 76 |
|
| 77 |
#===============================# |
| 78 |
# SYSTEM LIBRARIES # |
| 79 |
#===============================# |
| 80 |
|
| 81 |
# FFT library |
| 82 |
# --------------------------------------------------------------- |
| 83 |
FFT_DIR = FFTW3 |
| 84 |
|
| 85 |
# C, C++ library, mathematical library and Fortran library |
| 86 |
# --------------------------------------------------------- |
| 87 |
LIB_CXX = -L/usr/local/lib/x86_64/ \ |
| 88 |
-L/opt/local/lib \ |
| 89 |
-lstdc++ -lm -lfftw3 -lgfortran |
| 90 |
|
| 91 |
# Linear Algebra Package (LAPACK) library |
| 92 |
# (Using the libraries included in the Developer Tools) |
| 93 |
# --------------------------------------- |
| 94 |
LIB_LAPACK = -llapack -lblas |
| 95 |
|
| 96 |
# Graphical libraries: PGPLOT and X11. |
| 97 |
# Requires the following option to adjust pgplot |
| 98 |
# -framework Foundation -framework AppKit |
| 99 |
# ----------------------------------- |
| 100 |
LIB_PGPLOT = -L/opt/local/lib \ |
| 101 |
-lpng -lX11 \ |
| 102 |
-framework Foundation -framework AppKit \ |
| 103 |
-lcpgplot -lpgplot |
| 104 |
|
| 105 |
# GNU scientific library |
| 106 |
# ----------------------------------- |
| 107 |
LIB_GSL = -lgsl -lgslcblas |