automake
[Top][All Lists]
Advanced

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

Re: compiling different files with different C compilers


From: NightStrike
Subject: Re: compiling different files with different C compilers
Date: Thu, 7 Jun 2012 17:20:04 -1000

On Thu, Jun 7, 2012 at 12:35 PM, Vincent Torri <address@hidden> 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 Makefile.am ?
>
> Also, in configure.ac, which macro should I use ?  AC_PROG_CC ? 
> AC_PROG_CC_C99 ?
>
> thank you
>
> Vincent Torri
>

Can you just pass different CFLAGS, -std=c89, -std=c99?



reply via email to

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