[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-dependency usefulness?
From: |
Yakov Lerner |
Subject: |
Re: auto-dependency usefulness? |
Date: |
Thu, 02 Oct 2003 12:23:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 |
Bryce Schober wrote:
lib/
foo.h
foo.c
src/
main.c
This is not complete picture. The compete picture include
also following files:
main.o
foo.o # maybe also libfoo.a
main # executable, aka 'main.exe'`
... However, gcc's dependency generation doesn't trace main.c's
> dependency on foo.c, only on foo.h.
Dependency of main.exe is traced eventually to main.c,
foo.c, and foo.h. Only targets have dependencies (targets like
make.exe, make.o). The main.c is not a target.
Maybe you actually want to discuss
tracing the dependencies for 'main.exe' not for 'main.c' ?
--
Jacob Lerner