automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie Question] - Source file from a subdirectory in the Makefile.


From: Ralf Wildenhues
Subject: Re: [Newbie Question] - Source file from a subdirectory in the Makefile.am
Date: Sat, 10 Sep 2005 14:48:59 +0200
User-agent: Mutt/1.5.9i

Hi Danilo,

* Danilo Horta wrote on Sat, Sep 10, 2005 at 08:37:11AM CEST:
> I have just a directory source tree as follows:
> 
> src - +
> | - modules
> 
> Why i can't include sources from a subdirectory (modules) in the 
> src/Makefile.am like that: "hello_SOURCES = hello.c say_bye.c 
> modules/calc.c" ?

Because you use an _ancient_ version of Automake.  :)

> Automake complains 'automake: src/Makefile.am: not supported: source file 
> `modules/calc.c' is in subdirectory'.
> 
> $ automake --version
> automake (GNU automake) 1.4-p6

Newer versions work fine with this setup.  Current stable version is
1.9.6.  If you can restrict to version >=1.9, consider using the
subdir-objects Automake option (see documentation for more info).

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]