automake
[Top][All Lists]
Advanced

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

Re: testcase library


From: Stepan Kasal
Subject: Re: testcase library
Date: Mon, 15 Aug 2005 20:04:16 +0200
User-agent: Mutt/1.4.1i

Hello

> I'd like to specify a static library that is linked with all testcases
> in check_PROGRAMS, so that I don't have to specify it for each testcase.
> Is this possible with automake?

some obvious hints:
I think that if you set variable "LDADD" (without any prefix), it applies
to all programs in that makefile.

1) If you have a separate directory for tests, this solves your problem.

2) Otherwise, if you have many check_PROGRAMS, but only a few normal programs,
you can set LDADD and overrride
        foo1_LDADD =
        foo2_LDADD =
for regular programs foo1 and foo2.

HTH,
        Stepan




reply via email to

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