This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

use of .c.cc suffix rule in making bin_PROGRAMS


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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]