Debian Codegraph @

debian/local_settings

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