1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
4 # $Id: Makefile.nmake,v 1.77 2004/06/25 07:10:54 jmayer Exp $
6 include ..\config.nmake
8 ############### no need to modify below this line #########
10 CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) \
11 /I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
12 /I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
13 /I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
14 /I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS)
16 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
19 $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
21 include Makefile.common
24 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
25 ETHEREAL_WIN32_GTK_SRC = \
30 ETHEREAL_TAP_OBJECTS = $(ETHEREAL_TAP_SRC:.c=.obj)
33 ETHEREAL_WIN32_GTK_OBJECTS = $(ETHEREAL_WIN32_GTK_SRC:.c=.obj)
36 libui.lib : ..\config.h $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
37 lib /out:libui.lib $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
39 ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc Makefile.common
40 @echo Making ethereal-tap-register.c
41 @$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)
45 rm -f $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.cfg
48 rm -f ethereal-tap-register.c
50 # convert doxygen.cfg.in to doxygen.cfg with stamped version info
51 doxygen.cfg: ..\config.nmake doxygen.cfg.in
53 sed -e s/@VERSION@/$(VERSION)/ \
59 $(DOXYGEN) doxygen.cfg
62 # MS html help conpiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
63 # the prepended -1 will raise the accepted error levels of nmake, so it will continue
66 -1 $(HHC) html\index.hhp
69 doxygen: doxygen.cfg doxygen-run doxygen.chm