I have never been clearly understand all these linking/building/dependency business. Now, I am trying to build the FreeType library (which is in C++), into the \*.a library file for the iPhone (because another library I am trying to use, openFrameworks, would depend on FreeType).

I know that to compile C++ with iPhone I simply need to rename \*.cpp to \*.mm. (I have tried with some simply programs in main() and it works) **But how can I build the library in Xcode then** ? (without the main() I suppose)

On the other hand, it would be great if you guys could recommend some books or documents on such linking/building topics, which I found myself most confused about. 

PS. I have already got the paid version of Xcode and some sample apps compiled onto the iPhone.