Makefiles

previous up next

Ariane's Makefiles

To manage the updating of every software products in the Ariane Environment the Gnu Make has been choosen. After a broad survey of the available tools, the Gnu version of make has proven to be the best program :

The complete documentation about the Gnu Make is available in the online manual..

Running make

The more convenient way of running make is to define an alias like : alias make='make.gnu -I$APPLI/include -I$COROOT/include DEBUG:=yes'
APPLI being an environment variable pointing to the root of your current application (ex : export APPLI=/home/madmax/soft/Ariane) and COROOT a variable pointing to the directory where the files of your departement are kept (ex : export COROOT=/usr/local). The variable DEBUG is set to yes to allow compilation with the option -g. With this sort of definitions, you will have only to type make to run the command.

Basic Makefiles

After having prepared the necessary common makefiles which have to be included by every applications, it is very straightforward to built the specific Makefiles for a given application.

Included makefiles

The pieces of makefiles which are included by the Makefiles located in the users directories are the following :