From 444119dbcb8228e5a47b6e00f7932aa04759b13d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 29 Sep 2004 19:30:10 +0000 Subject: From Lars Roland: add an option to link plugins with libethereal rather than using the plugin address table. svn path=/trunk/; revision=12139 --- doc/README.plugins | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/README.plugins b/doc/README.plugins index 2fbc865c1b..05e255f011 100644 --- a/doc/README.plugins +++ b/doc/README.plugins @@ -148,10 +148,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-xxx.obj -xxx.dll xxx.exp xxx.lib : $(OBJECTS) ..\plugin_api.obj - link -dll /out:xxx.dll $(OBJECTS) ..\plugin_api.obj \ +xxx.dll xxx.exp xxx.lib : $(OBJECTS) $(LINK_PLUGIN_WITH) + link -dll /out:xxx.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \ $(GLIB_LIBS) clean: -- cgit v1.2.3