Makefiles for deal.II projects

The file common/Make.global_options exports several make variables to other Makefiles which include it. You will want to include this file into the Makefiles of your project to use the same compiler flags and to access the paths to libraries. This page documents available flags, documents the values which are used in your local installation, and shows generic Makefiles which you may want to use in your own projects.

Available flags

Following is a list of all available flags which are exported to other Makefiles, sorted into different categories:

Values of available flags

In the copy of the library (your local one, or the one on the deal.II homepage) to which the file which you are presently viewing belongs, the flags documented above have the following values:

Generic Makefiles

In this section, we provide templates for Makefiles for applications based on the deal.II libraries. They show how to use the information provided by the variables explained above.

At present, we have three Makefiles, one for small projects consisting of only one C++ file, and one for large projects. Furthermore, there is a Makefile in a different style. Have a look at them and see what seem convenient to you. All Makefiles need slight modifications before they will work in your project. The places for modifications are marked.


The deal.II mailing list

Valid HTML 4.01!