-   Syndicated Linux News (
-   -   LXer: Turn Make Options into Tool Flags (

LXer 07-21-2008 10: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


All times are GMT -5. The time now is 03:58 PM.