Since I am getting a lot of help here I thought I would try this question. I always avoid makefiles because the syntax is daunting. What are the benefits of makefiles?
Every explanation I see is very convoluted, it seems like something that can be easily explained.
How do I link a few files together into one object.
Do I only have one main function that calls to other functions in other files? Does it matter which file my main function is in?? Do I have to declare prototype of each function in each different source file?
And mostly just how do I write the syntax for a makefile.
Say I had three files.