automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure substitutions in generated Makefile


From: Alexandre Duret-Lutz
Subject: Re: configure substitutions in generated Makefile
Date: Sat, 08 Jun 2002 15:39:25 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

>>> "jk" == Kremp, Johannes <address@hidden> writes:

[...]

 jk> test_SOURCES = test.c
 jk> test_LDADD  = $(LIBTEST)

[...]

 jk> but $(LIBTEST) doesn't appear in the generated Makefile in
 jk> test_DEPENDENCIES:

 jk> Makefile:
 jk> ...
 jk> am_test_OBJECTS = test.$(OBJEXT)
 jk> test_OBJECTS = $(am_test_OBJECTS)
 jk> test_DEPENDENCIES =
 jk> test_LDFLAGS =
 jk> ...

Automake is not able to guess that $(LIBTEST) will be a valid
dependency when it is run.  After all, $(LIBTEST) could has well
contain something like `-lfoo' which is valid for test_LDADD,
but not for test_SOURCES.

So you have to set test_DEPENDENCIES yourself, from your
Makefile.am:

 test_SOURCES = test.c
 test_LDADD = $(LIBTEST)
 test_DEPENDENCIES = $(LIBTEST)

[...]

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]