>/ If my makefile contains roughly the following:/
>
>/ lib_LIBRARIES = libfoo.a/
/ > libfoo_a_SOURCES = foo1/exception.cpp foo2/exception.cpp/
>
/ > I end up with the following error:/
> / > Makefile.am: object `exception.$(OBJEXT)' created by/
/ > `foo2/exception.cpp' and `foo1/exception.cpp'/

I think that you want to put "subdir-objects" in your
AUTOMAKE_OPTIONS.

Thanks Ben, that option does what I need and it works like a charm!

Following is the line I added to my Makefile.am:

AUTOMAKE_OPTIONS = subdir-objects



Reply via email to