>>> "wolff" == wolff  <[EMAIL PROTECTED]> writes:

[...]

 wolff> libs/libA/Makefile.am

 wolff> SUBDIRS = example
 wolff> noinst_LIBRARIES = libA.a
 wolff> libA_a_SOURCES = a.cpp b.cpp

 wolff> libs/libA/example/Makefile.am

 wolff> noinst_PROGRAMS = libAtest
 wolff> libAtest_SOURCES = libAtest.cpp
 wolff> libAtest_LDADD = $(top_builddir)/libs/libA/libA.a

[...]

 wolff> * No rule to make target: ../../../libs/libA/libA.a

 wolff> Anyone got a hint?

You need to build libA.a before libAtest.  See in the
documentation of SUBDIRS how you can control when the current
directory is built (with `.').

-- 
Alexandre Duret-Lutz



Reply via email to