Turn Make Options into Tool Flags

  2008-07-22 04:00:03
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 
  PNG Image  PNG Image  PNG Image
  Related tags  


This particular article has been collected via RSS syndication. We apologize if it's too brief.
If You wish to publish articles on LinuxStreet.net please contact us.


  Similar articles found on LinuxStreet  
ImageParsing Options in Shell, Perl and C
ImageParsing arguments for your shell script
ImageStartup Manager: configuring grub and usplash
ImageOptions Parsing and Keywords
ImageTurn OpenOffice.org into a Web-editing tool with ODF@WWW
ImageTurn your Linux box into a PDF-making machine
ImageRough edges mar *nix-style configuration tool
ImageConfiguring OpenOffice.org Writer
ImageOptions in OpenOffice.org Calc
ImageHOWTO: Convert A Friend To Linux

Leave a comment on this article


Captcha

  
Check this if the code you see is not readable and resubmit the form.
(Data you entered will be preserved)



  

Comments (0)