[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional sources
From: |
Ralf Wildenhues |
Subject: |
Re: Conditional sources |
Date: |
Sun, 4 Nov 2007 20:08:47 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-02) |
> > On Nov 4, 2007, at 7:47 PM, NightStrike wrote:
> > > AM_CONDITIONAL(WITH32, test x$WITH_32 != x)
> > >
> > > And I put this in Makefile.am:
> > >
> > > if WITH32
> > > crtdir=$(prefix)/lib32
> > > uuidsrc = lib32/uuid.c
> > > else
> > > crtdir=$(prefix)/$(target)/lib
> > > uuidsrc = lib/uuid.c
> > > endif
> > >
> > > crtlibs_LIBRARIES += libuuid.a
> > > libuuid_a_SOURCES = $(uuidsrc)
> > >
> > >
> > > When I run autoreconf, I get this:
> > >
> > > Makefile.am: object `uuid.$(OBJEXT)' created by `lib32/uuid.c' and
> > > `lib/uuid.c'
[...]
You can adapt the hint from
info Automake 'Libtool Issues'
to your example. You'll have to live with a rewritten object file name
in that case though.
info Automake 'Conditional Sources'
has more useful information.
Cheers,
Ralf
- Conditional sources, NightStrike, 2007/11/04
- Re: Conditional sources, Benoit SIGOURE, 2007/11/04
- Re: Conditional sources, NightStrike, 2007/11/04
- Re: Conditional sources,
Ralf Wildenhues <=
- Re: Conditional sources, NightStrike, 2007/11/04
- Re: Conditional sources, Ralf Wildenhues, 2007/11/04
- Re: Conditional sources, NightStrike, 2007/11/05
- Re: Conditional sources, Ralf Wildenhues, 2007/11/05
- Re: Conditional sources, NightStrike, 2007/11/05