Re: compiling different files with different C compilers

2012-06-07 Thread Miles Bader
NightStrike writes: >> suppose that my program is composed of 2 files f1.c and f2.c. f1.c is >> written in C89 and f2.c in C99. I would like that f1.c is compiled >> with a C89 compiler  and f2.c is compiled with a C99 compiler. >> >> How can I achieve that in Makefile.am ? >> >> Also, in configur

Re: compiling different files with different C compilers

2012-06-07 Thread NightStrike
On Thu, Jun 7, 2012 at 12:35 PM, Vincent Torri wrote: > Hey > > suppose that my program is composed of 2 files f1.c and f2.c. f1.c is > written in C89 and f2.c in C99. I would like that f1.c is compiled > with a C89 compiler  and f2.c is compiled with a C99 compiler. > > How can I achieve that in

compiling different files with different C compilers

2012-06-07 Thread Vincent Torri
Hey suppose that my program is composed of 2 files f1.c and f2.c. f1.c is written in C89 and f2.c in C99. I would like that f1.c is compiled with a C89 compiler and f2.c is compiled with a C99 compiler. How can I achieve that in Makefile.am ? Also, in configure.ac, which macro should I use ? A