[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 questions about libraries
From: |
Santosh |
Subject: |
Re: 2 questions about libraries |
Date: |
Tue, 17 Jun 2003 15:31:04 +0530 (IST) |
hi,
For the second question, you can use the $(top_srcdir)
variable and give the complete path of your library.
example:
2Dinterpolation_LDADD =
$(GLIB_CFLAGS) \
$(top_srcdir)/src/errors/libErrors.a \
$(top_srcdir)/src/lib/libLib.a
with regards,
Santosh.
On 17 Jun 2003, Jose Roman Bilbao wrote:
> Hi,
>
> I am finally reaching the end of my "autotoolization" of my program but
> I still have two questions I think will be easy to solve but I can not
> figure out how to do it...
>
> 1st: I have a multiple subdirectories project. One of those directories
> stores again multiple subdirectories. In each of them a librtary
> (shared) is built and stored in .lib (local) directory. Te thing is that
> I would like all my libraries to be built in the same global directory,
> lets say ($ROOT_FOR_M_PROG)/libs. How can I do that?.
>
> 2nd: Now, in another subdirectory of the root directory I have my
> programs which I want to link against some of the previously built
> libraries but I dont know how to refer them and where to refer them:
>
> I have written:
>
> bin_PROGRAMS = 2Dinterpolation
> 2Dinterpolation_SOURCES = 2Dinterpolation.cc
> 2Dinterpolation_LDADD =
>
> But I dont know what to put in LDADD or even if LDADD is the correct
> variable to use.
>
> Well... I know it is a long mail but I hope it will be easy to answer
> it. Many thanks.
>
> Roman
>
>
>