[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with conditional sources

From: Andreas Schwab
Subject: Re: Problems with conditional sources
Date: Mon, 25 Aug 2008 23:09:30 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux)

David Sveningsson <address@hidden> writes:

> Hi, I am having some problems with conditional sources. This is what I
> have in
> libfoo_la_SOURCES = foo.cpp
>       libfoo_la_SOURCES += a.cpp
> else
>       libfoo_la_SOURCES += b.cpp
> endif
> AM_CPPFLAGS = -I${top_srcdir}/include
> libfoo_la_LDFLAGS = -version-info 0:0:0
> I have been reading both autoconf and automake manuals and as far as I can
> see the above should work. However the files (a.cpp or b.cpp) is always
> added at the bottom of the generated Makefile and are therefore not used
> in the compilation. No matter what I try I cannot get even the above code
> to generate a correct makefile but obviously I am doing something wrong.

Remove the indentation.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]