IIRC, you can generate a static library simply by not having a main function anywhere in your program. At least, that's what happens when I forget to link in the module with main in it :P -- Daniel