[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 29 Jan 2007 19:52:02 +0100
* Bob Rossi wrote on Mon, Jan 29, 2007 at 05:44:59PM CET:
> OK, from this suggestion, I'm going to change all _LDADD lines from
> -lfoo to $(top_builddir)/pathto/libfoo.a.
> I'll remove all _DEPENDENCIES completly. Does this sound like a correct
> change to you?
> BTW, all the _DEPENDENCIES that I'm talking about are
> libraries that are built from my own project, but not necessarily in the
> same Makefile.
OK. You will have to make sure these libraries exist and are up to
date, when they are needed. Typically by recursing to that other
Makefile earlier (i.e., by way of SUBDIRS ordering).
For libraries built from the same Makefile, please note that typically,
make implementations are not smart enough to discover that
$(top_builddir)/sub/libfoo.la (with top_builddir = ..)
all refer to the same file, even if they are the same file. So if you
have a rule for the latter, but depend upon one of the former two,
things can break. GNU make identifies the latter two.