I have a GNU Makefile that is based heavily on the suggestions
in Peter Miller's 'Recursive Make Considered Harmful" and Paul
Smith's VPATH and Advanced Auto-Dependency Generation papers.

As far as I can tell, it works correctly, if a bit slow.

I have about 175 source files in about 30 directories that need
to be built. From the main Makefile, I include a module.mk from
each directory, and then I include a .P dependency file for each
source file. Nearly all of the module.mk files are of the form

SRC += foo.cpp bar.cpp glarch.cpp

Even if none of the .P dependency files have been generated yet,
it takes over a minute (P3-550, 128 MB RAM) for make to work out
what it needs to do and start compiling things. The CPU is pegged
at 100% during that time.

This seems slow enough to me that I wonder if I'm doing something
wrong, or at least wildly inefficient.

Does this seem like an appropriate amount of time?


Mark Kohler
[EMAIL PROTECTED]
Nomadix, Inc.

Reply via email to