This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building a number of small shared modules


>>> "Joshua" == Joshua Kwan <joshk@triplehelix.org> writes:

[...]
 Joshua> Is there an easy way to do this? 
[...]

Don't write these rules yourself.  Use libtool and its -module option.

pkglib_LTLIBRARIES = module1.la module2.la ...

module1_la_SOURCES = module1.c module1.h ...
module1_la_LDFLAGS = -module

module2_la_SOURCES = module2.c module2.h ...
module2_la_LDFLAGS = -module

...
-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]