waf is a python-based build tool. Extensive information about how waf works, how it can be used can be found online from its website. Most notably, users will find the so-called Waf book as well as API documentation about waf.

Information about how waf is used in ns-3 can be found online too.