On 03/22/2011 07:54 AM, Paul Elliott wrote:
I have a c library that currently uses an old style Makefile that I want to convert to auto*tools. One .c file is used as a .h file. That is, it is included by another .c file and it should not be itself compiled. Why the author did this I do not know, but I do not want to change the author's source or change or rename any files. How do I tell auto*tools to treat this file as a .h file? That is, do not try to compile this file itself, and do include it in the files to be distributed.
As automake is suffix-rules based, the only reliable way to do so is to rename the file into '*.h".
Another way is to not list this file as *_SOURCES, i.e. trying to bring it out of automake's automatism's reach.
Ralf