[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic dependencies in gnustep-make
From: |
Nicola Pero |
Subject: |
Re: Automatic dependencies in gnustep-make |
Date: |
Thu, 22 Nov 2001 03:11:17 +0000 (GMT) |
Thanks ... great!
I applied a patch - very similar to yours - to gnustep-make on CVS ...
comments from anybody welcome.
> Hi,
>
> I've attached a small patch to rules.make that adds automatic dependency
> tracking (a feature I've really missed). It's controlled by the
> auto_dependencies variable, so 'make auto_dependencies=yes' would
> activate it. Putting 'auto_dependencies=yes' in config.make makes it
> active by default.
>
> The patch relies on gcc doing the 'right thing' with -MMD, so it works
> with v3, but not v2.95.2. The .d files (with dependency information) are
> stored in $(GNUSTEP_OBJ_DIR). It works with c, obj-c, and c++ files, and
> (as far as I can tell) with all types of projects. I'm no export on
> gnustep-make internals, though, so comments would be appreciated.
>
> (Note that you'll need to 'make clean' before using it in a project so
> the .d files will be generated.)
>
> - Alexander Malmberg