Build with zlib.
[metze/wireshark/wip.git] / wiretap / Makefile.nmake
1 #
2 # $Id: Makefile.nmake,v 1.19 2001/04/06 03:52:45 gram Exp $
3 #
4
5 include ..\config.nmake
6 include <win32.mak>
7
8 ############### no need to modify below this line #########
9
10 CFLAGS=-DHAVE_CONFIG_H /I$(GLIB_DIR) /I$(ZLIB_DIR) $(LOCAL_CFLAGS)
11
12 {$S}.c{$O}.obj::
13    $(CC) $(cvarsdll) $(CFLAGS) -Fd$O\ -c $<
14
15 OBJECTS=ascend-grammar.obj \
16         ascend-scanner.obj \
17         ascend.obj \
18         buffer.obj \
19         csids.obj \
20         etherpeek.obj \
21         file.obj \
22         file_wrappers.obj \
23         i4btrace.obj \
24         iptrace.obj \
25         lanalyzer.obj \
26         libpcap.obj \
27         netmon.obj \
28         nettl.obj \
29         netxray.obj \
30         ngsniffer.obj \
31         radcom.obj \
32         pppdump.obj \
33         snoop.obj \
34         toshiba.obj \
35         wtap.obj
36
37
38 wiretap_LIBS = \
39         $(GLIB_DIR)\glib-$(GLIB_VERSION).lib    \
40         $(ZLIB_DIR)\zlib.lib
41
42 all: wiretap-$(WTAP_VERSION).dll
43
44 wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
45 wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
46
47 wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
48         $(link) $(dlllflags) $(conlibsdll) \
49                 $(LOCAL_LDFLAGS) \
50                 /DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
51                 /IMPLIB:wiretap-$(WTAP_VERSION).lib \
52                 $(OBJECTS) $(wiretap_LIBS)
53
54 $(OBJECTS): config.h
55
56 ascend-grammar.c ascend-grammar.h : ascend-grammar.y
57         $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
58
59 ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
60
61 ascend-scanner.c : ascend-scanner.l
62         $(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
63
64
65 config.h        : config.h.win32
66         sed -e s/@VERSION@/$(WTAP_VERSION)/ < config.h.win32 > $@
67
68 clean :
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