> * [EMAIL PROTECTED] wrote on Wed, Oct 24, 2007 at 08:45:36PM CEST:
>>
>> But I have another question about shared library. If I want to create
>> one
>> shared library from many source files in different sub-directories of
>> /src, how to do then?
>
> Like this:
>
> lib_LTLIBRARIES = libfoo.la
> libfoo_la_SOURCES = \
>         foo.c \
>         subdir/bar.c \
>         another-subdir
>
> Cheers,
> Ralf
>

Ralf,

Thanks. But I still have some problems.

1. in Makefile.am:
lib_LTLIBRARIES = libSCORECModel.la
libSCORECModel_la_SOURCES = \
 entities/GEdge.cc \

Compiling error:
Making all in src
make[1]: Entering directory
`/users/txie/tmp/FMDB_Automake/SCORECModel/SCORECModel/src'
make[1]: *** No rule to make target `GEdge.cc', needed by `GEdge.lo'.  Stop.

2. after make install, it creates some shared library with the extension
of some digits, like libfoo.so.0, libfoo.so.0.0.0. How to avoid creating
these files?

Thanks.

Ting








Reply via email to