bug-automake
[Top][All Lists]
Advanced

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

Option ansi2knr mishandles sources in different directories


From: Andreas Schwab
Subject: Option ansi2knr mishandles sources in different directories
Date: Wed, 20 Nov 2002 16:16:25 +0100
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux)

If foo_SOURCES references sources files that are not in the current
directory then automake generate wrong dependencies with the ansi2knr
option.  For example, if Makefile.am contains:

    AUTOMAKE_OPTIONS = ansi2knr

    bin_PROGRAMS = foo
    foo_SOURCES = foobar/foo.c

then the generated Makefile.in has foo$U.o depending on foo$U.c, which
cannot be built if $U is empty.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
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]