[Top][All Lists]

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

Re: Problems with conditional sources

From: David Sveningsson
Subject: Re: Problems with conditional sources
Date: Mon, 25 Aug 2008 23:21:32 +0200
User-agent: Thunderbird (X11/20080727)

Andreas Schwab skrev:
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
        libfoo_la_SOURCES += b.cpp

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.


Thanks, this solved my problems. It doesn't seem work if I use tabs for indentation, but spaces works fine. Is this expected behavior? I've used tabs in many other places and it seem to work. I cannot find any section in the manual covering this.


//*David Sveningsson [eXt]*

Freelance coder | Game Development Student

Thou shalt make thy program's purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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