diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-05-09 10:03:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-05-09 10:03:41 +0000 |
commit | 15af0f656fcd75bfcacb975476aab614e7ed8dd3 (patch) | |
tree | 96fab6287a112ff9379ebf012a7a939884b62ec1 /plugins/mgcp/Makefile.nmake | |
parent | b964421aec471b54755db1ab9ebc768467b6fdd5 (diff) |
From Lars Roland: add support for building a libethereal.dll with MSVC:
add a config.nmake option to control whether to build
libethereal.dll or not;
remove "./wiretap" from PATH to prevent problems due to
wrongly-loaded files;
build dissector.lib with MSVC;
move "print.c" and "ps.c" to the dissector helpers, as "print.c"
imports variables from packet-frame.c and packet-data.c, which
are in libethereal;
move "g711.c" out of the dissector helpers, as they're used only
by Ethereal in a tap, not in Tethereal or in any dissector;
add a .def file for libethereal;
arrange to declare global variables exported from libethereal
with "__declspec(dllimport)" when building programs that import
those variables;
update the NSIS installer.
Make the "configure" script define ETH_VAR_IMPORT as "extern".
svn path=/trunk/; revision=10834
Diffstat (limited to 'plugins/mgcp/Makefile.nmake')
-rw-r--r-- | plugins/mgcp/Makefile.nmake | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/plugins/mgcp/Makefile.nmake b/plugins/mgcp/Makefile.nmake index def2123ad3..91a785222b 100644 --- a/plugins/mgcp/Makefile.nmake +++ b/plugins/mgcp/Makefile.nmake @@ -1,18 +1,33 @@ # -# $Id: Makefile.nmake,v 1.9 2003/11/06 09:05:13 guy Exp $ +# $Id: Makefile.nmake,v 1.10 2004/05/09 10:03:41 guy Exp $ # 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 +LINK_PLUGIN_WITH=..\..\epan\libethereal.lib +CFLAGS=/DHAVE_WIN32_LIBETHEREAL_LIB $(CFLAGS) +!ENDIF +!ENDIF + +!IFNDEF LINK_PLUGIN_WITH +LINK_PLUGIN_WITH=..\plugin_api.obj +!ENDIF + OBJECTS=packet-mgcp.obj -mgcp.dll mgcp.exp mgcp.lib : $(OBJECTS) ..\plugin_api.obj - link -dll /out:mgcp.dll $(OBJECTS) ..\plugin_api.obj \ +mgcp.dll mgcp.exp mgcp.lib : $(OBJECTS) $(LINK_PLUGIN_WITH) + link -dll /out:mgcp.dll $(OBJECTS) $(LINK_PLUGIN_WITH) \ $(GLIB_LIBS) clean: |