[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Using dependency files with GCC
- Subject: [ale] Using dependency files with GCC
- From: jknapka at kneuro.net (JK)
- Date: Mon, 14 Aug 2006 13:35:40 -0600
- In-reply-to: <[email protected]>
- References: <[email protected]>
John Mills wrote:
> ALErs -
>
> I'm bringing a legacy 'Makefile' up to date, in particular replacing
> 'makedepend' with 'gcc -MM' to create a dependency file: 'depend.mak'.
>
> My rule produces a healthy looking dependency file, but I don't see how to
> instruct 'make' to use the dependency rules in the generated file.
>
> How can I pull in the dependency file so the rules are applied in a build?
Putting the line:
include <file.with.dependencies>
in your Makefile should do it.
-- JK