aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/Makefile.nmake
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-05-20 21:51:01 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-05-20 21:51:01 +0000
commit58459d3fba39398b53294beccc307d539bd0db33 (patch)
tree7d78ccd8aad555faaf4ef91c0acc48b9a04ff2de /wsutil/Makefile.nmake
parent5364227de00058969236206467448325f4c823b6 (diff)
Create a new "Wireshark utility" library and move the mpeg-audio stuff from
wiretap to this new libwsutil. This solves http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1677 by making libwireshark no longer depend on libwiretap. svn path=/trunk/; revision=25330
Diffstat (limited to 'wsutil/Makefile.nmake')
-rw-r--r--wsutil/Makefile.nmake51
1 files changed, 51 insertions, 0 deletions
diff --git a/wsutil/Makefile.nmake b/wsutil/Makefile.nmake
new file mode 100644
index 0000000000..1a275bfd64
--- /dev/null
+++ b/wsutil/Makefile.nmake
@@ -0,0 +1,51 @@
+## Makefile for building wireshark.exe with Microsoft C and nmake
+## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
+#
+# $Id$
+
+include ..\config.nmake
+include <win32.mak>
+include ..\Makefile.nmake.inc
+
+############### no need to modify below this line #########
+
+CFLAGS=-WX -DHAVE_CONFIG_H /I. /I.. $(GLIB_CFLAGS) \
+ /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
+
+CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
+
+.c.obj::
+ $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
+
+
+libwsutil_LIBS =
+
+OBJECTS = \
+ mpeg-audio.obj
+
+
+libwsutil.lib: libwsutil.dll
+libwsutil.exp: libwsutil.dll
+
+libwsutil.dll : $(OBJECTS) libwsutil.def ..\image\libwsutil.res
+ $(link) $(dlllflags) $(conlibsdll) \
+ $(LOCAL_LDFLAGS) \
+ /DEF:libwsutil.def /OUT:libwsutil.dll \
+ /IMPLIB:libwsutil.lib \
+ ..\image\libwsutil.res \
+ $(OBJECTS) $(libwsutil_LIBS)
+!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
+ mt.exe -nologo -manifest "libwsutil.dll.manifest" -outputresource:libwsutil.dll;2
+!ENDIF
+
+clean :
+ rm -f $(OBJECTS) \
+ libwsutil.lib \
+ libwsutil.exp \
+ libwsutil.dll \
+ libwsutil.dll.manifest \
+ *.pdb
+
+distclean: clean
+
+maintainer-clean: distclean