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



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to