Re: More parallelism in makefile

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
30 Jan 1998 11:22:12 +0100


Michael Elizabeth Chastain <mec@shout.net> writes:

|> Hi Andreas,
|> mec> In Rules.make, $(SYMTAB_OBJS) lost its dependency on
|> mec> $(SYMTAB_OBJS:%.o=%.c). The original rule does cause excessive
|> mec> compilation, but by removing this dependency, I believe you completely
|> mec> lose the dependency of foo.o on foo.c. The pattern rule %.o : %.c does
|> mec> *not* provide a dependency for anything that has explicit dependencies.

|> andreas> That's not a problem, the real dependency list comes from the .depend
|> andreas> file.

|> Go read a .depend file. I checked both 2.82 and 2.1.60 (random version
|> from before I rewrote mkdep.c), and neither of them has .depend files
|> with dependencies on foo.c.

Ok, your right, i confused it with the output of -MD. Anyway, we can
still do better with a static pattern rule:

$(SYMTAB_OBJS): %.o: %.c $(TOPDIR)/include/linux/modversions.h

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org