[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Implicit rules with headers
From: |
Cédric Lucantis |
Subject: |
Re: Implicit rules with headers |
Date: |
Sat, 17 Mar 2007 11:31:44 +0100 |
User-agent: |
KMail/1.9.5 |
Le samedi 17 mars 2007 09:27, Rafael Almeida a écrit :
> Hello, I found that implicit rules thing very helpful. But I'd like to
> be able to set as a prerequisite any .h file that a .c may include. Is
> there an easy way to make implicit rules such as that? I wouldn't mind
> making the script which extract the header information from the .c
> files.
>
This is described in the make manual, under Rules/Automatic prerequisites. See
also man gcc about the -M and -MM flags.
--
Cédric Lucantis