[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build a lib, then example programs
From: |
Ralf Wildenhues |
Subject: |
Re: Build a lib, then example programs |
Date: |
Thu, 9 Aug 2007 09:37:25 +0200 |
User-agent: |
Mutt/1.5.16 (2007-07-16) |
Hello,
* myrdos2 wrote on Thu, Aug 09, 2007 at 12:58:38AM CEST:
>
> lib_LIBRARIES = libdconn.a
[...]
> noinst_PROGRAMS = udpclient
> udpclient_SOURCES = examples/udpclient.cpp
>
> My example program is udpclient. How would I link udpclient to libdconn.a,
> and how would I make sure that udpclient isn't built before libdconn.a?
You get both by adding the line
udpclient_LDADD = libdconn.a
Cheers,
Ralf