1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
9 ############### no need to modify below this line #########
14 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
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) $(GNUTLS_CFLAGS) $(LUA_CFLAGS) \
20 -D_U_="" -D_NEED_VAR_IMPORT_
22 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
25 $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
27 PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c
29 include Makefile.common
31 wireshark_OBJECTS = $(wireshark_SOURCES:.c=.obj)
32 tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
33 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
35 dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
37 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
39 command_line_OBJECTS =
48 wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
49 wsock32.lib user32.lib shell32.lib comctl32.lib \
50 $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
52 $(HHC_DIR)\lib\htmlhelp.lib \
54 !IFDEF ENABLE_LIBWIRESHARK
55 epan\libwireshark.lib \
57 epan\dissectors\dissectors.lib \
59 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
65 # $(PCAP_DIR)\lib\wpcap.lib
67 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
68 wsock32.lib user32.lib \
70 $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
71 !IFDEF ENABLE_LIBWIRESHARK
72 epan\libwireshark.lib \
74 epan\dissectors\dissectors.lib \
76 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
83 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
84 wsock32.lib user32.lib \
87 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
88 wsock32.lib user32.lib \
91 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
92 wsock32.lib user32.lib \
95 dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
96 wsock32.lib user32.lib \
99 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
100 wsock32.lib user32.lib \
102 $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
103 !IFDEF ENABLE_LIBWIRESHARK
104 epan\libwireshark.lib \
106 epan\dissectors\dissectors.lib \
108 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
115 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
118 $(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib
120 EXECUTABLES=wireshark.exe wireshark-gtk2.exe tshark.exe \
121 capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
123 RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
124 image\capinfos.res image\editcap.res image\mergecap.res \
125 image\text2pcap.res image\wiretap.res image\dumpcap.res
127 all: config.h tools image codecs wiretap epan $(EXECUTABLES) $(RESOURCES) doc
132 nmake -f makefile.nmake
136 separate_packaging: all
140 nmake -f makefile.nmake GTK1_ONLY="USE"
143 nmake -f makefile.nmake GTK2_ONLY="USE"
150 wiretap\wiretap-$(WTAP_VERSION).lib: wiretap
155 wireshark.exe : config.h svnversion.h $(wireshark_OBJECTS) $(command_line_OBJECTS) epan gtk image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins
158 /OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(wireshark_LIBS) $(GTK1_LIBS) codecs\codecs.lib gtk\libui.lib $(wireshark_OBJECTS) image\wireshark.res
165 wireshark-gtk2.exe : config.h svnversion.h $(wireshark_OBJECTS) $(command_line_OBJECTS) codecs epan gtk2 image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk2.tmp\libui.lib plugins
168 /OUT:wireshark-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(wireshark_LIBS) $(GTK2_LIBS) codecs\codecs.lib gtk2.tmp\libui.lib $(wireshark_OBJECTS) image\wireshark.res
172 tshark.exe : config.h svnversion.h $(tshark_OBJECTS) $(command_line_OBJECTS) epan image\tshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
175 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) $(command_line_OBJECTS) image\tshark.res
178 capinfos.exe : config.h capinfos.obj getopt.obj $(command_line_OBJECTS) wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
181 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj $(command_line_OBJECTS) $(capinfos_LIBS) image\capinfos.res
184 editcap.exe : config.h editcap.obj getopt.obj strptime.obj epan\crypt-md5.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
187 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj strptime.obj epan\crypt-md5.obj $(command_line_OBJECTS) $(editcap_LIBS) image\editcap.res
190 mergecap.exe : config.h svnversion.h mergecap.obj merge.obj getopt.obj $(command_line_OBJECTS) wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
193 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(command_line_OBJECTS) $(mergecap_LIBS) image\mergecap.res
196 text2pcap.exe : config.h text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj $(command_line_OBJECTS) image\text2pcap.res
199 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj $(command_line_OBJECTS) image\text2pcap.res
202 dftest.exe : $(dftest_OBJECTS) epan
205 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
208 randpkt.exe : $(randpkt_OBJECTS) $(command_line_OBJECTS)
211 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) $(command_line_OBJECTS)
214 dumpcap.exe : config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj mkstemp.obj $(command_line_OBJECTS) wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res
217 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj mkstemp.obj $(command_line_OBJECTS) image\dumpcap.res
221 config.h : config.h.win32 config.nmake
222 sed -e s/@VERSION@/$(VERSION)/ \
223 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
224 -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
225 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
226 -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
227 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
228 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
229 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
230 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
231 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
232 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
233 -e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
234 -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
235 -e "s/@HAVE_GNUTLS@/$(GNUTLS_CONFIG)/" \
236 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
237 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
238 -e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
239 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
240 -e "s/@HAVE_PORTAUDIO@/$(PORTAUTO_CONFIG)/" \
241 < config.h.win32 > $@
243 ps.c : rdps.exe print.ps
248 # Build the version string
251 $(PERL) make-version.pl
254 # Build the short version of the authors file for the about dialog
256 AUTHORS-SHORT: AUTHORS make-authors-short.pl
257 $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
260 # Build the short version of the authors file with formatting codes for
263 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
264 $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
267 # Build "tshark-tap-register.c", which contains a function
268 # "register_all_tap_listeners()"
269 # that calls the register routines for all tehtereal tap listeners.
271 # We do this by grepping through sources.
273 # Formatting conventions: The name of the tap_listener_register_*
274 # routines must start in column zero, or must be preceded only by
275 # "void " starting in column zero, and must not be inside #if.
277 # The first argument is the name of the file to write.
278 # The second argument is the directory in which the source files live.
279 # All subsequent arguments are the files to scan.
281 tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
282 @echo Making tshark-tap-register.c
283 @$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
285 text2pcap-scanner.c : text2pcap-scanner.l
286 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
290 if exist gtk2.tmp rmdir gtk2.tmp
292 clean: gtk2_distclean
293 rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(EXTRA_OBJECTS) \
294 $(EXECUTABLES) $(PDB_FILE) \
295 capinfos.obj editcap.obj mergecap.obj text2pcap.obj getopt.obj\
296 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
297 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
298 AUTHORS-SHORT-FORMAT \
299 dftest.obj dftest.exe randpkt.obj randpkt.ext dumpcap.obj \
301 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll
303 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
306 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
308 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
310 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
312 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
314 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
316 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
318 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
320 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
322 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
324 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
327 # "distclean" removes all files not part of the distribution.
328 # It does not remove generated files that are part of the distribution.
329 distclean: clean gtk2_distclean
330 rm -f config.h $(BUILT_SOURCES)
332 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
334 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
336 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
338 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
340 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
342 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
344 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
346 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
348 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
350 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
353 # Make "maintainer-clean" only if you would like to remove ALL generated
355 # Be sure to have python and perl installed to regenerate them.
356 maintainer-clean: distclean
357 rm -f $(GENERATED_FILES)
359 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
361 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
363 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
365 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
367 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
369 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
371 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
373 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
375 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
377 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
382 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
387 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
392 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
395 codecs:: help config.h svnversion.h AUTHORS-SHORT doxygen
397 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
400 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
402 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
405 # copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
406 gtk2:: help config.h svnversion.h AUTHORS-SHORT
407 if not exist gtk2.tmp mkdir gtk2.tmp
410 xcopy Makefile.* ..\gtk2.tmp /d
411 xcopy *.c ..\gtk2.tmp /d
412 xcopy *.h ..\gtk2.tmp /d
414 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK2_CFLAGS)" GTK_LIBS="$(GTK2_LIBS)" libui.lib
417 epan:: $(RESOURCES) $(BUILT_SOURCES) doxygen
419 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
424 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
429 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
434 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
437 doxygen.cfg: config.nmake doxygen.cfg.in
438 sed -e s/@VERSION@/$(VERSION)/ \
439 < doxygen.cfg.in > $@
443 $(DOXYGEN) doxygen.cfg
446 doxygen: doxygen.cfg doxygen-run
448 ################################################################################
449 # Prepare build environment by downloading and installing required libraries
450 ################################################################################
452 # The required tools to build Ethereal.
454 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
455 # We only need the cygwin version (for some shell scripts).
456 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
474 @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
476 # Download and install all the required libraries into WIRESHARK_LIBS.
477 # If you used this setup target before, consider doing a clean_setup.
479 !IF "$(GTK2_INST_VERSION)" == "2.8"
480 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
481 glib gtk2.8/glib-2.8.4-20051212.zip
482 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
483 glib gtk2.8/glib-dev-2.8.4-20051212.zip
484 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
485 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
486 glib gtk2.6/glib-2.6.6.zip
487 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
488 glib gtk2.6/glib-dev-2.6.6.zip
489 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
490 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
491 glib gtk2.4/glib-2.4.7.zip
492 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
493 glib gtk2.4/glib-dev-2.4.7.zip
495 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
496 glib glib-2.2.3-20040116.zip
497 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
498 glib glib-dev-2.2.3-20040116.zip
501 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
502 gtk+ gtk+-1.3.0-20030717.zip
503 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
504 gtk+ gtk+-dev-1.3.0-20030115.zip
506 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
507 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
508 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
509 gettext-runtime-0.13.1 gettext-runtime-0.13.1.zip
511 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
515 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
519 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
523 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
524 . adns-1.0-win32-05.zip
527 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
528 pcre-6.4 pcre-6.4-bin.zip
529 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
530 pcre-6.4 pcre-6.4-lib.zip
533 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
534 zlib123-dll zlib123-dll.zip
537 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
541 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
545 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
546 . portaudio_v18_1.zip
550 !IF "$(GTK2_INST_VERSION)" == "2.8"
551 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
552 gtk2 gtk2.8/gtk+-2.8.9.zip
553 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
554 gtk2 gtk2.8/gtk+-dev-2.8.9.zip
555 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
556 gtk2 gtk2.8/cairo-1.0.2.zip
557 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
558 gtk2 gtk2.8/cairo-dev-1.0.2.zip
559 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
560 gtk2 gtk2.8/atk-1.10.3.zip
561 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
562 gtk2 gtk2.8/atk-dev-1.10.3.zip
563 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
564 gtk2 gtk2.8/libpng-1.2.8-bin.zip
565 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
566 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
567 gtk2 gtk2.6/gtk+-2.6.9.zip
568 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
569 gtk2 gtk2.6/gtk+-dev-2.6.9.zip
570 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
571 gtk2 gtk2.6/atk-1.9.0.zip
572 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
573 gtk2 gtk2.6/atk-dev-1.9.0.zip
574 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
575 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
576 gtk2 gtk2.4/gtk+-2.4.14.zip
577 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
578 gtk2 gtk2.4/gtk+-dev-2.4.14.zip
579 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
580 gtk2 gtk2.4/atk-1.6.0.zip
581 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
582 gtk2 gtk2.4/atk-dev-1.6.0.zip
584 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
585 gtk2 gtk2/gtk+-2.2.4-20040124.zip
586 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
587 gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
588 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
589 gtk2 gtk2/atk-1.4.0.zip
590 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
591 gtk2 gtk2/atk-dev-1.4.0.zip
593 !IF "$(PANGO_INST_VERSION)" == "1.10"
594 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
595 gtk2 gtk2.8/pango-1.10.1.zip
596 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
597 gtk2 gtk2.8/pango-dev-1.10.1.zip
598 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
599 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
600 gtk2 gtk2.6/pango-1.8.2.zip
601 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
602 gtk2 gtk2.6/pango-dev-1.8.2.zip
603 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
604 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
605 gtk2 gtk2.4/pango-1.4.1.zip
606 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
607 gtk2 gtk2.4/pango-dev-1.4.1.zip
609 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
610 gtk2 gtk2/pango-1.2.5-20040124.zip
611 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
612 gtk2 gtk2/pango-dev-1.2.5-20040124.zip
616 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
617 gtk-wimp gtk-wimp/gtk-wimp-0.7.0-bin.zip
620 @echo Wireshark is ready to build.
622 # Cleanup files installed by the setup target. It will not remove the
623 # downloaded zip files.
625 rm -r -f $(WIRESHARK_LIBS)/glib
626 rm -r -f $(WIRESHARK_LIBS)/gtk+
627 rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
628 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.13.1
629 rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
630 rm -r -f $(WIRESHARK_LIBS)/gtk2
631 rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
633 ################################################################################
634 # Prepare the source tree for running (t)wireshark directly from there.
635 ################################################################################
637 # "install-deps" will copy all dlls needed to run (t)wireshark
638 # to the source tree, so you can run (t)wireshark directly from there.
639 # Note that the gtk2 version of wireshark is called wireshark-gtk2.exe
641 install-deps: clean-deps install-gtk1-deps install-gtk2-deps
643 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-plugins
646 install-gtk2-deps: install-required-deps
649 xcopy $(GTK2_DIR)\bin\libgdk-win32-2.0-0.dll . /d
650 xcopy $(GTK2_DIR)\bin\libgdk_pixbuf-2.0-0.dll . /d
651 xcopy $(GTK2_DIR)\bin\libgtk-win32-2.0-0.dll . /d
652 xcopy $(GTK2_DIR)\bin\libatk-1.0-0.dll . /d
653 xcopy $(GTK2_DIR)\bin\libpango-1.0-0.dll . /d
654 xcopy $(GTK2_DIR)\bin\libpangowin32-1.0-0.dll . /d
660 mkdir lib\gtk-2.0\$(GTK2_LIB_DIR)
661 mkdir lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders
662 mkdir lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules
664 mkdir lib\pango\$(PANGO_LIB_DIR)
665 mkdir lib\pango\$(PANGO_LIB_DIR)\modules
666 xcopy $(GTK2_DIR)\etc\gtk-2.0\*.* etc\gtk-2.0 /d
667 xcopy $(GTK2_DIR)\etc\pango\pango.* etc\pango /d
668 xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders\libpixbufloader-*.dll lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders /d
669 xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules\im-*.dll lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules /d
670 xcopy $(GTK2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll lib\pango\$(PANGO_LIB_DIR)\modules /d
671 !IFDEF NEED_LIBPNG_DLL
672 xcopy $(GTK2_DIR)\bin\libpng13.dll . /d
674 !IFDEF NEED_CAIRO_DLL
675 xcopy $(GTK2_DIR)\bin\libcairo-2.dll . /d
676 xcopy $(GTK2_DIR)\bin\libpangocairo-1.0-0.dll . /d
680 install-gtk1-deps: install-required-deps
683 xcopy $(GTK1_DIR)\lib\libgtk-0.dll . /d
684 xcopy $(GTK1_DIR)\lib\libgdk-0.dll . /d
687 install-required-deps:
689 xcopy wiretap\wiretap-$(WTAP_VERSION).dll . /d
690 !IFDEF ENABLE_LIBWIRESHARK
691 xcopy epan\libwireshark.dll . /d
693 xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll . /d
694 xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll . /d
695 xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll . /d
696 xcopy $(ICONV_DIR)\bin\iconv.dll . /d
697 xcopy $(GETTEXT_DIR)\bin\intl.dll . /d
699 xcopy $(ZLIB_DIR)\zlib1.dll . /d
702 xcopy $(ADNS_DIR)\adns_win32\LIB\adns_dll.dll . /d
705 xcopy $(PCRE_DIR)\bin\pcre.dll . /d
708 xcopy $(KFW_DIR)\bin\comerr32.dll . /d
709 xcopy $(KFW_DIR)\bin\krb5_32.dll . /d
712 xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll . /d
713 xcopy $(GNUTLS_DIR)\bin\libgnutls-14.dll . /d
714 xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-14.dll . /d
715 xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-14.dll . /d
716 xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll . /d
717 xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll . /d
725 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps