A makefile with a mix of gcc and g++
Cedric Roux
cedric.roux@acri-st.fr
Tue Apr 12 12:28:00 GMT 2011
On 04/12/2011 12:57 PM, Mahmood Naderan wrote:
> Hi,
> I have a makefile that compiles source files with gcc. However I want to exclude
> one file and compile it with g++ (since I want to use STL in a pure ANSI C
> application). The question is how can I do that in such a way that make file
> automatically compile this file with g++ and others with gcc.
>
> Thanks,
>
> // Naderan *Mahmood;
you can add a specific rule, like:
special_file.o: special_file.c
g++ <foo bar>
More information about the Gcc-help
mailing list