Ethereal-dev: Re: [ethereal-dev] Targets dependent on proto.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 12 Apr 2000 00:28:02 -0700
> proto.h is included in numerous files, and if it is modified then (in my
> humble opinion) a large number of packet-*.c become out of date.
> This is definitely not happening on my system, videlicet:

The system for doing dependencies, at least on some platforms, requires
that the compiler have a compile-time option that causes it to write out
dependencies to a specified file - take a look at, for example, the
"%.o: %.c" rule in the Makefile.

If your compiler doesn't support this, you won't get the right
dependencies.

What happens if you do

	egrep proto.h .deps/*.P

in the top-level source directory of Ethereal?  If it doesn't print a
lot of lines, you're not getting the dependency files generated
correctly, perhaps because your compiler doesn't support the flag in
question - what compiler (and version thereof) are you using?