Debian Codegraph @

Local_settings_examples/local_settings_linux_PGI

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