Debian Codegraph @

Local_settings_examples/local_settings_linux_old

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