Debian Codegraph @

Local_settings_examples/local_settings_linux_gcc-4_fPIC

raw
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 = g++
17
18 # Options for the C++ compiler to produce the optimized library:
19 # -------------------------------------------------------------
20 CXXFLAGS = -mtune=native -march=native -O3 -DNDEBUG -pedantic -Wall -W \
21 -Wundef -Wshadow -Wcast-qual -Wcast-align -Wconversion \
22 -Wabi -Wold-style-cast -Woverloaded-virtual -fPIC
23
24 # Options for the C++ compiler to produce the library for debugging:
25 # -----------------------------------------------------------------
26 CXXFLAGS_G = -mtune=native -march=native -g -pedantic -Wall -W -Wundef \
27 -Wshadow -Wcast-qual -Wcast-align -Wconversion \
28 -Wabi -Wold-style-cast -Woverloaded-virtual -fPIC
29
30 # Path for the include files:
31 # --------------------------
32 INC = -I$(HOME_LORENE)/C++/Include \
33 -I$(HOME_LORENE)/C++/Include_extra
34
35 # Converting archives to random libraries (if required, otherwise just ls)
36 # ------------------------------------------------------------------------
37 RANLIB = ls
38
39 # Fortran 77 compiler:
40 # -------------------
41 F77 = gfortran
42
43 # Options for the Fortran 77 compiler to produce the optimized library:
44 # ---------------------------------------------------------------------
45 F77FLAGS = -ffixed-form -ffixed-line-length-none -O2 -fPIC
46
47 # Options for the Fortran 77 compiler to produce the library for debugging:
48 # ------------------------------------------------------------------------
49 F77FLAGS_G = -ffixed-form -ffixed-line-length-none -g -fPIC
50
51 #===============================#
52 # MAKEDEPEND #
53 #===============================#
54
55 # First line uses the C precompiler (usually called cpp)
56 # if yours does not support the -M option try to figure out
57 # how to output dependencies file, or use makedepend (2nd line)
58 #--------------------------------------------------------------
59 MAKEDEPEND = cpp $(INC) -M >> $(df).d $<
60 #MAKEDEPEND = touch $(df).d && makedepend $(INC) -f $(df).d $<
61 DEPDIR = .deps
62
63 #===============================#
64 # SYSTEM LIBRARIES #
65 #===============================#
66
67 # FFT library: FFT991 in Fortran coming with Lorene
68 # FFTW3 library (must be installed separately)
69 # -------------------------------------------------------------------
70 FFT_DIR = FFTW3
71
72 # C, C++ library, mathematical library and Fortran library
73 # ---------------------------------------------------------
74 ifeq ($(FFT_DIR),FFTW3)
75 LIB_CXX = -L/usr/local/lib -lfftw3 -lgfortran -lstdc++ -lm
76 else
77 LIB_CXX = -lgfortran -lstdc++ -lm
78 endif
79
80 # Linear Algebra Package (LAPACK) library
81 # ---------------------------------------
82 LIB_LAPACK = -L/usr/local/lib -llapack -lblas
83
84 # Graphical libraries: PGPLOT, PNG and X11
85 # ----------------------------------------
86 LIB_PGPLOT = -L/usr/X11R6/lib -lcpgplot -lpgplot -lX11
87
88 # GNU scientific library
89 # -----------------------------------
90 LIB_GSL = -lgsl -lgslcblas
91
92
93
94