aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pcli/Makefile.nmake
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pcli/Makefile.nmake')
-rw-r--r--plugins/pcli/Makefile.nmake30
1 files changed, 22 insertions, 8 deletions
diff --git a/plugins/pcli/Makefile.nmake b/plugins/pcli/Makefile.nmake
index 00b78d9183..4e89cf9b32 100644
--- a/plugins/pcli/Makefile.nmake
+++ b/plugins/pcli/Makefile.nmake
@@ -1,12 +1,11 @@
# Makefile.nmake
-# nmake file for Packet Cable Lawful Intercept plugin
+# nmake file for Wireshark plugin
#
# $Id$
#
include ..\..\config.nmake
-
-############### no need to modify below this line #########
+include moduleinfo.nmake
include Makefile.common
@@ -21,12 +20,26 @@ CFLAGS=/DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)
DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj)
-OBJECTS=$(DISSECTOR_OBJECTS) plugin.obj
+DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
+
+OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) plugin.obj
+
+RESOURCE=$(PLUGIN_NAME).res
+
+all: $(PLUGIN_NAME).dll
-pcli.dll pcli.exp pcli.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
- link -dll /out:pcli.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
- $(GLIB_LIBS)
+$(PLUGIN_NAME).rc : moduleinfo.nmake
+ sed -e s/@PLUGIN_NAME@/$(PLUGIN_NAME)/ \
+ -e s/@RC_MODULE_VERSION@/$(RC_MODULE_VERSION)/ \
+ -e s/@RC_VERSION@/$(RC_VERSION)/ \
+ -e s/@MODULE_VERSION@/$(MODULE_VERSION)/ \
+ -e s/@PACKAGE@/$(PACKAGE)/ \
+ -e s/@VERSION@/$(VERSION)/ \
+ < plugin.rc.in > $@
+$(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLUGIN_WITH) $(RESOURCE)
+ link -dll /out:$(PLUGIN_NAME).dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
+ $(GLIB_LIBS) $(RESOURCE)
#
# Build plugin.c, which contains the plugin version[] string, a
# function plugin_register() that calls the register routines for all
@@ -72,7 +85,8 @@ plugin.c: $(DISSECTOR_SRC)
!ENDIF
clean:
- rm -f $(OBJECTS) pcli.dll pcli.exp pcli.lib *.pdb
+ rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp \
+ $(RESOURCE) $(PLUGIN_NAME).rc $(PLUGIN_NAME).lib *.pdb
distclean: clean