automake
[Top][All Lists]
Advanced

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

Re: Conditional target


From: Dave Hart
Subject: Re: Conditional target
Date: Thu, 27 Jan 2011 04:50:22 +0000

On Thu, Jan 27, 2011 at 03:40 UTC, Sergio Belkin <address@hidden> wrote:
> I have the target test, being:
>
> tests = $(EXTRA_PROGRAMS)
>
> I've added:
>
> if forcestatic
> tests: LIBS += $(STATIC_RESOLV)
> end if

How about:

mytestprog_LDADD =
if forcestatic
mytestprog_LDADD += $(STATIC_RESOLV)
endif
^^^^^ one word

If you have more than the hypothetical mytestprog in EXTRA_PROGRAMS
which require the additional library, use simply LDADD instead of
mytestprog_LDADD.

Cheers,
Dave Hart



reply via email to

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