I have cut an pasted the Windows Makefile.nmake below from the developer
guide.
My dissector is the sample one from the guide, and I have stuck with the
name foo.
I think I have followed the edits in README.plugins correctly, but I am not
familiar with nmake and I get lost at section 4.
My questions are;
1. What command do I type at the command line to build the dissector dll,
and which directory should I be in when I type it ( I only want to build the
disssector as a plugin, I have built Wireshark from the source and it
works). ?
2. To get Wireshark to use the new dissector do I just need to put the dll
where the other dissector dlls are i.e. in wireshark-gtk2\plugins\0.99.4 ?
TIA
Hal
include ..\..\config.nmake
############### no need to modify below this line #########
CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \
/I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
!IFDEF ENABLE_LIBWIRESHARK
LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
CFLAGS=/DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)
OBJECTS=foo.obj
foo.dll foo.exp foo.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
link -dll /out:foo.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
$(GLIB_LIBS)
!ENDIF
clean:
rm -f $(OBJECTS) foo.dll foo.exp foo.lib *.pdb
distclean: clean
maintainer-clean: distclean
_________________________________________________________________
Find a local pizza place, music store, museum and more�then map the best
route! http://local.live.com?FORM=MGA001