next up previous contents
Next: Other makefile variables Up: Adding Source Files Previous: make.code.defn based thorn building   Contents

Makefile based thorn building

This method gives you the ultimate responsibility. The only requirement is that a library called $NAME be created by the Makefile.

The makefile is passed the following variables

$(CCTK_HOME)
the main Cactus directory

$(TOP)
the configuration directory

$(SRCDIR)
the directory in which the source files can be found

$(CONFIG)
the directory containing the configuration files

$(THORN)
the thorn name

$(SCRATCH_BUILD)
the scratch directory where Fortran 90 module files should end up if they need to be seen by other thorns.

$(NAME)
the name of the library to be built

and has a working directory of <config>/build/<thorn_name> .