2000-04-12 21:52:11 +00:00
|
|
|
#
|
2003-12-02 19:37:05 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.39 2003/12/02 19:37:04 guy Exp $
|
2000-04-12 21:52:11 +00:00
|
|
|
#
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include ..\config.nmake
|
2001-03-23 02:05:29 +00:00
|
|
|
include <win32.mak>
|
2000-02-09 00:41:57 +00:00
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H $(GLIB_CFLAGS) $(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
|
2002-06-13 10:39:29 +00:00
|
|
|
-D_U_="" $(LOCAL_CFLAGS)
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(cvarsdll) $(CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2003-12-02 19:37:05 +00:00
|
|
|
OBJECTS=airopeek9.obj \
|
|
|
|
ascend-grammar.obj \
|
1999-12-15 08:08:42 +00:00
|
|
|
ascend-scanner.obj \
|
|
|
|
ascend.obj \
|
2002-04-30 18:58:16 +00:00
|
|
|
atm.obj \
|
1999-12-15 08:08:42 +00:00
|
|
|
buffer.obj \
|
2002-07-31 19:27:57 +00:00
|
|
|
cosine.obj \
|
2000-08-08 22:16:42 +00:00
|
|
|
csids.obj \
|
2001-10-19 20:18:48 +00:00
|
|
|
dbs-etherwatch.obj \
|
2003-08-26 07:10:39 +00:00
|
|
|
erf.obj \
|
2001-02-22 22:03:31 +00:00
|
|
|
etherpeek.obj \
|
2003-08-23 08:34:12 +00:00
|
|
|
file_access.obj \
|
2000-01-13 18:26:15 +00:00
|
|
|
file_wrappers.obj \
|
2003-10-30 03:11:03 +00:00
|
|
|
hcidump.obj \
|
1999-12-15 08:08:42 +00:00
|
|
|
i4btrace.obj \
|
|
|
|
iptrace.obj \
|
|
|
|
lanalyzer.obj \
|
|
|
|
libpcap.obj \
|
|
|
|
netmon.obj \
|
|
|
|
nettl.obj \
|
2003-10-31 00:43:21 +00:00
|
|
|
network_instruments.obj \
|
1999-12-15 08:08:42 +00:00
|
|
|
netxray.obj \
|
|
|
|
ngsniffer.obj \
|
|
|
|
radcom.obj \
|
2000-09-19 17:27:08 +00:00
|
|
|
pppdump.obj \
|
1999-12-15 08:08:42 +00:00
|
|
|
snoop.obj \
|
|
|
|
toshiba.obj \
|
2001-12-04 22:28:19 +00:00
|
|
|
visual.obj \
|
2001-10-18 20:29:56 +00:00
|
|
|
vms.obj \
|
2003-07-29 19:42:01 +00:00
|
|
|
wtap.obj \
|
|
|
|
5views.obj
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
|
|
|
|
wiretap_LIBS = \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS) \
|
2003-11-07 23:27:13 +00:00
|
|
|
$(ZLIB_LIBS)
|
2001-03-23 02:05:29 +00:00
|
|
|
|
|
|
|
all: wiretap-$(WTAP_VERSION).dll
|
|
|
|
|
|
|
|
wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
|
|
|
|
wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
|
|
|
|
|
|
|
|
wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
|
|
|
|
$(link) $(dlllflags) $(conlibsdll) \
|
|
|
|
$(LOCAL_LDFLAGS) \
|
|
|
|
/DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
|
|
|
|
/IMPLIB:wiretap-$(WTAP_VERSION).lib \
|
|
|
|
$(OBJECTS) $(wiretap_LIBS)
|
|
|
|
|
|
|
|
$(OBJECTS): config.h
|
2000-02-09 00:41:57 +00:00
|
|
|
|
|
|
|
ascend-grammar.c ascend-grammar.h : ascend-grammar.y
|
|
|
|
$(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
|
|
|
|
|
|
|
|
ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
|
|
|
|
|
|
|
|
ascend-scanner.c : ascend-scanner.l
|
2000-04-06 06:19:42 +00:00
|
|
|
$(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
config.h : config.h.win32 ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(WTAP_VERSION)/ \
|
|
|
|
-e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
|
|
|
|
< config.h.win32 > $@
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean :
|
2003-10-10 21:31:53 +00:00
|
|
|
rm -f $(OBJECTS) \
|
2001-03-23 02:05:29 +00:00
|
|
|
wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wiretap-$(WTAP_VERSION).exp \
|
2001-04-12 18:07:22 +00:00
|
|
|
wiretap-$(WTAP_VERSION).dll \
|
2003-10-10 21:31:53 +00:00
|
|
|
$(PDB_FILE)
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f config.h ascend-grammar.c ascend-grammar.h ascend-scanner.c
|