Include <time.h> to declare "gmtime()".
[obnox/wireshark/wip.git] / Makefile.nmake
1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: nmake -f makefile.nmake
3
4 GTK_VERSION=1.3
5 GLIB_VERSION=1.3
6
7 GLIB_DIR=c:\prj\gtk+-win32\src\glib
8 GTK_DIR=c:\prj\gtk+-win32\src\gtk+
9
10 #LOCAL_CFLAGS=/Ic:\tools\msdev\include
11 LOCAL_CFLAGS=
12
13 ############### no need to modify below this line #########
14
15 CC = cl
16 LINK= link
17
18 LDFLAGS = /NOLOGO /SUBSYSTEM:console /INCREMENTAL:no /MACHINE:I386 \
19         /OUT:ethereal.exe
20
21 CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GTK_DIR) /Iwiretap \
22         /I$(GTK_DIR)\gdk\win32
23
24 OBJECTS=packet-aarp.obj \
25         packet-afs.obj \
26         packet-arp.obj \
27         packet-ascend.obj \
28         packet-atalk.obj \
29         packet-atm.obj \
30         packet-auto-rp.obj \
31         packet-bgp.obj \
32         packet-bootp.obj \
33         packet-bootparams.obj \
34         packet-bpdu.obj \
35         packet-cdp.obj \
36         packet-clip.obj \
37         packet-data.obj \
38         packet-dns.obj \
39         packet-eth.obj \
40         packet-fddi.obj \
41         packet-ftp.obj \
42         packet-giop.obj \
43         packet-gre.obj \
44         packet-hsrp.obj \
45         packet-http.obj \
46         packet-icmpv6.obj \
47         packet-icp.obj \
48         packet-icq.obj \
49         packet-imap.obj \
50         packet-ip.obj \
51         packet-ipsec.obj \
52         packet-ipv6.obj \
53         packet-ipx.obj \
54         packet-irc.obj \
55         packet-isakmp.obj \
56         packet-isis.obj \
57         packet-isis-clv.obj \
58         packet-isis-hello.obj \
59         packet-isis-lsp.obj \
60         packet-isis-snp.obj \
61         packet-lapb.obj \
62         packet-lapd.obj \
63         packet-ldap.obj \
64         packet-llc.obj \
65         packet-lpd.obj \
66         packet-mapi.obj \
67         packet-mount.obj \
68         packet-nbipx.obj \
69         packet-nbns.obj \
70         packet-ncp.obj \
71         packet-netbios.obj \
72         packet-nfs.obj \
73         packet-nlm.obj \
74         packet-nntp.obj \
75         packet-null.obj \
76         packet-osi.obj \
77         packet-ospf.obj \
78         packet-pim.obj \
79         packet-pop.obj \
80         packet-portmap.obj \
81         packet-ppp.obj \
82         packet-pppoe.obj \
83         packet-pptp.obj \
84         packet-q2931.obj \
85         packet-q931.obj \
86         packet-radius.obj \
87         packet-raw.obj \
88         packet-rip.obj \
89         packet-ripng.obj \
90         packet-rpc.obj \
91         packet-rsvp.obj \
92         packet-rtsp.obj \
93         packet-rx.obj \
94         packet-sap.obj \
95         packet-sdp.obj \
96         packet-smb.obj \
97         packet-sna.obj \
98         packet-snmp.obj \
99         packet-srvloc.obj \
100         packet-sscop.obj \
101         packet-stat.obj \
102         packet-tacacs.obj \
103         packet-tcp.obj \
104         packet-telnet.obj \
105         packet-tftp.obj \
106         packet-sns.obj \
107         packet-tr.obj \
108         packet-trmac.obj \
109         packet-udp.obj \
110         packet-v120.obj \
111         packet-vines.obj \
112         packet-vlan.obj \
113         packet-vrrp.obj \
114         packet-wccp.obj \
115         packet-who.obj \
116         packet-x25.obj \
117         packet-yhoo.obj \
118         packet-ypbind.obj \
119         packet-ypserv.obj \
120         packet-ypxfr.obj \
121         asn1.obj \
122         capture.obj \
123         colors.obj \
124         column.obj \
125         conversation.obj \
126         dfilter-grammar.obj \
127         dfilter-scanner.obj \
128         dfilter.obj \
129         ethertype.obj \
130         file.obj \
131         follow.obj \
132         ipproto.obj \
133         packet.obj \
134         prefs.obj \
135         print.obj \
136         proto.obj \
137         ps.obj \
138         register.obj \
139         resolv.obj \
140         summary.obj \
141         util.obj \
142         xdlc.obj \
143         snprintf.obj \
144         strerror.obj 
145
146 LIBS= wiretap\libwtap.lib gtk\libui.lib wsock32.lib \
147         $(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
148         $(GTK_DIR)\gdk\win32\gdk-$(GTK_VERSION).lib \
149         $(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
150         $(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib
151
152
153 ethereal.exe    : config.h $(OBJECTS) 
154         $(LINK) @<<
155                 $(LDFLAGS) $(LIBS) $(OBJECTS)
156 <<
157
158 config.h        : config.h.win32
159         copy config.h.win32 $@
160
161 ps.c    : rdps.exe print.ps
162         rdps print.ps ps.c
163