automake
[Top][All Lists]
Advanced

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

Re: Test support for automake


From: NightStrike
Subject: Re: Test support for automake
Date: Sun, 13 Feb 2011 08:10:32 -0500

On Sat, Feb 12, 2011 at 4:51 PM, Daily, Jeff A <address@hidden> wrote:
>> From: address@hidden address@hidden On Behalf Of Ralf Hemmecke address@hidden
>> Sent: Friday, February 11, 2011 11:18 AM
>> To: address@hidden
>> Subject: Test support for automake
>>
>> I have a non-recursive Makefile.am with which I build a library foo. I
>> list all my tests (quite a lot) in check_PROGRAMS.
>>
>> All those tests should (of course) get libfoo.la as LDADD, but how
>> exactly do I do that _without_ doing a per-target *_LDADD specification.
>> Per target specification sounds like a lot of redundancy since all my
>> _LDADD specification would just be libfoo.la.
>> I'd like to add libfoo.la in only _one_ place.
>>
>> Ralf
>
> Use the LDADD variable.  It's similar to the AM_* variables e.g. AM_LDFLAGS, 
> AM_CPPFLAGS.  All programs use LDADD for linking unless it is overridden by a 
> maude_LDADD per-target variable.
>
> See http://sources.redhat.com/automake/automake.html#Linking
>
> Jeff
>
>
>
>

It sounds like this is a good use case for support of check_LDADD,
which of course is going to imply a request for generic x_Y support,
where x is any prefix (bin, lib, etc) and Y is any suffix (cflags,
etc).



reply via email to

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