automake
[Top][All Lists]
Advanced

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

Re: naming convention for object files.


From: Nicolas Bock
Subject: Re: naming convention for object files.
Date: Thu, 11 Oct 2012 12:41:10 -0600

Hello list,

I found the reason for the difference in naming: In the second library I had

lib_LTLIBRARIES = libsomething.la

libsomething_la_CPPFLAGS = -I../../

when I changed that to

AM_CPPFLAGS = -I../../

the naming changed from a.F90 -> libsomething_la-a.lo to a.F90 ->
a.lo. Very strange.

nick


On Thu, Oct 11, 2012 at 11:51 AM, Nicolas Bock <address@hidden> wrote:
> Hello list,
>
> I am using libtool to compile a library of a bunch of F90 files. Those
> files have various dependencies between them and since automake is not
> capable of tracking those for Fortran I have to by hand add lines like
>
> a.lo : b.lo c.lo
>
> to Makefile.am. Unfortunately automake's naming convention for the
> object files is not clear to me. For one library I am building in this
> way it translates a.F90 to a.lo but for another it does a.F90 to
> libsomething_la-a.lo. This makes writing dependency rules somewhat
> difficult. What controls the naming of object files? As far as I can
> tell, configure.ac and Makefile.am in the two libraries are
> essentially identical but obviously I must be overlooking something.
>
> Thanks already,
>
> nick



reply via email to

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