On 2013-05-19 18:57, John Andreasson wrote:
> Hi.
> 
> I have an old C++ project that I'm modernizing, and part of the process
> involves migrating to Autotools.
> 
> All source files uses the .cp extension. I know it's not common, but many
> compilers recognize it as C++. Automake doesn't do that however.
> 
> I guess I could rename all of them to end in something that Automake
> recognizes, like .cc. But I would like to ask if there's a way to make
> Automake accept .cp first?
> 
> I have searched the documentation, but all I can find is the list of
> supported file extensions. I think there must be a way to explicitly tell
> it to use other extensions as well.

There are compilers that does not like 'strange' extensions, so in order
to be maximally portable you should stick to something standard like .cpp
or .cc, which is just the other side of your statement in the second
paragraph I guess (many != all).

I know this doesn't answer your question about Automake and .cp, but I
don't have an answer to that, sorry.

Cheers,
Peter


Reply via email to