aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-04 08:22:13 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-04 08:22:13 +0000
commite59a0d5260523aa2eeafe63a9d8686aea615c048 (patch)
treebc9a6faffec2aaeb2aa9f42f5548bfd1138d6d3c
parentc2b1feea055c65f002bd86d4f4dba6b48453e942 (diff)
downloadwireshark-e59a0d5260523aa2eeafe63a9d8686aea615c048.tar.gz
wireshark-e59a0d5260523aa2eeafe63a9d8686aea615c048.tar.bz2
wireshark-e59a0d5260523aa2eeafe63a9d8686aea615c048.zip
The Win32 port of libpcap requires that programs with which it's built
be built as multi-threaded programs; add "/MT" to the list of compiler flags. Add "clean" rules in subdirectories, and run subdirectory "nmake -f Makefile.nmake clean" when "nmake -f Makefile.nmake clean" is done in the top-level directory, so that "nmake -f Makefile.nmake clean" cleans everything up. svn path=/trunk/; revision=1791
-rw-r--r--Makefile.nmake9
-rw-r--r--gtk/Makefile.nmake5
-rw-r--r--wiretap/Makefile.nmake4
3 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.nmake b/Makefile.nmake
index 25946b30bc..e9c658b443 100644
--- a/Makefile.nmake
+++ b/Makefile.nmake
@@ -11,7 +11,7 @@ LINK= link
LDFLAGS = /NOLOGO /SUBSYSTEM:console /INCREMENTAL:no /MACHINE:I386 \
$(LOCAL_LDFLAGS) /OUT:ethereal.exe
-CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
+CFLAGS=/MT -DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
/I$(GTK_DIR) /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
/I$(PCAP_DIR)/include
@@ -197,6 +197,13 @@ dfilter-grammar.c dfilter-grammer.h : dfilter-grammar.y
clean:
rm -f $(ethereal_OBJECTS) $(EXTRA_ethereal_OBJECTS) ethereal.exe
+ cd wiretap
+ nmake -f Makefile.nmake clean
+ cd ../gtk
+ nmake -f Makefile.nmake clean
+ cd ../plugins
+ nmake -f Makefile.nmake clean
+ cd ..
wiretap::
cd wiretap
diff --git a/gtk/Makefile.nmake b/gtk/Makefile.nmake
index 7848b23033..68ccef75ba 100644
--- a/gtk/Makefile.nmake
+++ b/gtk/Makefile.nmake
@@ -2,7 +2,7 @@ include ..\config.nmake
############### no need to modify below this line #########
-CFLAGS=/DHAVE_CONFIG_H /I.. /I../wiretap \
+CFLAGS=/MT /DHAVE_CONFIG_H /I.. /I../wiretap \
/I$(GLIB_DIR) /I$(GTK_DIR) /I$(GLIB_DIR)/gmodule \
/I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
/I$(PCAP_DIR)\include $(LOCAL_CFLAGS)
@@ -41,3 +41,6 @@ libui.lib : ..\config.h $(OBJECTS)
..\config.h : ..\config.h.win32
copy ..\config.h.win32 ..\config.h
+
+clean:
+ rm -f $(OBJECTS) libui.lib
diff --git a/wiretap/Makefile.nmake b/wiretap/Makefile.nmake
index 539e5db8d6..9d6dc81a8c 100644
--- a/wiretap/Makefile.nmake
+++ b/wiretap/Makefile.nmake
@@ -3,7 +3,7 @@ include ..\config.nmake
############### no need to modify below this line #########
-CFLAGS=/DHAVE_CONFIG_H /I$(GLIB_DIR) $(LOCAL_CFLAGS)
+CFLAGS=/MT /DHAVE_CONFIG_H /I$(GLIB_DIR) $(LOCAL_CFLAGS)
OBJECTS=ascend-grammar.obj \
ascend-scanner.obj \
@@ -39,3 +39,5 @@ ascend-scanner.c : ascend-scanner.l
config.h : config.h.win32
copy config.h.win32 $@
+clean :
+ rm -f $(OBJECTS) libwtap.lib