Wireshark mailing list archives
Re: Modifying Makefile to include new tap
From: Guy Harris <guy () alum mit edu>
Date: Mon, 12 Apr 2010 19:09:49 -0700
On Apr 12, 2010, at 5:15 PM, Shawn Mayer wrote:
Wireshark's Makefile is well beyond anything I've ever edited,
Wireshark's Makefile is well beyond anything most people have ever edited, as it's generated by two levels of software; automake turns Makefile.am, and whatever it includes, to Makefile.in, and the configure script turns Makefile.in to Makefile. Editing Makefile itself is not recommended.
so how would I add a tap to it?
If you don't have automake, you can't do the best thing, which is to edit the appropriate Makefile.common; in that case:
If the tap has no GUI (such as a TShark-only tap), edit the top-level Makefile.in and add it to the
TSHARK_TAP_SRC list.
If the tap has a GUI (a Wireshark-only tap), edit gtk/Makefile.in and add it to the WIRESHARK_TAP_SRC list.
Then re-run the configure script (it *might* rerun the configure script for you if you do a make, but I'm not sure).
If you *do* have automake (and autoconf and libtool) installed:
If the tap has no GUI (such as a TShark-only tap), edit the top-level Makefile.common and add it to the
TSHARK_TAP_SRC list.
If the tap has a GUI (a Wireshark-only tap), edit gtk/Makefile.common and add it to the WIRESHARK_TAP_SRC list.
Then, if you haven't already run ./autogen.sh, do that, and then run the configure script. Otherwise, just running
make should suffice.
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Modifying Makefile to include new tap Shawn Mayer (Apr 12)
- Re: Modifying Makefile to include new tap Guy Harris (Apr 12)
- Re: Modifying Makefile to include new tap Shawn Mayer (Apr 12)
- Re: Modifying Makefile to include new tap Guy Harris (Apr 12)
