2 # $Id: Makefile.nmake,v 1.32 2003/08/22 19:07:44 guy Exp $
5 include ..\config.nmake
8 ############### no need to modify below this line #########
10 CFLAGS=-DHAVE_CONFIG_H $(GLIB_CFLAGS) /I$(ZLIB_DIR) /I$(PCAP_DIR)/include \
11 -D_U_="" $(LOCAL_CFLAGS)
14 $(CC) $(cvarsdll) $(CFLAGS) -Fd.\ -c $<
16 OBJECTS=ascend-grammar.obj \
49 all: wiretap-$(WTAP_VERSION).dll
51 wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
52 wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
54 wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
55 $(link) $(dlllflags) $(conlibsdll) \
57 /DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
58 /IMPLIB:wiretap-$(WTAP_VERSION).lib \
59 $(OBJECTS) $(wiretap_LIBS)
63 ascend-grammar.c ascend-grammar.h : ascend-grammar.y
64 $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
66 ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
68 ascend-scanner.c : ascend-scanner.l
69 $(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
72 config.h : config.h.win32
73 sed -e s/@VERSION@/$(WTAP_VERSION)/ < config.h.win32 > $@
76 rm -f $(OBJECTS) ascend-grammar.c ascend-grammar.h ascend-scanner.c \
77 wiretap-$(WTAP_VERSION).lib \
78 wiretap-$(WTAP_VERSION).exp \
79 wiretap-$(WTAP_VERSION).dll \