make option ?
I have an application with lots of (make)files.
But to enable say ,gprof on it, I'll have to manually go and add a -pg to each of the makefiles.
My question is, Is there a way I can add the -pg at a central place, and ask all the makefiles to use this. Maybe as a makefile option from the shell ?
Another reason is, I'm not sure how many makefiles I need to edit(add -pg) for the part of the code I'm interested in. So, for the moment, I would like to go by the brute force method of adding the -pg everywhere.
Last edited by IAMTubby; October 31st, 2012 at 10:46 PM.