April 20, 2010 3:02 AM

Follow any existing application's Makefile. There you get information about how to write Makefile for cross compilation. It is very straight forward way. You can compile that code into your distribution.