diff options
Diffstat (limited to 'plugins/irda/Makefile.nmake')
-rw-r--r-- | plugins/irda/Makefile.nmake | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/plugins/irda/Makefile.nmake b/plugins/irda/Makefile.nmake index 6d5a8a32c1..4e89cf9b32 100644 --- a/plugins/irda/Makefile.nmake +++ b/plugins/irda/Makefile.nmake @@ -1,12 +1,11 @@ # Makefile.nmake -# nmake file for IrDA 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 -irda.dll irda.exp irda.lib : $(OBJECTS) $(LINK_PLUGIN_WITH) - link -dll /out:irda.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) irda.dll irda.exp irda.lib *.pdb + rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp \ + $(RESOURCE) $(PLUGIN_NAME).rc $(PLUGIN_NAME).lib *.pdb distclean: clean |