diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-12-19 22:28:22 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-12-19 22:28:22 +0000 |
commit | 9655aa59fefa655a4a4d9c592b23bb588e4af7b0 (patch) | |
tree | 7629bb5c7e8647f0d82acab81c05cd0f0de5fe10 /plugins/sbus/Makefile.nmake | |
parent | cf919a1adb1e5aa252e046f924fd6911b643bd39 (diff) |
Add Windows version info resource.
svn path=/trunk/; revision=20174
Diffstat (limited to 'plugins/sbus/Makefile.nmake')
-rw-r--r-- | plugins/sbus/Makefile.nmake | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/plugins/sbus/Makefile.nmake b/plugins/sbus/Makefile.nmake index 0cfbb29721..4e89cf9b32 100644 --- a/plugins/sbus/Makefile.nmake +++ b/plugins/sbus/Makefile.nmake @@ -1,12 +1,11 @@ # Makefile.nmake -# nmake file for sbus 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 -sbus.dll sbus.exp sbus.lib : $(OBJECTS) $(LINK_PLUGIN_WITH) - link -dll /out:sbus.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) sbus.dll sbus.exp sbus.lib *.pdb + rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp \ + $(RESOURCE) $(PLUGIN_NAME).rc $(PLUGIN_NAME).lib *.pdb distclean: clean |