|
From: | Ralf Corsepius |
Subject: | Re: c file used as a make file |
Date: | Tue, 22 Mar 2011 08:06:47 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |