I am adding a new file to a existing project.
And project is built using makefile. While adding new file to makefile, How do I decide a particular .obj file depends on these .c files and .h files?
Thanks
I am adding a new file to a existing project.
And project is built using makefile. While adding new file to makefile, How do I decide a particular .obj file depends on these .c files and .h files?
Thanks
Your question sounds funny. You are the one handle to implement your project and you know well your project architecture. You know how modules in your project interface each other and the dependency among module files so that they can incorporate in make-file script. Beside you, how do other people can know your project construct unless you need to post all code in your project here. Best thing is to ask your project leader.
KingoftheWorld
==================
Think globally, Act locally.
>>How do I decide a particular .obj file depends on these .c files and .h files?
Presumably, as the coder, you know what files are dependant on each other? This link should help you organise your makefile, but put it here it you have trouble.
http://www.google.com/search?sourcei...efile+tutorial
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]