2 # $Id: Makefile.nmake,v 1.19 2001/04/06 03:52:45 gram Exp $
5 include ..\config.nmake
8 ############### no need to modify below this line #########
10 CFLAGS=-DHAVE_CONFIG_H /I$(GLIB_DIR) /I$(ZLIB_DIR) $(LOCAL_CFLAGS)
13 $(CC) $(cvarsdll) $(CFLAGS) -Fd$O\ -c $<
15 OBJECTS=ascend-grammar.obj \
39 $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
42 all: wiretap-$(WTAP_VERSION).dll
44 wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
45 wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
47 wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
48 $(link) $(dlllflags) $(conlibsdll) \
50 /DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
51 /IMPLIB:wiretap-$(WTAP_VERSION).lib \
52 $(OBJECTS) $(wiretap_LIBS)
56 ascend-grammar.c ascend-grammar.h : ascend-grammar.y
57 $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
59 ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
61 ascend-scanner.c : ascend-scanner.l
62 $(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
65 config.h : config.h.win32
66 sed -e s/@VERSION@/$(WTAP_VERSION)/ < config.h.win32 > $@
69 rm -f $(OBJECTS) ascend-grammar.c ascend-grammar.h ascend-scanner.c \
70 wiretap-$(WTAP_VERSION).lib \
71 wiretap-$(WTAP_VERSION).exp \
72 wiretap-$(WTAP_VERSION).dll