How can I control the output directories and output extensions using gcc ?I see the '-o file' command line option but a specific compilation may involve many outputs so I do not see how a single '-o file' option can be of any use.
My immediate need is to place object files and final executable files in separate directories with the final executable having a specific name and not just 'a.out'.