forked from osmocom/wireshark
b4971b39bf
In the "configure.in" files, add -D_U_="__attribute__((unused))" to CFLAGS if we're using GCC, and add -D_U_="" otherwise, so _U_ can be used to mark arguments as unused. Add -D_U_="" arguments to the Makefile.nmake files as well, so _U_ works with Microsoft Visual C++ as well. Add comments and RCS IDs to the Makefile.nmake files that don't already have them. svn path=/trunk/; revision=4824
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
#
|
|
# $Id: Makefile.nmake,v 1.22 2002/02/27 09:42:39 guy Exp $
|
|
|
|
include ..\config.nmake
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I. /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 -D_U_="" $(LOCAL_CFLAGS)
|
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
# For use when making ethereal.dll
|
|
libethereal_LIBS = \
|
|
wsock32.lib user32.lib \
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
|
|
.c.obj::
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
|
|
|
OBJECTS=atalk-utils.obj \
|
|
bitswap.obj \
|
|
column-utils.obj \
|
|
conversation.obj \
|
|
epan.obj \
|
|
except.obj \
|
|
filesystem.obj \
|
|
frame_data.obj \
|
|
inet_aton.obj \
|
|
inet_pton.obj \
|
|
inet_ntop.obj \
|
|
ipv4.obj \
|
|
int-64bit.obj \
|
|
osi-utils.obj \
|
|
packet.obj \
|
|
plugins.obj \
|
|
proto.obj \
|
|
resolv.obj \
|
|
sna-utils.obj \
|
|
strutil.obj \
|
|
to_str.obj \
|
|
tvbuff.obj \
|
|
value_string.obj \
|
|
|
|
|
|
all: ftypes dfilter ethereal.lib
|
|
|
|
# For use when making ethereal.dll
|
|
#ethereal.dll ethereal.lib : config.h $(OBJECTS)
|
|
# link /DLL /out:ethereal.dll $(OBJECTS) $(libethereal_LIBS)
|
|
|
|
ethereal.lib : config.h $(OBJECTS)
|
|
lib /out:ethereal.lib $(OBJECTS)
|
|
|
|
config.h : config.h.win32
|
|
sed -e s/@VERSION@/$(VERSION)/ < config.h.win32 > $@
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) ethereal.lib config.h $(PDB_FILE)
|
|
cd ftypes
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
cd ../dfilter
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
|
|
ftypes:: config.h
|
|
cd ftypes
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|
|
|
|
dfilter:: config.h
|
|
cd dfilter
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|