diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-29 19:30:10 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-29 19:30:10 +0000 |
commit | 1ca10ac96d5a412cac13a8bcb95d18776a233b21 (patch) | |
tree | 6503a9fd9f6fe04381549206152314fc9dd5454b /plugins/gryphon | |
parent | de20a5387e3cfd14703467d7d5ae3a4f8fde004e (diff) |
From Lars Roland: add an option to link plugins with libethereal rather
than using the plugin address table.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12139 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/gryphon')
-rw-r--r-- | plugins/gryphon/Makefile.nmake | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/gryphon/Makefile.nmake b/plugins/gryphon/Makefile.nmake index 72f8f5ad79..d849d3191d 100644 --- a/plugins/gryphon/Makefile.nmake +++ b/plugins/gryphon/Makefile.nmake @@ -9,10 +9,19 @@ include ..\..\config.nmake 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 LINK_PLUGINS_WITH_LIBETHEREAL +LINK_PLUGIN_WITH=..\..\epan\libethereal.lib +CFLAGS=/DHAVE_WIN32_LIBETHEREAL_LIB $(CFLAGS) +!ELSE +LINK_PLUGIN_WITH=..\plugin_api.obj +!ENDIF + OBJECTS=packet-gryphon.obj -gryphon.dll gryphon.exp gryphon.lib : $(OBJECTS) ..\plugin_api.obj - link -dll /out:gryphon.dll $(OBJECTS) ..\plugin_api.obj \ +gryphon.dll gryphon.exp gryphon.lib : $(OBJECTS) $(LINK_PLUGIN_WITH) + link -dll /out:gryphon.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \ $(GLIB_LIBS) clean: |