aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mgcp/Makefile.nmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-09-29 19:30:10 +0000
committerGuy Harris <guy@alum.mit.edu>2004-09-29 19:30:10 +0000
commit444119dbcb8228e5a47b6e00f7932aa04759b13d (patch)
tree6503a9fd9f6fe04381549206152314fc9dd5454b /plugins/mgcp/Makefile.nmake
parent28a6169ff7a93618819a83dd03695b8f8d41f8a8 (diff)
From Lars Roland: add an option to link plugins with libethereal rather
than using the plugin address table. svn path=/trunk/; revision=12139
Diffstat (limited to 'plugins/mgcp/Makefile.nmake')
-rw-r--r--plugins/mgcp/Makefile.nmake16
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/mgcp/Makefile.nmake b/plugins/mgcp/Makefile.nmake
index 70d3d1cdf1..b2104b1831 100644
--- a/plugins/mgcp/Makefile.nmake
+++ b/plugins/mgcp/Makefile.nmake
@@ -4,30 +4,24 @@
include ..\..\config.nmake
-# If you want this plugin to use libethereal.lib instead
-# of the standard plugin api, you have to comment out the next line
-#USE_LIBETHEREAL_LIB=YES
-
############### no need to modify below this line #########
CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \
/I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
-!IFDEF ENABLE_LIBETHEREAL
-!IFDEF USE_LIBETHEREAL_LIB
+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)
-!ENDIF
-!ENDIF
-
-!IFNDEF LINK_PLUGIN_WITH
+!ELSE
LINK_PLUGIN_WITH=..\plugin_api.obj
!ENDIF
OBJECTS=packet-mgcp.obj
mgcp.dll mgcp.exp mgcp.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
- link -dll /out:mgcp.dll $(OBJECTS) $(LINK_PLUGIN_WITH) \
+ link -dll /out:mgcp.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
$(GLIB_LIBS)
clean: