Re: Built header in different dir?

2001-03-30 Thread Lars Hecking
> : > I'd use "file.$(OBJEXT):", but that's just me. > : > : This fails with automake-1.4 (release), which is what I must use. > > I thought this would depend on Autoconf, not Automake. I think you're right - if one uses AC_OBJEXT. We don't, and the generated Makefiles don't define OBJEXT.

Re: Built header in different dir?

2001-03-30 Thread Lars J. Aas
On Fri, Mar 30, 2001 at 02:49:21PM +0100, Lars Hecking wrote: : : > : file.o: ../header.h : > : > I'd use "file.$(OBJEXT):", but that's just me. : : This fails with automake-1.4 (release), which is what I must use. I thought this would depend on Autoconf, not Automake. Lars J

Re: Built header in different dir?

2001-03-30 Thread Lars Hecking
> : file.o: ../header.h > > I'd use "file.$(OBJEXT):", but that's just me. This fails with automake-1.4 (release), which is what I must use.

Re: @LDFLAGS@ not expanded

2001-03-30 Thread Akim Demaille
> "Jeremy" == Jeremy Slade <[EMAIL PROTECTED]> writes: Jeremy> Any idea what I'm doing wrong here? This is autoconf-2.49c, Jeremy> automake-1.4b, and libtool 1.3.5. Update Autoconf.

Re: Built header in different dir?

2001-03-30 Thread Lars J. Aas
On Fri, Mar 30, 2001 at 02:22:48PM +0100, Lars Hecking wrote: : : > > In ./Makefile.am: : > > : > > ../header.h: $(srcdir)/../header.h.in : > > @( cd ..; $(MAKE) header.h ) : > : > This doesn't help either. : : ... but adding : : file.o: ../header.h I'd use "file.$(OBJEXT):", but that's

Re: Built header in different dir?

2001-03-30 Thread Lars Hecking
> > In ./Makefile.am: > > > > ../header.h: $(srcdir)/../header.h.in > > @( cd ..; $(MAKE) header.h ) > > This doesn't help either. ... but adding file.o: ../header.h to the above does it. Thanks Coffee-Lars ;-)

Re: Built header in different dir?

2001-03-30 Thread Lars Hecking
Lars J. Aas writes: > On Fri, Mar 30, 2001 at 11:10:32AM +0100, Lars Hecking wrote: > : How do I define a dependency on a header file in a different directory, eg. > : the parent dir? I tried > : > : BUILT_SOURCES = ../header.h > > Try something like this: > > In ../Makefile.am: > > BUILT_SOUR

Re: Built header in different dir?

2001-03-30 Thread Lars J. Aas
On Fri, Mar 30, 2001 at 11:10:32AM +0100, Lars Hecking wrote: : How do I define a dependency on a header file in a different directory, eg. : the parent dir? I tried : : BUILT_SOURCES = ../header.h Try something like this: In ../Makefile.am: BUILT_SOURCES = header.h # build $(BUILT_SOURCES) be

Re: Built header in different dir?

2001-03-30 Thread Lars Hecking
Alexandre Oliva writes: > On Mar 30, 2001, Lars Hecking <[EMAIL PROTECTED]> wrote: > > > Or is it just as simple as > > > file.o: ../header.h > > > in subdir/Makefile.am? > > This should work. Hhm, it doesn't. make: Fatal error: Don't know how to make target `../types.h' The problem is

Re: Built header in different dir?

2001-03-30 Thread Alexandre Oliva
On Mar 30, 2001, Lars Hecking <[EMAIL PROTECTED]> wrote: > Or is it just as simple as > file.o: ../header.h > in subdir/Makefile.am? This should work. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat

Built header in different dir?

2001-03-30 Thread Lars Hecking
How do I define a dependency on a header file in a different directory, eg. the parent dir? I tried BUILT_SOURCES = ../header.h but automake tells me automake: subdir/Makefile.am: not supported: source file `../header.h' is in subdirectory This is automake 1.4 (and it must work with aut