Your plugins/xxx/Makefile.common should only list the main source file(s),
which exports register_*() and handoff_*(), for your dissector in the
-DISSECTOR_SRC variable, and all other supporting source files in the
-DISSECTOR_SUPPORT_SRC variable.
+DISSECTOR_SRC variable. All other supporting source files should be listed
+in the DISSECTOR_SUPPORT_SRC variable, and this variable added to the
+xxx_la_SOURCES variable in Makefile.am.
The header files for your dissector, if any, must be listed in the
DISSECTOR_INCLUDES variable. The DISSECTOR_INCLUDES variable should not
include moduleinfo.h.
CMakeLists.txt
epan/Makefile.am
Makefile.am
- Makefile.nmake
packaging/nsis/Makefile.nmake
packaging/nsis/wireshark.nsi
plugins/Makefile.am
3.2 Changes to plugins/Makefile.nmake
-To the Makefile.nmake you need to add the following (in
-alphabetical order) for your plugin to the process-plugins: rule
-
- cd xxx
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
-
-Then add a copy command to the install-plugins rule:
-
- ...
- xcopy plugins\xxx\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- cd plugins
- if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
+In plugins/Makefile.nmake you need to add to the PLUGINS_LIST
+(in alphabetical order) the name of your dissector (actually:
+the name of the plugins sub-directory which contains your dissector).
3.3 Changes to the top level Makefile.am