This file is indexed.

/usr/share/deal.II/Make.global_options is in libdeal.ii-dev 6.3.1-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
# $Id: Make.global_options.in 21091 2010-05-07 12:40:28Z young $

###############################################################################
## Please note:
##   The ./configure script generates Make.global_options from
##   Make.global_options.in, so if you want to change something,
##   then do it in the latter file and re-run ./configure in the
##   top level directory
##
##
##   This file exports several variables. They are documented in
##   the file  doc/development/makefiles.html. If you add a new
##   variable, make sure it is documented in
##   doc/development/makefiles.1.html and listed in
##   doc/development/Makefile.
###############################################################################



######################################################
# the following lines will be replaced by the output
# of ./configure

D                    = /usr
CXX                  = /usr/bin/mpicxx 
GXX-VERSION          = gcc4.6
GXX-VERSION-DETAILED = gcc4.6.1
CC                   = /usr/bin/mpicc 
CC-VERSION           = gcc4.6
SHLIBLD              = /usr/bin/mpicxx 
SHLIBFLAGS           = -shared
AR                   = /usr/bin/ar
RANLIB               = /usr/bin/ranlib
LDFLAGS              = -L/usr/lib   -Wl,-Bsymbolic-functions -pthread -ldl -rdynamic -L/usr/lib -L/usr/lib -L/usr/lib -lmetis
F77                  = /usr/bin/gfortran
F77-VERSION          = gcc4.6
F77LIBS              =  -lgfortran
LIBS                 = -llapack -lnetcdf_c++ -lnetcdf -lz -lblas   -lgfortran -lamd -lumfpack
LIBDIR               = $D/lib
PERL                 = /usr/bin/perl
enable-threads       = yes
enable-shared        = yes
enable-parser        = yes
DEAL_II_VERSION      = 6.3.1
DEAL_II_MAJOR        = 6
DEAL_II_MINOR        = 3

USE_CONTRIB_PETSC    = yes
DEAL_II_PETSC_DIR    = /usr/lib/petsc
DEAL_II_PETSC_ARCH   = linux-gnu-c-opt
DEAL_II_PETSC_VERSION_MAJOR    = 3
DEAL_II_PETSC_VERSION_MINOR    = 1
DEAL_II_PETSC_VERSION_SUBMINOR = 0
DEAL_II_PETSC_MPIUNI_LIB = 

USE_CONTRIB_SLEPC    = yes
DEAL_II_SLEPC_DIR    = /usr/lib/slepc
DEAL_II_SLEPC_VERSION_MAJOR    = 3
DEAL_II_SLEPC_VERSION_MINOR    = 1
DEAL_II_SLEPC_VERSION_SUBMINOR = 0

USE_CONTRIB_TRILINOS = yes
DEAL_II_TRILINOS_INCDIR = /usr/include/trilinos
DEAL_II_TRILINOS_LIBDIR = /usr/lib
DEAL_II_TRILINOS_SHARED = yes
DEAL_II_TRILINOS_STATIC = 

USE_CONTRIB_MUMPS  = no
DEAL_II_MUMPS_DIR  = 
DEAL_II_SCALAPACK_DIR = 
DEAL_II_BLACS_DIR  = 
DEAL_II_BLACS_ARCH = 

USE_CONTRIB_METIS    = yes
DEAL_II_METIS_LIBDIR = /usr/lib

USE_CONTRIB_HSL      = 
USE_CONTRIB_UMFPACK  = 

TARGET               = i686-pc-linux-gnu

######################################################
# now configuration for compiler flags, paths, etc

# path for libraries

LIBPATH    += $(addprefix -L,$(LIBDIR))

static-lib-suffix = .a
shared-lib-suffix = .so

ifeq ($(enable-shared),yes)
   lib-suffix = $(shared-lib-suffix)
else
   lib-suffix = $(static-lib-suffix)
endif

# add search path for libraries to make dependencies
vpath %.a $(LIBDIR)
vpath %.so $(LIBDIR)

OBJEXT     = o
EXEEXT     = 

# dealing with shared libraries
ifeq ($(shared-lib-suffix),.so)
  DEAL_II_SHLIB_NAME = lib$(1)$(shared-lib-suffix).$(DEAL_II_VERSION)
else
  DEAL_II_SHLIB_NAME = lib$(1).$(DEAL_II_VERSION)$(shared-lib-suffix)
endif
ifeq (yes,yes)
  DEAL_II_ADD_SONAME = -Wl,-soname,$(call DEAL_II_SHLIB_NAME,$(1))
else
  ifeq (no,yes)
    DEAL_II_ADD_SONAME = -Wl,-dynamic,-install_name -Wl,$(call DEAL_II_SHLIB_NAME,$(1))
  else
    DEAL_II_ADD_SONAME =
  endif
endif

# since the PETSc libs are called the same for both debug and
# optimized mode, we have to have a trick to let the executable
# know which ones are the right (since apparently LD_LIBRARY_PATH
# can't do the trick unless you want to reset it every time
# you switch from debug to optimized mode). To avoid messing with
# -Wl,-rpath in our linker flags, we create one convenience library
# for all PETSc libraries in our own lib directory, and have this one
# twiddle with whatever is necessary to link in PETSc.
ifeq ($(USE_CONTRIB_PETSC),yes)
  ifeq ($(DEAL_II_PETSC_VERSION_MAJOR),2)
    lib-contrib-petsc-path.g = $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)
    lib-contrib-petsc-path.o = $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)
  else
    lib-contrib-petsc-path.g = $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib
    lib-contrib-petsc-path.o = $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib
  endif

  # First up is a twiddle for Darwin/MacOSX
  ifeq ($(findstring darwin,$(TARGET)),)
    lib-contrib-petsc.g = $(LIBDIR)/libpetscall.g$(lib-suffix)
    lib-contrib-petsc.o = $(LIBDIR)/libpetscall$(lib-suffix)
  else
    ifeq ($(enable-shared),yes)
      # Starting with PETSc versions 2.3.*:
      ifeq ($(DEAL_II_PETSC_VERSION_MAJOR),2)
        lib-contrib-petsc.g = $(shell echo $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)/*$(lib-suffix))
        lib-contrib-petsc.o = $(shell echo $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)/*$(lib-suffix))
      else
        # which is the same for PETSc 3.0.0:
        ifeq ($(DEAL_II_PETSC_VERSION_MAJOR)$(DEAL_II_PETSC_VERSION_MINOR),30)
          lib-contrib-petsc.g = $(shell echo $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/*$(lib-suffix))
          lib-contrib-petsc.o = $(shell echo $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/*$(lib-suffix))
        else
          # but after that (petsc-3.1++), we can use the simpler PETSc
          # default "--with-single-library=1" like this:
          lib-contrib-petsc.g = $(shell echo $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/libpetsc$(lib-suffix))
          lib-contrib-petsc.o = $(shell echo $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/libpetsc$(lib-suffix))
        endif
      endif # if PETSC_VERSION 
    else
      # and finally this goes for static libraries
      lib-contrib-petsc.g = $(LIBDIR)/libpetscall.g$(lib-suffix)
      lib-contrib-petsc.o = $(LIBDIR)/libpetscall$(lib-suffix)
    endif
  endif
endif # USE_CONTRIB_PETSC

ifeq ($(USE_CONTRIB_SLEPC),yes)
  lib-contrib-slepc    = $(DEAL_II_SLEPC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/libslepc$(lib-suffix)
endif

# same for metis, except that there is only one library in that case
include-path-metis = $(DEAL_II_METIS_INCDIR)
ifeq ($(USE_CONTRIB_METIS),yes)
  INCLUDE += -I$(include-path-metis)
  lib-contrib-metis = $(DEAL_II_METIS_LIBDIR)/libmetis.so
endif

# List all trilinos libraries that we want to link with. These must be sorted
# in dependency order to allow for static linking where the order on the
# command line matters. Note that we check the availability of all these
# libraries in aclocal.m4; the two lists should therefore be kept in
# sync.
ifeq ($(USE_CONTRIB_TRILINOS),yes)
  DEAL_II_TRILINOS_LIBS = \
		stratimikosamesos \
		stratimikosaztecoo \
		stratimikosifpack \
		stratimikosml \
		stratimikos \
		ml \
		amesos \
		belos \
		ifpack \
                aztecoo \
		rtop \
		sacado \
		thyra \
		thyraepetra \
		thyraepetraext \
		epetraext \
		epetra \
		teuchos \
		triutils

  ifeq ($(enable-shared),yes)
    lib-contrib-trilinos = \
       $(addsuffix $(shared-lib-suffix), $(addprefix $(DEAL_II_TRILINOS_LIBDIR)/libtrilinos_, \
                                                     $(DEAL_II_TRILINOS_LIBS)))
  else
    lib-contrib-trilinos = \
       $(addsuffix $(static-lib-suffix), $(addprefix $(DEAL_II_TRILINOS_LIBDIR)/libtrilinos_, \
                                                     $(DEAL_II_TRILINOS_LIBS)))
  endif
endif

# Using dealii with MUMPS means we need to link the MUMPS library as
# well as its dependencies, ie, SCALAPCK and BLACS
ifeq ($(USE_CONTRIB_MUMPS),yes)
  lib-contrib-mumps  = $(DEAL_II_MUMPS_DIR)/lib/libdmumps.a \
                       $(DEAL_II_MUMPS_DIR)/lib/libmumps_common.a \
                       $(DEAL_II_MUMPS_DIR)/lib/libpord.a 
  lib-contrib-mumps += $(DEAL_II_SCALAPACK_DIR)/libscalapack.a
  lib-contrib-mumps += $(DEAL_II_BLACS_DIR)/LIB/blacsCinit_$(DEAL_II_BLACS_ARCH).a \
                       $(DEAL_II_BLACS_DIR)/LIB/blacsF77init_$(DEAL_II_BLACS_ARCH).a \
                       $(DEAL_II_BLACS_DIR)/LIB/blacs_$(DEAL_II_BLACS_ARCH).a
endif

# deal with HSL; this should have been $(lib-contrib-hsl) but for a long time we
# accidentally had $(lib-hsl) -- so we simply make both symbols available
ifeq ($(USE_CONTRIB_HSL),yes)
  lib-hsl = $(LIBDIR)/libhsl$(lib-suffix)
  lib-contrib-hsl = $(lib-hsl)
endif

# need to link with libtbb if we're using threads
ifeq ($(enable-threads),yes)
  lib-contrib-tbb.g = -ltbb
  lib-contrib-tbb.o = -ltbb
endif

# set paths to all the libraries we need:
lib-base.o     = $(LIBDIR)/libbase$(lib-suffix) \
		 $(lib-contrib-trilinos) \
		 $(lib-contrib-tbb.o)
lib-base.g     = $(LIBDIR)/libbase.g$(lib-suffix) \
		 $(lib-contrib-trilinos) \
		 $(lib-contrib-tbb.g)

lib-lac.o      = $(LIBDIR)/liblac$(lib-suffix) \
		 $(lib-hsl) \
		 $(lib-contrib-petsc.o) $(DEAL_II_PETSC_MPIUNI_LIB) \
                 $(lib-contrib-slepc) \
                 $(lib-contrib-mumps) \
		 $(lib-contrib-metis)
lib-lac.g      = $(LIBDIR)/liblac.g$(lib-suffix) \
		 $(lib-hsl) \
		 $(lib-contrib-petsc.g) $(DEAL_II_PETSC_MPIUNI_LIB) \
                 $(lib-contrib-slepc) \
                 $(lib-contrib-mumps) \
		 $(lib-contrib-metis)

lib-deal2-1d.o = $(LIBDIR)/libdeal_II_1d$(lib-suffix)
lib-deal2-2d.o = $(LIBDIR)/libdeal_II_2d$(lib-suffix)
lib-deal2-3d.o = $(LIBDIR)/libdeal_II_3d$(lib-suffix)

lib-deal2-1d.g = $(LIBDIR)/libdeal_II_1d.g$(lib-suffix)
lib-deal2-2d.g = $(LIBDIR)/libdeal_II_2d.g$(lib-suffix)
lib-deal2-3d.g = $(LIBDIR)/libdeal_II_3d.g$(lib-suffix)


# include paths. do not take into account a possibly existing
# environment variable, since the compiler will evaluate the value of
# that anyway at compile time
include-path-petsc           = $(DEAL_II_PETSC_DIR)/include
ifeq ($(DEAL_II_PETSC_VERSION_MAJOR),2)
  include-path-petsc-bmake   = $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)
else
  include-path-petsc-bmake   = $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/include
endif
include-path-slepc           = $(DEAL_II_SLEPC_DIR)/include
include-path-slepc-conf      = $(DEAL_II_SLEPC_DIR)/$(DEAL_II_PETSC_ARCH)/conf
include-path-trilinos        = $(DEAL_II_TRILINOS_INCDIR)
include-path-mumps           = $(DEAL_II_MUMPS_DIR)/include

# include paths as command line flags. while compilers allow a space between
# the '-I' and the actual path, we also send these flags to the
# make_dependencies program that doesn't support the extra space.
INCLUDE = -I$D/base/include -I$D/lac/include -I$D/include/deal.II \
	  -I/usr/include/suitesparse -I/usr/include -I/usr/contrib/boost/include   \
          -I/usr/include/suitesparse  \
	  -I$D/contrib

# add PETSc, SLEPSc, and Trilinos include paths if necessary. this rule
# (and the one further down below to get correct flags) should eventually
# be replaced by something where we do not blindly include PETSc make files
# (and thus import all of its variables), but rather set up a scheme to
# extract these values upon configuration
#
# also, note that this only works for PETSc before 2.3 :-]
ifeq ($(USE_CONTRIB_PETSC),yes)
  ifeq ($(DEAL_II_PETSC_VERSION_MINOR),2)
    include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/packages
  endif
  INCLUDE += -I$(include-path-petsc) -I$(include-path-petsc-bmake)\
             $(MPI_INCLUDE)
endif

ifeq ($(USE_CONTRIB_SLEPC),yes)
  INCLUDE += -I$(include-path-slepc) -I$(include-path-slepc-conf)
endif

ifeq ($(USE_CONTRIB_TRILINOS),yes)
  INCLUDE += -I$(include-path-trilinos)
endif

ifeq ($(USE_CONTRIB_MUMPS),yes)
  INCLUDE += -I$(include-path-mumps)
endif

ifeq ($(enable-threads),yes)
  INCLUDE += -I/usr/include/tbb
endif

# compiler flags for debug and optimized mode
CXXFLAGS.g   = -DHAVE_CONFIG_H -DHAVE_ISNAN -ggdb -g -O2 -DBOOST_NO_HASH -DBOOST_NO_SLIST -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Woverloaded-virtual -Wsynth -Wsign-compare -Wswitch -ftemplate-depth-128 -Wno-long-long -std=c++0x -pthread -D_REENTRANT -fPIC -Wno-unused -Wno-overloaded-virtual -Wno-extra  $(INCLUDE)
CXXFLAGS.o   = -DHAVE_CONFIG_H -DHAVE_ISNAN -g -O2 -DBOOST_NO_HASH -DBOOST_NO_SLIST -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -Wuninitialized -felide-constructors -ftemplate-depth-128 -std=c++0x -pthread -D_REENTRANT -fPIC  $(INCLUDE)

F77FLAGS.g   = -DHAVE_CONFIG_H -g -O2 -ggdb -DDEBUG -pedantic -W -Wall -fPIC  $(INCLUDE)
F77FLAGS.o   = -DHAVE_CONFIG_H -g -O2 -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -fPIC  $(INCLUDE)

# compile flags for C compiler
CFLAGS = -g -O2 -O3 -funroll-loops -funroll-all-loops -fstrict-aliasing -fPIC

# if in debug mode, add TBB assertions
ifeq ($(enable-threads),yes)
  CXXFLAGS.g += -DTBB_DO_ASSERT=1
endif


# PETSc wants to see a whole lot of other flags being passed...
ifeq ($(USE_CONTRIB_PETSC),yes)
  # set PETSC_DIR and PETSC_ARCH to be used in variables file
  PETSC_DIR  = $(DEAL_II_PETSC_DIR)
  PETSC_ARCH = $(DEAL_II_PETSC_ARCH)
  ifeq ($(DEAL_II_PETSC_VERSION_MAJOR),2)
    ifeq ($(DEAL_II_PETSC_VERSION_MINOR),2)
      include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/variables
    else
      include $(DEAL_II_PETSC_DIR)/bmake/common/variables
    endif
  else
    include $(DEAL_II_PETSC_DIR)/conf/variables
  endif
  CXXFLAGS.g += $(GCXX_PETSCFLAGS)
  CXXFLAGS.o += $(OCXX_PETSCFLAGS)
endif

ifneq ($(enable-threads),no)
  MT = MT
else
  MT = ==
endif