Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] small query

From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Wed, 29 Aug 2012 11:42:11 +0100
> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-
> bounces@xxxxxxxxxxxxx] On Behalf Of Ed Beroset
> Sent: 29 August 2012 11:32
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] small query
>
> Krishnamurthy Mayya wrote:
> > Hi all,
> >    If i am writing a new file, in order for it to be compiled do i
> > have to include the file-name in any existing directory/files??
> >    the location of the new file is epan/dissectors.
>
> Generally, yes.  The easiest way to find out where in a well-established
> project like Wireshark is to identify some similar file, such as
packet-spice.c
> and use grep to find out where that file is mentioned.
> When I do that, I find that packet-spice.c is mentioned in
> epan/CMakeLists.txt and epan/dissectors/Makefile.common which suggests
> where your file name might be added.
>
[Graham Bloice said]

Or I might read the provided documentation, in docs/README.developer, in
particular section "1.9 Editing Makefile.common and CMakeLists.txt to add
your dissector."

There is also a veritable shedload of other useful info in the same file
as well.