[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating dependencies with gcc
From: |
Paul Jarc |
Subject: |
Re: creating dependencies with gcc |
Date: |
Fri, 16 Jul 2004 12:24:15 -0400 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
cppaddict <hello@hello.com> wrote:
> When creating Makefiles, it's common to use
>
> gcc -M <filenames>
>
> to produce the dependency files that will be included in your
> Makefile. Unfortunately, the output includes ALL dependencies, even
> dependencies on stable system files, which need not be included.
I use "gcc -E -MM -MG", which gives me all the #include "foo.h"
dependencies, but not the #include <foo.h> dependencies. But don't
use gcc 3.4.{0,1} for this, it's buggy.
paul