Writing makefile for newlib 1.17.0

hi,
i am using newlib 1.17.0 by redhat,for one of my ARM 7 projects. There are a number of functions in newlib that are not relevant to my project.I wish to cut down on the size of the C library by removing these functions.

I am aware writing the appropriate rules in Makefile will do my job.
But,being new to Makefiles,i don't know how to go about it.

Can anyone please refer a site that can ably solve my problem?
Or,if anyone has done such a thing before,can you please help me out?
Is there a readymade Makefile available on the internet?

Any help is appreciated.
Thank you.

you can get an example of make file , but you need to make changes to fit right to your
project
some how I think that the following link is a good url
Tutorial on writing makefiles

hi,
The tutorial is definitely a great help. Thanks.:slight_smile:

Actually,the Makefile that comes with newlib is partially completed.All the variables have been initialized and the target-dependency relations have been written.But,the rules section has been left blank,so that the user can write rules as per his requirement.
Do you know where I can get an example Makefile of Newlib 1.17.0, so that i know what rules to write?

Thank you.

---------- Post updated 03-05-10 at 12:36 PM ---------- Previous update was 03-04-10 at 05:30 PM ----------

hi,
the tutorial is really good. Thank you :slight_smile: