Rename "wiretap/file.c" to "wiretap/file_io.c", as some tools, such as
[metze/wireshark/wip.git] / wiretap / Makefile.nmake
1 #
2 # $Id: Makefile.nmake,v 1.32 2003/08/22 19:07:44 guy 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 $(GLIB_CFLAGS) /I$(ZLIB_DIR) /I$(PCAP_DIR)/include \
11         -D_U_="" $(LOCAL_CFLAGS)
12
13 .c.obj::
14    $(CC) $(cvarsdll) $(CFLAGS) -Fd.\ -c $<
15
16 OBJECTS=ascend-grammar.obj \
17         ascend-scanner.obj \
18         ascend.obj \
19         atm.obj \
20         buffer.obj \
21         cosine.obj \
22         csids.obj \
23         dbs-etherwatch.obj \
24         etherpeek.obj \
25         file_io.obj \
26         file_wrappers.obj \
27         i4btrace.obj \
28         iptrace.obj \
29         lanalyzer.obj \
30         libpcap.obj \
31         netmon.obj \
32         nettl.obj \
33         netxray.obj \
34         ngsniffer.obj \
35         radcom.obj \
36         pppdump.obj \
37         snoop.obj \
38         toshiba.obj \
39         visual.obj \
40         vms.obj \
41         wtap.obj \
42         5views.obj
43
44
45 wiretap_LIBS = \
46         $(GLIB_LIBS)    \
47         $(ZLIB_DIR)\zlib.lib
48
49 all: wiretap-$(WTAP_VERSION).dll
50
51 wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
52 wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
53
54 wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
55         $(link) $(dlllflags) $(conlibsdll) \
56                 $(LOCAL_LDFLAGS) \
57                 /DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
58                 /IMPLIB:wiretap-$(WTAP_VERSION).lib \
59                 $(OBJECTS) $(wiretap_LIBS)
60
61 $(OBJECTS): config.h
62
63 ascend-grammar.c ascend-grammar.h : ascend-grammar.y
64         $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
65
66 ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
67
68 ascend-scanner.c : ascend-scanner.l
69         $(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
70
71
72 config.h        : config.h.win32
73         sed -e s/@VERSION@/$(WTAP_VERSION)/ < config.h.win32 > $@
74
75 clean :
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 \
80                 config.h $(PDB_FILE)