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