This is an old revision of the document!
Table of Contents
Compiling potfit using waf
potfit uses the waf build system. It is fast and easy to use. Since it is written in Python it requires a Python runtime to be available.
Basics
The potfit source tree contains the waf binary in its root folder. It is used for all build related operations like configuration, building and cleanup. It provides an exhaustive help page when called with the –help argument.
For building potfit there are two stages, first the configuration stage and then the build stage. The configuration stage checks if all requirements for a building a binary with the requested options is possible and the build stage then invokes the compiler to create the binary.
Configuration
Do it like this:
./waf configure -i pair -m apot
Build
Do it like this:
./waf