(on behalf of the PROFIBUS Nutzerorganisation e.V. Deutschland):
[obnox/wireshark/wip.git] / Makefile.nmake
1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id$
5
6 include config.nmake
7 include <win32.mak>
8
9 ############### no need to modify below this line #########
10
11 CC = cl
12 LINK= link
13
14 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
15
16 CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
17         $(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
18         /I$(NET_SNMP_DIR)\include /I$(NET_SNMP_DIR)\win32 \
19         $(ADNS_CFLAGS) $(PCRE_CFLAGS) -D_U_=""
20
21 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
22
23 .c.obj::
24         $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
25
26 PLATFORM_SRC = capture-wpcap.c
27
28 include Makefile.common
29
30 include epan\Makefile.common
31
32 BUILT_SOURCES = $(BUILT_SOURCES) \
33         svnversion.h
34
35 DISSECTOR_SUPPORT_SRC = $(DISSECTOR_SUPPORT_SRC:../=)
36 DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
37 #DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_OBJECTS:../=)
38
39 ethereal_OBJECTS = $(ethereal_SOURCES:.c=.obj)
40 tethereal_OBJECTS = $(tethereal_SOURCES:.c=.obj)
41 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
42
43 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
44
45 command_line_OBJECTS = setargv.obj
46
47 EXTRA_OBJECTS = \
48 #       snprintf.obj    \
49 #       strerror.obj    \
50         mkstemp.obj     \
51         strptime.obj
52
53 ethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
54         wsock32.lib user32.lib shell32.lib \
55         $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
56 !IFDEF ENABLE_LIBETHEREAL
57         epan\libethereal.lib \
58 !ELSE
59         epan\dissectors\dissectors.lib \
60         epan\ethereal.lib \
61         epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
62         $(ADNS_LIBS) \
63         $(PCRE_LIBS) \
64         $(ZLIB_LIBS)
65 !ENDIF
66 #       $(PCAP_DIR)\lib\wpcap.lib
67
68 tethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
69         wsock32.lib user32.lib \
70         $(GLIB_LIBS) \
71         $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
72 !IFDEF ENABLE_LIBETHEREAL
73         epan\libethereal.lib \
74 !ELSE
75         epan\dissectors\dissectors.lib \
76         epan\ethereal.lib \
77         epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
78         $(ADNS_LIBS) \
79         $(PCRE_LIBS) \
80         $(ZLIB_LIBS)
81 !ENDIF
82
83 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
84         wsock32.lib user32.lib \
85         $(GLIB_LIBS)
86
87 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
88         wsock32.lib user32.lib \
89         $(GLIB_LIBS)
90
91 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
92         wsock32.lib user32.lib \
93         $(GLIB_LIBS)
94
95 dftest_LIBS=  wiretap\wiretap-$(WTAP_VERSION).lib \
96         wsock32.lib user32.lib \
97         $(GLIB_LIBS) \
98         $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
99 !IFDEF ENABLE_LIBETHEREAL
100         epan\libethereal.lib \
101 !ELSE
102         epan\dissectors\dissectors.lib \
103         epan\ethereal.lib \
104         epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
105         $(ADNS_LIBS) \
106         $(PCRE_LIBS) \
107         $(ZLIB_LIBS)    
108 !ENDIF
109
110 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
111         user32.lib \
112         $(GLIB_LIBS) \
113         $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib
114
115 EXECUTABLES=ethereal.exe ethereal-gtk2.exe tethereal.exe \
116         capinfos.exe editcap.exe mergecap.exe text2pcap.exe
117
118 RESOURCES=image\ethereal.res image\libethereal.res image\tethereal.res \
119         image\capinfos.res image\editcap.res image\mergecap.res \
120         image\text2pcap.res image\wiretap.res
121
122 all: config.h tools image wiretap epan $(EXECUTABLES) $(RESOURCES) doc
123
124 packaging: all
125         cd packaging
126         cd nsis
127         nmake -f makefile.nmake
128         cd ..
129         cd ..
130
131 separate_packaging: all
132         cd packaging
133         cd nsis
134 !IFDEF GTK1_DIR
135         nmake -f makefile.nmake GTK1_ONLY="USE"
136 !ENDIF
137 !IFDEF GTK2_DIR
138         nmake -f makefile.nmake GTK2_ONLY="USE"
139 !ENDIF
140         cd ..
141         cd ..
142
143 $(RESOURCES): image
144
145 wiretap\wiretap-$(WTAP_VERSION).lib: wiretap
146
147 !IFNDEF GTK1_DIR
148 ethereal.exe    : 
149 !ELSE
150 ethereal.exe    : config.h svnversion.h $(ethereal_OBJECTS) epan gtk image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk\libui.lib plugins
151         @echo Linking $@
152         $(LINK) @<<
153                 /OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK1_LIBS) gtk\libui.lib $(ethereal_OBJECTS) image\ethereal.res
154 <<
155 !ENDIF
156
157 !IFNDEF GTK2_DIR
158 ethereal-gtk2.exe       : 
159 !ELSE
160 ethereal-gtk2.exe       : config.h svnversion.h $(ethereal_OBJECTS) epan gtk2 image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk2.tmp\libui.lib plugins
161         @echo Linking $@
162         $(LINK) @<<
163                 /OUT:ethereal-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK2_LIBS) gtk2.tmp\libui.lib $(ethereal_OBJECTS) image\ethereal.res
164 <<
165 !ENDIF
166
167 tethereal.exe   : config.h svnversion.h $(tethereal_OBJECTS) epan image\tethereal.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
168         @echo Linking $@
169         $(LINK) @<<
170                 /OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(command_line_OBJECTS) image\tethereal.res
171 <<
172
173 capinfos.exe    : config.h capinfos.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
174         @echo Linking $@
175         $(LINK) @<<
176                 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj $(command_line_OBJECTS) $(capinfos_LIBS) image\capinfos.res
177 <<
178
179 editcap.exe     : config.h editcap.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
180         @echo Linking $@
181         $(LINK) @<<
182                 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(command_line_OBJECTS) $(editcap_LIBS) image\editcap.res
183 <<
184
185 mergecap.exe    : config.h svnversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
186         @echo Linking $@
187         $(LINK) @<<
188                 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(command_line_OBJECTS) $(mergecap_LIBS) image\mergecap.res
189 <<
190
191 text2pcap.exe   : config.h text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
192         @echo Linking $@
193         $(LINK) @<<
194                 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj $(command_line_OBJECTS) image\text2pcap.res
195 <<
196
197 dftest.exe      : $(dftest_OBJECTS) epan
198         $(LINK) @<<
199                 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
200 <<
201
202 randpkt.exe     : $(randpkt_OBJECTS)
203         $(LINK) @<<
204                 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) $(command_line_OBJECTS)
205 <<
206
207 config.h        : config.h.win32 config.nmake
208         sed -e s/@VERSION@/$(VERSION)/ \
209             -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
210             -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
211             -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
212             -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
213             -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
214             -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
215             -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
216             -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
217             -e "s/@HAVE_LIBETHEREALDLL@/$(LIBETHEREAL_CONFIG)/" \
218             -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
219             < config.h.win32 > $@
220
221 ps.c    : rdps.exe print.ps
222         rdps print.ps ps.c
223
224
225 #
226 # Build the version string
227 #
228 svnversion.h:
229         $(PERL) make-version.pl
230
231 #
232 # Build the short version of the authors file for the about dialog
233 #
234 AUTHORS-SHORT: AUTHORS make-authors-short.pl
235         $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
236
237 #
238 # Build the short version of the authors file with formatting codes for
239 # the man page
240 #
241 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
242     $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
243
244 #
245 # Build "tethereal-tap-register.c", which contains a function 
246 # "register_all_tap_listeners()"
247 # that calls the register routines for all tehtereal tap listeners.
248 #
249 # We do this by grepping through sources.
250 #
251 # Formatting conventions:  The name of the tap_listener_register_* 
252 # routines must start in column zero, or must be preceded only by 
253 # "void " starting in column zero, and must not be inside #if.
254 #
255 # The first argument is the name of the file to write.
256 # The second argument is the directory in which the source files live.
257 # All subsequent arguments are the files to scan.
258 #
259 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) make-tapreg-dotc
260         @echo Making tethereal-tap-register.c
261         @$(SH) make-tapreg-dotc tethereal-tap-register.c . $(TETHEREAL_TAP_SRC)
262
263 text2pcap-scanner.c : text2pcap-scanner.l
264         $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
265
266 gtk2_distclean:
267         rm -f gtk2.tmp/*.*
268         if exist gtk2.tmp rmdir gtk2.tmp
269
270 clean: gtk2_distclean
271         rm -f $(ethereal_OBJECTS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) \
272                 $(EXECUTABLES) $(PDB_FILE) \
273                 capinfos.obj editcap.obj mergecap.obj text2pcap.obj getopt.obj\
274                 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
275                 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
276                 AUTHORS-SHORT-FORMAT \
277                 dftest.obj dftest.exe randpkt.obj randpkt.ext doxygen.cfg \
278                 $(RESOURCES)
279         cd wiretap
280         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
281         cd ../gtk
282         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
283         cd ../epan
284         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
285         cd ../plugins
286         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
287         cd ../tools
288         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
289         cd ../image
290         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
291         cd ../doc
292         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
293         cd ../help
294         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
295         cd ../packaging/nsis
296         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
297         cd ../..
298
299 # Call distclean only, if you would like to remove ALL generated files.
300 # Be sure to have python and perl installed to regenerate them.
301 distclean: clean gtk2_distclean
302         rm -f $(BUILT_SOURCES) \
303                 tethereal-tap-register.c 
304         cd wiretap
305         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
306         cd ../gtk
307         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
308         cd ../epan
309         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
310         cd ../plugins
311         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
312         cd ../tools
313         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
314         cd ../image
315         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
316         cd ../doc
317         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
318         cd ../help
319         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
320         cd ../packaging/nsis
321         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
322         cd ../..
323
324 tools::
325         cd tools
326         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
327         cd ..
328
329 image::
330         cd image
331         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
332         cd ..
333
334 wiretap::
335         cd wiretap
336         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
337         cd ..
338
339 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
340         cd gtk
341         $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
342         cd ..
343
344 # copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
345 gtk2:: help config.h svnversion.h AUTHORS-SHORT
346         if not exist gtk2.tmp mkdir gtk2.tmp
347         cd gtk
348         cp --update --preserve Makefile.* *.c *.h ..\gtk2.tmp
349         cd ..\gtk2.tmp
350         $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK2_CFLAGS)" GTK_LIBS="$(GTK2_LIBS)" libui.lib
351         cd ..
352
353 epan:: $(DISSECTOR_SUPPORT_OBJECTS) $(EXTRA_OBJECTS) $(RESOURCES) $(BUILT_SOURCES) doxygen
354         cd epan
355         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
356         cd ..
357
358 plugins::
359         cd plugins
360         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
361         cd ..
362
363 doc::
364         cd doc
365         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
366         cd ..
367
368 help::
369         cd help
370         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
371         cd ..
372
373 doxygen.cfg: config.nmake doxygen.cfg.in
374         sed -e s/@VERSION@/$(VERSION)/ \
375             < doxygen.cfg.in > $@
376
377 doxygen-run:
378 !IFDEF DOXYGEN
379         $(DOXYGEN) doxygen.cfg
380 !ENDIF
381
382 doxygen: doxygen.cfg doxygen-run
383
384 REQUIRED_TOOLS=\
385         $(SH)   \
386         $(YACC) \
387         $(LEX)  \
388         grep    \
389         /usr/bin/find   \
390         $(PERL) \
391         $(PYTHON)       \
392         sed     \
393         unzip   \
394         wget
395
396 verify_tools:
397         @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
398
399 # Download and install all the required libraries into ETHEREAL_LIBS.
400 # If you used this setup target before, consider doing a clean_setup.
401 setup: verify_tools
402 !IF "$(GTK2_INST_VERSION)" == "2.4"
403         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
404                 glib gtk2.4/glib-2.4.7.zip
405         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
406                 glib gtk2.4/glib-dev-2.4.7.zip
407 !ELSE
408         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
409                 glib glib-2.2.3-20040116.zip
410         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
411                 glib glib-dev-2.2.3-20040116.zip
412 !ENDIF
413 !IFDEF GTK1_DIR
414         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
415                 gtk+ gtk+-1.3.0-20030717.zip
416         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
417                 gtk+ gtk+-dev-1.3.0-20030115.zip
418 !ENDIF
419         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
420                 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
421         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
422                 gettext-runtime-0.13.1 gettext-runtime-0.13.1.zip
423 !IFDEF NET_SNMP_DIR
424         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
425                 . net-snmp-5.1.2.zip
426 !ENDIF
427 !IFDEF PCAP_DIR
428         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
429                 . wpdpack_3_0.zip
430 !ENDIF
431 !IFDEF ADNS_DIR
432         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
433                 . adns-1.0-win32-04.zip
434 !ENDIF
435 !IFDEF PCRE_DIR
436         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
437                 . pcre-4.4.zip
438 !ENDIF
439 !IFDEF ZLIB_DIR
440         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
441                 zlib122-dll zlib122-dll.zip
442 !ENDIF
443 !IFDEF GTK2_DIR
444 !IF "$(GTK2_INST_VERSION)" == "2.4"
445         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
446                 gtk2 gtk2.4/gtk+-2.4.13.zip
447         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
448                 gtk2 gtk2.4/gtk+-dev-2.4.13.zip
449         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
450                 gtk2 gtk2.4/atk-1.6.0.zip
451         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
452                 gtk2 gtk2.4/atk-dev-1.6.0.zip
453 !ELSE
454         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
455                 gtk2 gtk2/gtk+-2.2.4-20040124.zip
456         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
457                 gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
458         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
459                 gtk2 gtk2/atk-1.4.0.zip
460         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
461                 gtk2 gtk2/atk-dev-1.4.0.zip
462 !ENDIF
463 !IF "$(PANGO_INST_VERSION)" == "1.4"
464         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
465                 gtk2 gtk2.4/pango-1.4.1.zip
466         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
467                 gtk2 gtk2.4/pango-dev-1.4.1.zip
468 !ELSE
469         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
470                 gtk2 gtk2/pango-1.2.5-20040124.zip
471         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
472                 gtk2 gtk2/pango-dev-1.2.5-20040124.zip
473 !ENDIF
474 !ENDIF
475 !IFDEF GTK_WIMP_DIR
476         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
477                 gtk-wimp gtk-wimp/gtk-wimp-0.6.2-bin.zip
478 !ENDIF
479         @echo.
480         @echo Ethereal is ready to build.
481
482 # Cleanup files installed by the setup target. It will not remove the 
483 # downloaded zip files.
484 clean_setup:
485     rm -r -f $(ETHEREAL_LIBS)/glib
486     rm -r -f $(ETHEREAL_LIBS)/gtk+
487     rm -r -f $(ETHEREAL_LIBS)/libiconv-1.9.1.bin.woe32
488     rm -r -f $(ETHEREAL_LIBS)/gettext-runtime-0.13.1
489     rm -r -f $(ETHEREAL_LIBS)/zlib122-dll
490     rm -r -f $(ETHEREAL_LIBS)/gtk2
491     rm -r -f $(ETHEREAL_LIBS)/gtk-wimp
492
493 update_plugin_api: config.h
494         cd plugins
495         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake xyzzy
496         cd ..
497