Re: _SOURCES variable, files that are not translation units

2005-12-08 Thread Bob Friesenhahn
On Thu, 8 Dec 2005, Mike Mattie wrote: automake mailing list, The _SOURCES variable makes a poor assumption, that the .c files listed are translation units. It is permissable though uncommon to create .c files that are included into a translation unit to break up a source file for organizationa

_SOURCES variable, files that are not translation units

2005-12-08 Thread Mike Mattie
automake mailing list, The _SOURCES variable makes a poor assumption, that the .c files listed are translation units. It is permissable though uncommon to create .c files that are included into a translation unit to break up a source file for organizational purposes. Automake's assumption about th

target_DEPENDANCIES not included in dist tarball

2005-12-08 Thread Mike Mattie
hello automake mailing list, if the automake variable _DEPENDANCIES is provided to indicate files the target is dependant upon why are they not included in the distributed files list ? if there is no rationale I will file it as a bug

AM_CFLAGS not included in translation unit compilation

2005-12-08 Thread Mike Mattie
Hello automake mailing list, In a recent project I noticed that the individual compilation units do not include AM_CFLAGS in the invocation of the compiler, however when the program is constructed in the linking phase the AM_CFLAGS variable is used. Is there a rational for this ? I would like to p

Re: Alternative compiling for debug/optimized code?

2005-12-08 Thread Andrew Suffield
On Thu, Dec 08, 2005 at 01:37:26PM +0100, Ralf Wildenhues wrote: > > but most of th time I don't need debug code, so I want to disable that > > -g - option. > > So standard way with Automake-using projects would be: you make a debug > build tree and a normal (optimized) build tree: > > mkdir buil

Re: Alternative compiling for debug/optimized code?

2005-12-08 Thread Andreas Schwab
"Daniel Kraft" <[EMAIL PROTECTED]> writes: > Using automake the default compiler flags seem to be -g -O2; but most of the > time I don't need debug code You'll need it most when you don't have it. > so I want to disable that -g - option. ./configure CFLAGS=-O2 > And it is possible to do someth

Re: Alternative compiling for debug/optimized code?

2005-12-08 Thread Stepan Kasal
Hello, On Thu, Dec 08, 2005 at 10:24:26AM +0100, Daniel Kraft wrote: > Prior to using the GNU build system (especially automake) I used my own plain > Makefiles which set compiler flags like -g, -O2 > or -Ds enabling assertions depending on a variable set on commandline. So it > was > possible to

Re: Alternative compiling for debug/optimized code?

2005-12-08 Thread Ralf Wildenhues
Hi Daniel, * Daniel Kraft wrote on Thu, Dec 08, 2005 at 10:24:26AM CET: > > Prior to using the GNU build system (especially automake) I used my own plain > Makefiles which set compiler flags like -g, -O2 > or -Ds enabling assertions depending on a variable set on commandline. So it > was > possi

Alternative compiling for debug/optimized code?

2005-12-08 Thread Daniel Kraft
Hi! Prior to using the GNU build system (especially automake) I used my own plain Makefiles which set compiler flags like -g, -O2 or -Ds enabling assertions depending on a variable set on commandline. So it was possible to compile debugging/optimized code just by changing the make-command: make m