Paul Elliott <pelli...@blackpatchpanel.com> writes:

> 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.

The easiest way is to add it to the EXTRA file list for the given target.
In other words, if this is used to build libfoo.a, then add:

EXTRA_libfoo_a_SOURCES = foo.c

to your Makefile.am.

-- 
Russ Allbery (r...@stanford.edu)             <http://www.eyrie.org/~eagle/>

Reply via email to