This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
use of .c.cc suffix rule in making bin_PROGRAMS
- From: Ted Irons <ironst at SAIC dot COM>
- To: automake at gnu dot org
- Date: Mon, 19 Aug 2002 18:41:36 -0700
- Subject: use of .c.cc suffix rule in making bin_PROGRAMS
- Organization: Science Applications
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