This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Need help with problem...


Please, no HTML.

> lib_LTLIBRARIES = libfoo.la 
> libfoo_la_SOURCES = \ 
>     one.c \ 
>     one.cpp \ 
>     two.c \ 
>     two.cpp 

IIRC, Automake 1.5 supports subdirectories; using

lib_LTLIBRARIES = libfoo.la 
libfoo_la_SOURCES = \ 
    c/one.c \ 
    cpp/one.cpp \ 
    c/two.c \ 
    cpp/two.cpp 

should get you what you want the easiest way.
You may have to add 'subdir-objects' to AUTOMAKE_OPTIONS
for this to work; check the docs.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]