Re: multiple targets, different build options

2008-09-24 Thread William Pursell
Peter Johansson wrote: I use the following snippet in one my projects: AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[turn on debug options and code])], [SD_CXXFLAGS="$SD_CXXFLAGS -g -O"], [SD_CPPFLAGS="-DNDEBUG" SD_CXXFLAGS="$SD_CXXFLAGS -O3"]) FWIW, as a user I find this se

Re: multiple targets, different build options

2008-09-24 Thread Peter Johansson
John Richetta wrote: (I'm an autotools newbie.) What is the automake sanctioned way of providing different top-level make targets, that build my application with different options? For example, say I want to build foo_nondebug, and foo_debug, and (luckily) all of my application code resides

Re: multiple targets, different build options

2008-09-24 Thread Brian Dessent
John Richetta wrote: > clumsier for the maintainer. But I am sure automake must provide > some way of achieving functionality equivalent to this essential make > capability - no? The automake way of doing this is with separate build directories, not by hard coding any special rules into the buil

Re: multiple targets, different build options

2008-09-24 Thread John Richetta
Peter, On Sep 24, 2008, at 10:24 AM, Peter Johansson wrote: John Richetta wrote: (I'm an autotools newbie.) What is the automake sanctioned way of providing different top- level make targets, that build my application with different options? For example, say I want to build foo_nondebug, a

multiple targets, different build options

2008-09-24 Thread John Richetta
(I'm an autotools newbie.) What is the automake sanctioned way of providing different top-level make targets, that build my application with different options? For example, say I want to build foo_nondebug, and foo_debug, and (luckily) all of my application code resides in the subdirectorie