Results 1 to 1 of 1

Thread: make option ?

  1. #1
    Join Date
    Aug 2012
    Beans
    623

    make option ?

    Hey,
    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.

    Please advise.
    Thanks.
    Last edited by IAMTubby; October 31st, 2012 at 10:46 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •