> * [EMAIL PROTECTED] wrote on Fri, Oct 26, 2007 at 06:27:00PM CEST: >> >> Yes, It works. And I found another solution: using Libtool Convenience >> Libraries. Firstly create some .la files in subdirectories, then create >> the wanted .la file on the upper directory. > > Yes, that is a possibility. > >> But I have 2 new problems now: >> 1. My solution works well. But the names of the objective files are >> changed. >> For example, vector.c file is compiled to libutil_la-vector.o file not >> vector.o file. How to change the name to vector.o ? > > Object file names are an internal detail of Automake. You should not > need to know them, and the name should normally not matter. Automake > may rename objects for several reasons, see: > <http://sources.redhat.com/automake/automake.html#renamed-objects>. > >> 2. I have to write Makefiles in every subdirectories, and specify them >> in >> the configure.ac file. It is boring. Is that necessary? > > Yes. You can use a script to do that, if it helps you. > > Cheers, > Ralf >
Ralf, I still dont know how to remove the library files with version number, such as libfoo.so.0.0.0. May you show me a simple example? How to remove the libtool .lo files during the process of 'make'? Thanks. Regards, Ting