This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Problem with dependencies
- From: Alexandre Duret-Lutz <adl at src dot lip6 dot fr>
- To: wolff at falkag dot com
- Cc: automake at gnu dot org
- Date: Tue, 02 Mar 2004 09:08:17 +0100
- Subject: Re: Problem with dependencies
- References: <40394368.15584.2E6DD6A@localhost>
>>> "wolff" == wolff <wolff@falkag.com> 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