![Guy Harris](/assets/img/avatar_default.png)
"config.nmake", and just use the variables set based on the results of those tests in various "Makefile.nmake" files. svn path=/trunk/; revision=7891
78 lines
1.7 KiB
Makefile
78 lines
1.7 KiB
Makefile
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
#
|
|
# $Id: Makefile.nmake,v 1.29 2003/06/15 23:04:47 guy Exp $
|
|
|
|
include ..\config.nmake
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I../wiretap $(GTK_CFLAGS) \
|
|
$(ADNS_CFLAGS) /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_LIBS)
|
|
|
|
.c.obj::
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
|
|
|
OBJECTS=atalk-utils.obj \
|
|
bitswap.obj \
|
|
circuit.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 ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ -e "s;@HAVE_GNU_ADNS@;$(ADNS_CONFIG);" < 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 ..
|