Re: compilation flags per object file

2006-08-25 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > I would love to replace > > DEFS += -DLIBDIR=\"$(libdir)\" > > with > > localcharset_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR=\"$(libdir)\" That would certainly be an improvement, but it sounds like a bit of a pain to manage all the foo_CPPFLAGS vari

Re: compilation flags per object file

2006-08-25 Thread Mark D. Baushke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hello Bruno, Mark, > > * Mark D. Baushke wrote on Fri, Aug 25, 2006 at 06:01:03PM CEST: > > > > There should be no ambiguity if you add the $(ext) to the > > makefile macro name: > > > > localcharset($e

Re: compilation flags per object file

2006-08-25 Thread Bruno Haible
Ralf Wildenhues wrote: > > I wouldn't mind if the specification were per source file: > > > > localcharset_c_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR=\"$(libdir)\" > > That's a possibility, but it runs contrary of the notion of per-target > flags. More than one object may be created from one source

Re: compilation flags per object file

2006-08-25 Thread Ralf Wildenhues
Hello Bruno, Mark, * Bruno Haible wrote on Fri, Aug 25, 2006 at 03:53:35PM CEST: > Ralf Wildenhues wrote: > > You should note that object file > > names are an internal Automake detail, so the naming of the respective > > *_CPPFLAGS variable is not clear, for starters. Above would conflict > > wi

Re: compilation flags per object file

2006-08-25 Thread Mark D. Baushke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Hello Bruno, > > * Bruno Haible wrote on Fri, Aug 25, 2006 at 03:07:26PM CEST: > > > > I would love to replace > > > > DEFS += -DLIBDIR=\"$(libdir)\" > > > > with > > > > localcharset_CPPFLA

Re: compilation flags per object file

2006-08-25 Thread Ralf Wildenhues
Hello Bruno, * Bruno Haible wrote on Fri, Aug 25, 2006 at 03:07:26PM CEST: > > I would love to replace > > DEFS += -DLIBDIR=\"$(libdir)\" > > with > > localcharset_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR=\"$(libdir)\" > > but does automake support per-object-file settings? No. You can

Re: compilation flags per object file

2006-08-25 Thread Bruno Haible
Paul Eggert wrote: > Currently, in-place builds for coreutils generte output that looks > like this: > > gcc -std=gnu99 -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -I. -I. -I. > -g -O2 -c allocsa.c > gcc -std=gnu99 -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -I. -I. -I. > -g -O2 -c bas