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] | |
On Tue, 18 Nov 2003 11:02:04 -0700, "Kevin P. Fleming"
<kpfleming@backtobasicsmgmt.com> said:
> Gary V. Vaughan wrote:
>
> > with the simpler:
> >
> > ~ pkglibexec_LTLIBRARIES = gnu.la ..... traditional.la
> > ~ AM_LDFLAGS = -module
> >
> > but unfortunately Automake wants to build `gnu.la' from `gnu.la.c', so the
> > repetitive sources declarations are necessary, unless I rename all my
> > source
> > files.
>
> This would help me out too, I thought of the same thing.
I dusted off my copy of Programming Perl and came up with the attached
patch. I don't know whether stripping the lib prefix from {LT,}LIBRARIES
targets for a default source is also appropriate...
> The problem
> though is that a library is a collection of objects, it's not really a
> single object (even though we're both using them that way).
But so is a program if you look at it that way. And `bin_PROGRAMS = foo'
is enough to build foo from foo.c, so it seems natural to have
`lib_LTLIBRARIES = foo.la' work similarly.
Cheers,
Gary.
--
())_. Gary V. Vaughan gary@(lilith.warpmail.net|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \'
`&
`(_~)_ Tech' Author http://sources.redhat.com/autobook
=`---d__/
Attachment:
1-gary-strip-target-suffix-from-default-source.patch
Description: application/unknown
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |