2002-02-27 09:42:52 +00:00
|
|
|
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
2004-05-31 13:42:17 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.75 2004/05/31 13:42:17 ulfl Exp $
|
2002-02-27 09:42:52 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include ..\config.nmake
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
############### no need to modify below this line #########
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2003-06-14 20:36:04 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) \
|
2001-12-08 09:27:51 +00:00
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
|
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
|
2002-10-24 07:08:26 +00:00
|
|
|
/I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
|
2004-05-09 10:03:41 +00:00
|
|
|
/I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS)
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2004-01-22 18:08:58 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
|
|
|
|
|
|
|
# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
|
|
|
|
ETHEREAL_WIN32_GTK_SRC = \
|
|
|
|
$(ETHEREAL_GTK_SRC) \
|
|
|
|
print_mswin.c
|
|
|
|
|
2002-11-07 05:33:50 +00:00
|
|
|
|
|
|
|
ETHEREAL_TAP_OBJECTS = $(ETHEREAL_TAP_SRC:.c=.obj)
|
2002-11-06 10:53:36 +00:00
|
|
|
|
2004-01-22 18:08:58 +00:00
|
|
|
|
|
|
|
ETHEREAL_WIN32_GTK_OBJECTS = $(ETHEREAL_WIN32_GTK_SRC:.c=.obj)
|
|
|
|
|
|
|
|
|
|
|
|
libui.lib : ..\config.h $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
|
|
|
|
lib /out:libui.lib $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2004-05-20 11:53:52 +00:00
|
|
|
ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc Makefile.common
|
2003-12-03 23:46:23 +00:00
|
|
|
@echo Making ethereal-tap-register.c
|
|
|
|
@$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2004-05-31 13:42:17 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean:
|
2004-05-31 13:42:17 +00:00
|
|
|
rm -f $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.tmp
|
2003-10-10 21:31:53 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f ethereal-tap-register.c
|
2004-05-31 13:42:17 +00:00
|
|
|
|
|
|
|
doxygen.tmp: ..\config.nmake doxygen.cfg
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
< doxygen.cfg > $@
|
|
|
|
|
|
|
|
doxygen-run:
|
|
|
|
!IFDEF DOXYGEN
|
|
|
|
$(DOXYGEN) doxygen.tmp
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
doxygen: doxygen.tmp doxygen-run
|
|
|
|
|