From Graham Bloice: add resources to wiretap.dll.
[metze/wireshark/wip.git] / wiretap / Makefile.nmake
1 #
2 # $Id$
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) $(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
11         -D_U_="" $(LOCAL_CFLAGS)
12
13 .c.obj::
14    $(CC) $(cvarsdll) $(CFLAGS) -Fd.\ -c $<
15
16 OBJECTS=airopeek9.obj \
17         ascend-grammar.obj \
18         ascend-scanner.obj \
19         ascend.obj \
20         atm.obj \
21         buffer.obj \
22         cosine.obj \
23         csids.obj \
24         dbs-etherwatch.obj \
25         erf.obj \
26         etherpeek.obj \
27         file_access.obj \
28         file_wrappers.obj \
29         hcidump.obj \
30         i4btrace.obj \
31         iptrace.obj \
32         lanalyzer.obj \
33         libpcap.obj \
34         netmon.obj \
35         nettl.obj \
36         network_instruments.obj \
37         netxray.obj \
38         ngsniffer.obj \
39         radcom.obj \
40         pppdump.obj \
41         snoop.obj \
42         toshiba.obj \
43         eyesdn.obj \
44         visual.obj \
45         vms.obj \
46         wtap.obj \
47         5views.obj
48
49
50 wiretap_LIBS = \
51         $(GLIB_LIBS)    \
52         $(ZLIB_LIBS)
53
54 all: wiretap-$(WTAP_VERSION).dll
55
56 wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
57 wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
58
59 wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def ..\image\wiretap.res
60         $(link) $(dlllflags) $(conlibsdll) \
61                 $(LOCAL_LDFLAGS) \
62                 /DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
63                 /IMPLIB:wiretap-$(WTAP_VERSION).lib \
64                 ..\image\wiretap.res \
65                 $(OBJECTS) $(wiretap_LIBS)
66
67 $(OBJECTS): config.h
68
69 ascend-grammar.c ascend-grammar.h : ascend-grammar.y
70         $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
71
72 ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
73
74 ascend-scanner.c : ascend-scanner.l
75         $(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
76
77
78 config.h        : config.h.win32 ..\config.nmake
79         sed -e s/@VERSION@/$(WTAP_VERSION)/ \
80             -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
81             < config.h.win32 > $@
82
83 clean :
84         rm -f $(OBJECTS) \
85                 wiretap-$(WTAP_VERSION).lib \
86                 wiretap-$(WTAP_VERSION).exp \
87                 wiretap-$(WTAP_VERSION).dll \
88                 $(PDB_FILE)
89
90 distclean: clean
91         rm -f config.h ascend-grammar.c ascend-grammar.h ascend-scanner.c