How to program sam7x

hi everyone, I new in programming sam7x. I have already program some example on my mic. However, now I i want to program my own program but i could have done it because I am not sure what files i need to create and how to create it. i have already programmed makefile, but i do not have any idea what else to do. I am using eclipse to develop and program my mic with yagartoo chain tool.

i hope that you can help me.

Thanks