Ethereal-dev: Re: [Ethereal-dev] Updated Mingw makefile

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

From: "Gisle Vanem" <giva@xxxxxxxxx>
Date: Fri, 21 May 2004 13:29:38 +0200
Hello Olivier,

> Do you think you could make use of the Makefile.common definitions so
> we only need to edit one file in case something changes?

I tried, but it can't be easily done; e.g. Makefile.common and 
epan/Makefile.common both contains BUILT_SOURCES etc. Seems
the makefiles must be executed in their respective directories and 
cannot include each other.

> I'm also thinking at creating more than one makefile, so it will be easier to
> edit changes. One requirement would then be that the plugin dissectors
> provide also a Makefile.MingW.

You mean a 'epan/Makefile.MingW'? I can't see why since the power of
GNU make makes it easy for "small" projects like Ethereal to have a 
single makefile. (btw. I tried the same for a big project like the Firefox browser,
but failed due to too many external dependencies).

I hesitate to adapt to a mediocre program like MS' nmake. I wish it could
be the other way around. Use GNU make to build the MSVC version.
E.g. instead of listing all the dissector files manually, I simply used
 DISSECTOR_SRC = $(shell ls packet*.c)

> Doing so will be much more acceptable for inclusion in the current
> distribution, as it requires no extra work (that was the reason why we
> created the Makefile.common files).

I don't demand you including Makefile.MingW in the distro. But I wouldn't
mind. I mainly created it for my own use (since I don't particulariry like
automake/configure that much).

--gv