| 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 Tiger (intel) to use LORENE |
| 10 |
# |
| 11 |
# (1) Install the software FINK, XCode (Developer Tools) |
| 12 |
# http://fink.sourceforge.net/ |
| 13 |
# (2) Install the following packages |
| 14 |
# (Unstable distribution is necessary at this moment) |
| 15 |
# cpp4, doxygen, dx, fftw3, gsl, make, pgplot, tetex |
| 16 |
# (3) Activate GNU make by adding a link at /usr/bin |
| 17 |
# ln -s /sw/bin/make /usr/bin/gmake |
| 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 \ |
| 34 |
-framework vecLib -m386 |
| 35 |
# The combination -pedantic and -I/usr/include/architecture/i386 seems |
| 36 |
# to conflict with each other |
| 37 |
|
| 38 |
# Options for the C++ compiler to produce the library for debugging: |
| 39 |
# ----------------------------------------------------------------- |
| 40 |
CXXFLAGS_G = -g -Wall -W -Wundef -Wshadow -Wcast-qual \ |
| 41 |
-Wcast-align -Wconversion -Winline \ |
| 42 |
-Wabi -Wold-style-cast -Woverloaded-virtual \ |
| 43 |
-framework vecLib -m386 |
| 44 |
# The combination -pedantic and -I/usr/include/architecture/i386 seems |
| 45 |
# to conflict with each other |
| 46 |
|
| 47 |
# Path for the include files: |
| 48 |
# -------------------------- |
| 49 |
INC = -I$(HOME_LORENE)/C++/Include \ |
| 50 |
-I$(HOME_LORENE)/C++/Include_extra \ |
| 51 |
-I/usr/include/c++/4.0.0 -I/usr/include/c++/4.0.0/i686-apple-darwin8 \ |
| 52 |
-I/usr/include/architecture/i386 \ |
| 53 |
-I/System/Library/Frameworks/vecLib.framework/Versions/Current/Headers \ |
| 54 |
-I/sw/include |
| 55 |
|
| 56 |
# Converting archives to random libraries (if required, otherwise just ls) |
| 57 |
# ------------------------------------------------------------------------ |
| 58 |
RANLIB = ranlib |
| 59 |
|
| 60 |
# Fortran 77 compiler: |
| 61 |
# ------------------- |
| 62 |
F77 = /sw/bin/gfortran |
| 63 |
|
| 64 |
# Options for the Fortran 77 compiler to produce the optimized library: |
| 65 |
# --------------------------------------------------------------------- |
| 66 |
F77FLAGS = -ffixed-form -ffixed-line-length-none -O2 -framework vecLib |
| 67 |
|
| 68 |
# Options for the Fortran 77 compiler to produce the library for debugging: |
| 69 |
# ------------------------------------------------------------------------ |
| 70 |
F77FLAGS_G = -ffixed-form -ffixed-line-length-none -g -framework vecLib |
| 71 |
|
| 72 |
#===============================# |
| 73 |
# MAKEDEPEND # |
| 74 |
#===============================# |
| 75 |
|
| 76 |
# First line uses the C precompiler (usually called cpp) |
| 77 |
# if yours does not support the -M option try to figure out |
| 78 |
# how to output dependencies file, or use makedepend (2nd line) |
| 79 |
#-------------------------------------------------------------- |
| 80 |
#MAKEDEPEND = cpp $(INC) -M >> $(df).d $< |
| 81 |
MAKEDEPEND = touch $(df).d && makedepend $(INC) -f $(df).d $< |
| 82 |
DEPDIR = .deps |
| 83 |
|
| 84 |
#===============================# |
| 85 |
# SYSTEM LIBRARIES # |
| 86 |
#===============================# |
| 87 |
|
| 88 |
# FFT library : FFT991 in Fortran coming with Lorene |
| 89 |
# FFTW3 library (must be installed separately) |
| 90 |
# --------------------------------------------------------------- |
| 91 |
FFT_DIR = FFTW3 |
| 92 |
|
| 93 |
# C, C++ library, mathematical library and Fortran library |
| 94 |
# --------------------------------------------------------- |
| 95 |
ifeq ($(FFT_DIR),FFTW3) |
| 96 |
LIB_CXX = -L/sw/lib -L/sw/lib/gcc4.2/lib -lfftw3 -lgfortran -lstdc++ -lm |
| 97 |
else |
| 98 |
LIB_CXX = -L/sw/lib/gcc4.2/lib -lgfortran -lstdc++ -lm |
| 99 |
endif |
| 100 |
|
| 101 |
# Linear Algebra Package (LAPACK) library |
| 102 |
# (Using the libraries included in the Developer Tools) |
| 103 |
# --------------------------------------- |
| 104 |
LIB_LAPACK = \ |
| 105 |
-L/System/Library/Frameworks/vecLib.framework/Versions/Current \ |
| 106 |
-llapack -lblas |
| 107 |
|
| 108 |
# Graphical libraries: PGPLOT and X11 (Aquaterm) |
| 109 |
# (1) pgplot is installed in /sw/lib |
| 110 |
# (2) Requires the following option to adjust pgplot |
| 111 |
# -framework Foundation -framework AppKit -laquaterm |
| 112 |
# ----------------------------------- |
| 113 |
LIB_PGPLOT = -L/usr/X11R6/lib -L/sw/lib -L/sw/lib/pgplot \ |
| 114 |
-lcpgplot -lpgplot -lpng -lX11 -framework Foundation \ |
| 115 |
-framework AppKit -laquaterm -lg95 |
| 116 |
|
| 117 |
# GNU scientific library |
| 118 |
# (1) gsl is installed in /sw/lib |
| 119 |
# ----------------------------------- |
| 120 |
LIB_GSL = -L/sw/lib -lgsl -lgslcblas |