Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.27 KB

compilation.rst

File metadata and controls

47 lines (27 loc) · 1.27 KB

Compilation

To compile the AutoMix sampler for the examples included within the AutoMix package, the user should edit the Makefile (supplied) if required (for example the compile flags, or libraries)

Optimized Compilation

Typing:

make

in the shell, in the AutoMix folder where the AutoMix distribution was unzipped to, will compile all the programs that were distributed with this package.

Compile with Debug Information

To compile all programs with debug information (-g flag enabled), type:

make DEBUG=1

The supplied programs have all been debugged but we acknowledge that use of a debugger can often help to understand how the program works.

Any of the programs can also be made individually, with the appropriate make command.

Example

For example:

make amtoy1

will make amtoy1. See the Makefile for further examples.

The executables have the form amNAME, where NAME is the name of the example.

Clean

To remove the executables and object (.o) files, type:

make clean   

To compile the sampler for a new example, the Makefile can be edited to contain the appropriate commands (remembering to include command for compiling any dependencies) for the new program.