Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
86dfb133
Commit
86dfb133
authored
15 years ago
by
Jorrit Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
Document ${MODULE}_*FLAGS, ${MODULE}_LIBS, DUNE_*FLAGS, DUNE_LIBS,
ALL_PKG_*FLAGS and ALL_PKG_LIBS. [[Imported from SVN: r5826]]
parent
6ab39d37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/buildsystem/buildsystem.tex
+38
-0
38 additions, 0 deletions
doc/buildsystem/buildsystem.tex
with
38 additions
and
0 deletions
doc/buildsystem/buildsystem.tex
+
38
−
0
View file @
86dfb133
...
...
@@ -852,6 +852,44 @@ target_LIBADD =
preprocessor defines:
\texttt
{
MPI
\_
2
}
, defined if the detected MPI supports
the MPI-2 standard.
\texttt
{
HAVE
\_
MPI
}
, 1 if MPI is detected and enabled.
It also defines the automake conditional
\texttt
{
MPI
}
.
\item
[\dune modules]
For each
\dune
module there are the variables
\texttt
{
\textit
{
MODULE
}
\_
CPPFLAGS
}
,
\texttt
{
\textit
{
MODULE
}
\_
LDFLAGS
}
and
\texttt
{
\textit
{
MODULE
}
\_
LIBS
}
. They contain everything to use that module
with its most basic functionality. For instance, for
\texttt
{
dune-grid
}
they do not contain the stuff for MPI, Alberta, ALU Grid or UG, even if
those were detected. They do contain the stuff for
\texttt
{
dune-common
}
,
possibly with duplicates removed, since that is absolutely required for the
operation of
\texttt
{
dune-grid
}
. Example use:
\begin{lstlisting}
[language=make]
foo
_
SOURCES = foo.cc
foo
_
CPPFLAGS =
$
(
AM
_
CPPFLAGS
)
\
$
(UG
_
CPPFLAGS)
\
$
(
DUNE
_
GRID
_
CPPFLAGS
)
foo
_
LDFLAGS
=
$
(AM
_
LDFLAGS)
\
$
(
UG
_
LDFLAGS
)
\
$
(DUNE
_
GRID
_
LDFLAGS)
foo
_
LDADD =
\
$
(
DUNE
_
GRID
_
LIBS
)
\
$
(UG
_
LIBS)
\
$
(
LDADD
)
\end
{
lstlisting
}
%$\end{lstlisting}
Note that there are no such variables for the current module
--
these
variables are used in the process of building the current module, so that
module is incomplete when detecting these variables. Note alse that by
``
\dune
module'' we mean a software package which uses the
\dune
buildsystem, not one of the official dune modules.
\item
[
Basic
\dune
]
To use the basic functionality af all detected
\dune
modules, the variables
\texttt
{
DUNE
\_
CPPFLAGS
}
,
\texttt
{
DUNE
\_
LDFLAGS
}
and
\texttt
{
DUNE
\_
LIBS
}
may be used. They collect the contents of all
\dune
module variables, possibly with duplicates removed.
\item
[
Extended
\dune
]
To use
\dune
with all functionality that requires
external libraries, the variables
\texttt
{
ALL
\_
PKG
\_
CPPFLAGS
}
,
\texttt
{
ALL
\_
PKG
\_
LDFLAGS
}
and
\texttt
{
ALL
\_
PKG
\_
LIBS
}
may be used. They
provide everything neccessary to build with any external library detected by
configure. In the case of Alberta a choise must be made between
2
D and
3
D.
Here the
\texttt
{
ALL
\_
PKG
\_
*
}
variables just follow the choice of the
corresponding
\texttt
{
ALBERTA
\_
*
}
variables.
\end
{
description
}
\minisec
{
Conditional builds
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment