Ethereal-dev: [Ethereal-dev] Re: how to include new files in wiretap?

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 23 Sep 2003 19:08:15 -0700
This is an ethereal-dev question, not an ethereal-users question. I'll send the answer to ethereal-users, in case anybody who might care doesn't read ethereal-dev, but I'll send replies to ethereal-dev.

On Sep 23, 2003, at 6:08 PM, parul singla wrote:

I'm trying to rebuild ethereal by adding 2 files (.c and .h) in the wiretap directory. This is to support the propritary file format which our company has.

when I try to do a "make" after "./configure" the above two files are not recognized and I get the error in "wiretap/file_access.c" where the call to the function (defined in the .c file) is there.

DO i have to manually add these files in the configure or make scripts?

Yes.

 If yes, which file and which place?

You add them to "Makefile.am", in the "libwiretap_a_SOURCES" list.

If you're building from CVS, "make" should re-generate "Makefile.in" from "Makefile.am" using automake, and should re-run the configure script to re-generate "Makefile" from "Makefile.in", and should rebuild with the new Makefile.

If you downloaded an Ethereal release source tarball, you might have to run "autogen.sh" from the top-level directory, and re-run the configure script.