LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (http://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Turn Make Options into Tool Flags (http://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-turn-make-options-into-tool-flags-657311/)

LXer 07-21-2008 09:10 PM

LXer: Turn Make Options into Tool Flags
 
Published at LXer:

Often times when developing programs there is a need to build the program in/for multiple configurations. Many times, autoconf and its resulting configure script do what you need. Other times you can just change a #define in your code. But sometimes, autoconf isn't an option and changing a define doesn't quite work (say you need to pass your defines/undefines to m4 or some other tool that can't handle include files). The solution is probably to change your makefile. The method presented here results in a fairly compact change to your makefile

Read More...


All times are GMT -5. The time now is 09:25 PM.