automake
[Top][All Lists]
Advanced

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

use of .c.cc suffix rule in making bin_PROGRAMS


From: Ted Irons
Subject: use of .c.cc suffix rule in making bin_PROGRAMS
Date: Mon, 19 Aug 2002 18:41:36 -0700
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1

I'm running autoconf-2.53, automake-1.6.2, and libtool-1.4d.


If I have a source, x.c, the following automake snippet will
not work (it invokes gcc on x.c, instead of g++ on x.cc;
and the .deps/x.Po file contains just #dummy)

bin_PROGRAMS = x

x_SOURCES = x.cc

.c.cc:
        $(LN_S) $< $@


But the following will work:

bin_PROGRAMS = x

x_SOURCES = x.C

.c.C:
        $(LN_S) $< $@

Is this a bug, or am I doing something wrong?

Oddly, the .c.cc: suffix rule works when building
libraries.

- Ted







reply via email to

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