Search This Blog

Tuesday, March 17, 2009

Better build system

I was using “make”( to build and clean my projects. The makefiles grew bigger enough to not maintainable state. Recently I came to know about waf( from a forum, so decided to give a try. I went through the waf documentation and it took 2 hours to understand how it works and it took 2 days to convert all my makefiles to waf wscripts and wscript_build files.

The basic problem with make was I have write rules to how to build object files from source and

then to clean I have to write how to delete the object files. With waf the problem is simplified, you have to tell what all source files and it will take care of how to compile and link. It will also take care of how to clean the project and the dependency between files are also taken care, so no need for gcc –M and dependency files etc. The feature I liked in waf is it has colored output with progress bar :)

The other problem solved in Ace project compilation was build configuration. Waf will configure the project for the first time, so it solved the different cross compiler required for Ace OS.

Waf( is really good alternative/replacement for make tools.


vishnu said...

Hi sam u r blow is simply awsome .. its amazing and lots of info in it .. do u have any idea of base porting of OS .. ?