Next: Makefile based thorn building
Up: Adding Source Files
Previous: Adding Source Files
Contents
make.code.defn based thorn building
This is the standard way to compile your thorn's source files.
The Cactus make system looks for a file called make.code.defn in that
directory (if there is no file called Makefile in the src directory). At its simplest, this file contains two lines
- SRCS = <list of all source files in this directory>
- SUBDIRS = <list of all subdirectories, including
subdirectories of subdirectories>
Each subdirectory listed should then have a make.code.defn file
containing just a SRCS = line, a SUBDIRS = line will
be ignored.
In addition, each directory can have a make.code.deps file, which,
for files in that directory, can contain additional make rules and dependencies
for files in that directory. See the GNU Make documentation for complete details of the
syntax.
|