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 <nicolasb...@gmail.com> 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