Ethereal-dev: Re: [ethereal-dev] Ethereal-0.8.8 fails to build on win32

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: Thu, 11 May 2000 00:39:13 -0700
On Wed, May 10, 2000 at 05:40:03PM -0500, Gilbert Ramirez wrote:
> On Wed, May 10, 2000 at 04:57:44PM -0500, Guy Harris wrote:
> > Is there some reason why *any* header files are in the
> > "DISSECTOR_SOURCES" list? Makefile.nmake uses "DISSECTOR_SOURCES" only
> > to build "register.c", but it only really needs to search the ".c"
> > files.
> 
> In Makefile.name, no. They don't need to be there.

Done.  I've pulled the ".h" files into "noinst_HEADERS" in
"Makefile.am", and completely removed them from "Makefile.nmake", so
"DISSECTOR_SOURCES" only includes source files.

> > Is there a mechanism in "nmake" to turn a list of ".c" files, such as
> > "DISSECTOR_SOURCES", into a list of ".obj" files?  If so, then we could
> > use that to generate "DISSECTOR_OBJECTS" from "DISSECTOR_SOURCES",
> > rather than having two lists that have to be kept in sync.
> 
> That would be nice.

And, in fact, it is nice - Nmake (at least in Visual C++ 6.0) supports
System V-style substitution in macros, i.e.

	DISSECTOR_OBJECTS = $(DISSECTOR_SOURCES:.c=.obj)

which I just checked in.