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 \
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)
34 dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
35 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
41 wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
42 wsock32.lib user32.lib shell32.lib comctl32.lib \
45 !IFDEF ENABLE_LIBWIRESHARK
46 epan\libwireshark.lib \
48 epan\dissectors\dissectors.lib \
50 epan\crypt\airpdcap.lib \
51 epan\dfilter\dfilter.lib \
52 epan\ftypes\ftypes.lib \
59 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
60 wsock32.lib user32.lib \
63 !IFDEF ENABLE_LIBWIRESHARK
64 epan\libwireshark.lib \
66 epan\dissectors\dissectors.lib \
68 epan\crypt\airpdcap.lib \
69 epan\dfilter\dfilter.lib \
70 epan\ftypes\ftypes.lib \
77 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
78 wsock32.lib user32.lib \
81 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
82 wsock32.lib user32.lib \
85 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
86 wsock32.lib user32.lib \
89 dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
90 wsock32.lib user32.lib \
93 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
94 wsock32.lib user32.lib \
97 !IFDEF ENABLE_LIBWIRESHARK
98 epan\libwireshark.lib \
100 epan\dissectors\dissectors.lib \
102 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
109 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
114 EXECUTABLES=wireshark.exe wireshark-gtk2.exe tshark.exe \
115 capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
117 RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
118 image\capinfos.res image\editcap.res image\mergecap.res \
119 image\text2pcap.res image\wiretap.res image\dumpcap.res
121 all: config.h tools image codecs $(ZLIB_DIR)\zlib1.dll wiretap epan $(EXECUTABLES) $(RESOURCES) doc install-deps
126 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
130 separate_packaging: all
134 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake GTK1_ONLY="USE"
137 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake GTK2_ONLY="USE"
146 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
151 # use (info-)zip from cygwin to pack things
153 rm -f wireshark-gtk1.zip
154 zip -r -9 wireshark-gtk1.zip $(INSTALL1_DIR)/*.*
156 # use (info-)zip from cygwin to pack things
158 rm -f wireshark-gtk2.zip
159 zip -r -9 wireshark-gtk2.zip $(INSTALL2_DIR)/*.*
161 packaging_zip: packaging_zip1 packaging_zip2
166 wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DIR)\zlib1.dll wiretap
171 wireshark.exe : config.h svnversion.h $(wireshark_OBJECTS) getopt.obj codecs epan gtk image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins
174 /OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj $(GTK1_LIBS) codecs\codecs.lib gtk\libui.lib $(wireshark_OBJECTS) image\wireshark.res
181 wireshark-gtk2.exe : config.h svnversion.h $(wireshark_OBJECTS) getopt.obj codecs epan gtk2 image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk2.tmp\libui.lib plugins
184 /OUT:wireshark-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj $(GTK2_LIBS) codecs\codecs.lib gtk2.tmp\libui.lib $(wireshark_OBJECTS) image\wireshark.res
188 tshark.exe : config.h svnversion.h $(tshark_OBJECTS) getopt.obj epan image\tshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
191 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj image\tshark.res
194 capinfos.exe : config.h capinfos.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
197 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj $(capinfos_LIBS) image\capinfos.res
200 editcap.exe : config.h editcap.obj getopt.obj strptime.obj epan\crypt\crypt-md5.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
203 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj strptime.obj epan\crypt\crypt-md5.obj $(editcap_LIBS) image\editcap.res
206 mergecap.exe : config.h svnversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
209 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
212 text2pcap.exe : config.h text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
215 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
218 dftest.exe : $(dftest_OBJECTS) epan
221 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
224 randpkt.exe : $(randpkt_OBJECTS) getopt.obj
227 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) getopt.obj
230 dumpcap.exe : config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj mkstemp.obj wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res
233 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj mkstemp.obj image\dumpcap.res
237 config.h : config.h.win32 config.nmake
238 sed -e s/@VERSION@/$(VERSION)/ \
239 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
240 -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
241 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
242 -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
243 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
244 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
245 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
246 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
247 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
248 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
249 -e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
250 -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
251 -e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
252 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
253 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
254 -e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
255 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
256 -e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
257 -e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
258 -e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
259 -e "s/@HAVE_NET_SNMP@/$(NET_SNMP_CONFIG)/" \
260 < config.h.win32 > $@
262 ps.c : rdps.exe print.ps
267 # Build the version string
269 !IF EXIST(".svn/entries")
270 SVNENTRIES = .svn/entries
274 svnversion.h: $(SVNENTRIES)
276 $(PERL) make-version.pl
279 # Build the short version of the authors file for the about dialog
281 AUTHORS-SHORT: AUTHORS make-authors-short.pl
282 $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
285 # Build the short version of the authors file with formatting codes for
288 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
289 $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
292 # Build "tshark-tap-register.c", which contains a function
293 # "register_all_tap_listeners()"
294 # that calls the register routines for all TShark tap listeners.
296 # We do this by grepping through sources.
298 # Formatting conventions: The name of the tap_listener_register_*
299 # routines must start in column zero, or must be preceded only by
300 # "void " starting in column zero, and must not be inside #if.
302 # The first argument is the name of the file to write.
303 # The second argument is the directory in which the source files live.
304 # All subsequent arguments are the files to scan.
306 tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
307 @echo Making tshark-tap-register.c
308 @$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
310 text2pcap-scanner.c : text2pcap-scanner.l
311 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
315 if exist gtk2.tmp rmdir gtk2.tmp
317 clean: clean_gtk2.tmp clean-deps
318 rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(EXTRA_OBJECTS) \
319 $(EXECUTABLES) *.pdb *.exe.manifest \
320 capinfos.obj editcap.obj mergecap.obj text2pcap.obj getopt.obj\
321 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
322 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
323 AUTHORS-SHORT-FORMAT \
324 dftest.obj dftest.exe randpkt.obj randpkt.ext dumpcap.obj \
326 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll
328 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
331 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
333 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
335 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
337 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
339 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
341 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
343 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
345 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
347 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
349 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
351 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
354 # "distclean" removes all files not part of the distribution.
355 # It does not remove generated files that are part of the distribution.
357 !IF "$(MSVC_VARIANT)" != "MSVC6"
358 rm -f $(ZLIB_DIR)\zlib1.dll $(ZLIB_DIR)\zlib1.dll.manifest \
359 $(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
360 $(ZLIB_DIR)\lib\zdll.lib
362 rm -f config.h $(BUILT_SOURCES)
364 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
366 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
368 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
370 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
372 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
374 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
376 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
378 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
380 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
382 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
384 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
387 # Make "maintainer-clean" only if you would like to remove ALL generated
389 # Be sure to have python and perl installed to regenerate them.
390 maintainer-clean: distclean
391 rm -f $(GENERATED_FILES)
393 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
395 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
397 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
399 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
401 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
403 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
405 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
407 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
409 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
411 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
413 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
418 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
423 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
426 # None MSVC6 variants have to avoid indirectly using msvcrt.dll,
427 # therefore compile the zlib dll from source ZLIB_DIR package.
428 # To avoid path problems, copy the zlib sources to a temp dir,
429 # compile and copy the resulting files back to (source) ZLIB_DIR
430 $(ZLIB_DIR)\zlib1.dll:
431 !IF "$(MSVC_VARIANT)" != "MSVC6"
432 xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
434 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
435 if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
436 if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
437 if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
438 copy zlib1.dll $(ZLIB_DIR)
439 if exist zlib1.dll.manifest copy zlib1.dll.manifest $(ZLIB_DIR)
440 copy zdll.lib $(ZLIB_DIR)\lib
441 copy zconf.h $(ZLIB_DIR)\include
442 copy zlib.h $(ZLIB_DIR)\include
449 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
454 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
457 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
459 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
462 # copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
463 gtk2:: help config.h svnversion.h AUTHORS-SHORT
464 if not exist gtk2.tmp mkdir gtk2.tmp
467 xcopy Makefile.* ..\gtk2.tmp /d
468 xcopy *.c ..\gtk2.tmp /d
469 xcopy *.h ..\gtk2.tmp /d
471 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK2_CFLAGS)" GTK_LIBS="$(GTK2_LIBS)" libui.lib
474 epan:: $(RESOURCES) $(BUILT_SOURCES) doxygen
476 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
481 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
486 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
491 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
494 doxygen.cfg: config.nmake doxygen.cfg.in
495 sed -e s/@VERSION@/$(VERSION)/ \
496 < doxygen.cfg.in > $@
500 $(DOXYGEN) doxygen.cfg
503 doxygen: doxygen.cfg doxygen-run
505 ################################################################################
506 # Prepare build environment by downloading and installing required libraries
507 ################################################################################
509 # The required tools to build Wireshark.
511 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
512 # We only need the cygwin version (for some shell scripts).
513 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
531 @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
533 # Download and install all the required libraries into WIRESHARK_LIBS.
534 # A clean_setup is done first to ensure that the target dirs don't
535 # contain old files remaining from a previous setup run.
536 setup: verify_tools clean_setup
537 if not exist $(WIRESHARK_LIBS) md $(WIRESHARK_LIBS)
538 !IF "$(GTK2_INST_VERSION)" == "2.10"
539 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
540 glib gtk2.10/glib-2.12.7.zip
541 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
542 glib gtk2.10/glib-dev-2.12.7.zip
543 !ELSEIF "$(GTK2_INST_VERSION)" == "2.8"
544 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
545 glib gtk2.8/glib-2.12.4.zip
546 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
547 glib gtk2.8/glib-dev-2.12.4.zip
548 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
549 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
550 glib gtk2.6/glib-2.6.6.zip
551 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
552 glib gtk2.6/glib-dev-2.6.6.zip
553 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
554 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
555 glib gtk2.4/glib-2.4.7.zip
556 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
557 glib gtk2.4/glib-dev-2.4.7.zip
559 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
560 glib glib-2.2.3-20040116.zip
561 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
562 glib glib-dev-2.2.3-20040116.zip
565 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
566 gtk+ gtk+-1.3.0-20030717.zip
567 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
568 gtk+ gtk+-dev-1.3.0-20030115.zip
570 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
571 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
572 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
573 gettext-0.14.5 gettext-0.14.5.zip
575 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
579 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
583 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
587 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
588 AirPcap_Devpack_1_0_0_594 AirPcap_Devpack_1_0_0_594.zip
591 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
592 . adns-1.0-win32-05.zip
595 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
596 pcre-6.4 pcre-6.4-bin.zip
597 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
598 pcre-6.4 pcre-6.4-lib.zip
601 !IF "$(MSVC_VARIANT)" == "MSVC6"
602 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
603 zlib123-dll zlib123-dll.zip
605 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
610 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
614 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
618 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
623 !IF "$(GTK2_INST_VERSION)" == "2.10"
624 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
625 gtk2 gtk2.10/gtk+-2.10.7.zip
626 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
627 gtk2 gtk2.10/gtk+-dev-2.10.7.zip
628 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
629 gtk2 gtk2.10/cairo-1.2.6.zip
630 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
631 gtk2 gtk2.10/cairo-dev-1.2.6.zip
632 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
633 gtk2 gtk2.10/atk-1.12.3.zip
634 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
635 gtk2 gtk2.10/atk-dev-1.12.3.zip
636 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
637 gtk2 gtk2.10/libpng-1.2.8-bin.zip
638 !ELSEIF "$(GTK2_INST_VERSION)" == "2.8"
639 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
640 gtk2 gtk2.8/gtk+-2.8.20.zip
641 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
642 gtk2 gtk2.8/gtk+-dev-2.8.20.zip
643 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
644 gtk2 gtk2.8/cairo-1.2.6.zip
645 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
646 gtk2 gtk2.8/cairo-dev-1.2.6.zip
647 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
648 gtk2 gtk2.8/atk-1.10.3.zip
649 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
650 gtk2 gtk2.8/atk-dev-1.10.3.zip
651 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
652 gtk2 gtk2.8/libpng-1.2.8-bin.zip
653 !ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
654 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
655 gtk2 gtk2.6/gtk+-2.6.9.zip
656 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
657 gtk2 gtk2.6/gtk+-dev-2.6.9.zip
658 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
659 gtk2 gtk2.6/atk-1.9.0.zip
660 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
661 gtk2 gtk2.6/atk-dev-1.9.0.zip
662 !ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
663 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
664 gtk2 gtk2.4/gtk+-2.4.14.zip
665 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
666 gtk2 gtk2.4/gtk+-dev-2.4.14.zip
667 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
668 gtk2 gtk2.4/atk-1.6.1.zip
669 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
670 gtk2 gtk2.4/atk-dev-1.6.1.zip
672 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
673 gtk2 gtk2/gtk+-2.2.4-20040124.zip
674 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
675 gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
676 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
677 gtk2 gtk2/atk-1.4.0.zip
678 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
679 gtk2 gtk2/atk-dev-1.4.0.zip
681 !IF "$(PANGO_INST_VERSION)" == "1.14"
682 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
683 gtk2 gtk2.10/pango-1.14.9.zip
684 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
685 gtk2 gtk2.10/pango-dev-1.14.9.zip
686 !ELSEIF "$(PANGO_INST_VERSION)" == "1.10"
687 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
688 gtk2 gtk2.8/pango-1.10.1.zip
689 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
690 gtk2 gtk2.8/pango-dev-1.10.1.zip
691 !ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
692 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
693 gtk2 gtk2.6/pango-1.8.2.zip
694 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
695 gtk2 gtk2.6/pango-dev-1.8.2.zip
696 !ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
697 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
698 gtk2 gtk2.4/pango-1.4.1.zip
699 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
700 gtk2 gtk2.4/pango-dev-1.4.1.zip
702 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
703 gtk2 gtk2/pango-1.2.5-20040124.zip
704 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
705 gtk2 gtk2/pango-dev-1.2.5-20040124.zip
709 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
710 gtk-wimp gtk-wimp/gtk-wimp-0.7.0-bin.zip
713 @$(SH) tools\win32-setup.sh --download "$(WIRESHARK_LIBS)" \
714 user-guide user-guide-20494.zip
717 @echo Wireshark is ready to build.
719 # Cleanup files installed by the setup target. It will not remove the
720 # downloaded zip files.
722 rm -r -f $(WIRESHARK_LIBS)/adns-1.0-win32-05
723 rm -r -f $(WIRESHARK_LIBS)/gettext-0.14.5
724 rm -r -f $(WIRESHARK_LIBS)/glib
725 rm -r -f $(WIRESHARK_LIBS)/gnutls-1.6.1-1
726 rm -r -f $(WIRESHARK_LIBS)/gtk2
727 rm -r -f $(WIRESHARK_LIBS)/gtk+
728 rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
729 rm -r -f $(WIRESHARK_LIBS)/kfw-2.5
730 rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
731 rm -r -f $(WIRESHARK_LIBS)/lua5.1
732 rm -r -f $(WIRESHARK_LIBS)/net-snmp-5.4
733 rm -r -f $(WIRESHARK_LIBS)/pcre-6.4
734 rm -r -f $(WIRESHARK_LIBS)/portaudio_v18_1
735 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19
736 rm -r -f $(WIRESHARK_LIBS)/user-guide
737 rm -r -f $(WIRESHARK_LIBS)/WpdPack
738 rm -r -f $(WIRESHARK_LIBS)/AirPcap_Devpack_1_0_0_594
739 rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
741 ################################################################################
742 # Prepare the debug trees for running Wireshark/Tshark from there.
743 ################################################################################
746 # generate and install Wireshark GTK1 in INSTALL1_DIR
747 debug-gtk1: wireshark.exe install-files1
749 # generate and install Wireshark GTK2 in INSTALL2_DIR
750 debug-gtk2: wireshark-gtk2.exe install-files2
752 # generate and install Wireshark GTK2 in INSTALL2_DIR
753 debug-tshark: tshark.exe
755 set INSTALL_DIR=$(INSTALL2_DIR)
756 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
758 # generate and install Wireshark GTK2 in INSTALL2_DIR
759 debug-dumpcap: dumpcap.exe
762 # "install-deps" will copy all files needed to run Wwireshark/Tshark
763 # to the INSTALL1_DIR/INSTALL2_DIR, so you can run/debug Wireshark/Tshark from there.
765 install-deps: install-deps1 install-deps2 install-files1 install-files2
767 # install Wireshark GTK2 and other generated files
771 set INSTALL_DIR=$(INSTALL1_DIR)
772 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
773 xcopy wireshark.exe $(INSTALL1_DIR) /d
774 if exist wireshark.exe.manifest xcopy wireshark.exe.manifest $(INSTALL1_DIR) /d
775 if exist wireshark.pdb xcopy wireshark.pdb $(INSTALL1_DIR) /d
778 # install Wireshark GTK2 and other generated files
781 set INSTALL_DIR=$(INSTALL2_DIR)
782 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
783 copy wireshark-gtk2.exe $(INSTALL2_DIR)\wireshark.exe
784 if exist wireshark-gtk2.exe.manifest copy wireshark-gtk2.exe.manifest $(INSTALL2_DIR)\wireshark.exe.manifest
785 if exist wireshark-gtk2.pdb copy wireshark-gtk2.pdb $(INSTALL2_DIR)\wireshark.pdb
786 if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL2_DIR) /d
789 install-common-files:
791 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
792 !IFDEF ENABLE_LIBWIRESHARK
793 xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
795 xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
796 if exist ".\wiretap\wiretap-$(WTAP_VERSION).dll.manifest" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll.manifest" $(INSTALL_DIR) /d
797 if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
798 xcopy ".\epan\libwireshark.dll" $(INSTALL_DIR) /d
799 if exist ".\epan\libwireshark.dll.manifest" xcopy ".\epan\libwireshark.dll.manifest" $(INSTALL_DIR) /d
800 if exist ".\epan\libwireshark.pdb" xcopy ".\epan\libwireshark.pdb" $(INSTALL_DIR) /d
801 if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
802 if exist tshark.exe.manifest xcopy tshark.exe.manifest $(INSTALL_DIR) /d
803 if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
804 if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
805 if exist dumpcap.exe.manifest xcopy dumpcap.exe.manifest $(INSTALL_DIR) /d
806 if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
807 if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
808 if exist mergecap.exe.manifest xcopy mergecap.exe.manifest $(INSTALL_DIR) /d
809 if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
810 if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
811 if exist text2pcap.exe.manifest xcopy text2pcap.exe.manifest $(INSTALL_DIR) /d
812 if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
813 if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
814 if exist capinfos.exe.manifest xcopy capinfos.exe.manifest $(INSTALL_DIR) /d
815 if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
816 if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
817 if exist editcap.exe.manifest xcopy editcap.exe.manifest $(INSTALL_DIR) /d
818 if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
819 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
820 xcopy ".\manuf" $(INSTALL_DIR) /d
821 xcopy ".\FAQ" $(INSTALL_DIR) /d
822 xcopy ".\README" $(INSTALL_DIR) /d
823 xcopy ".\README.win32" $(INSTALL_DIR) /d
824 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
825 xcopy ".\COPYING" $(INSTALL_DIR) /d
826 copy ".\NEWS" $(INSTALL_DIR)\NEWS.txt
827 xcopy ".\cfilters" $(INSTALL_DIR) /d
828 xcopy ".\colorfilters" $(INSTALL_DIR) /d
829 xcopy ".\dfilters" $(INSTALL_DIR) /d
830 xcopy doc\*.html $(INSTALL_DIR) /d
831 !IFDEF ETHEREAL_EUG_DIR
832 xcopy $(ETHEREAL_EUG_DIR) $(INSTALL_DIR) /d
834 if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
835 xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
836 if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
837 xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
838 if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
839 echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
840 if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
841 xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
842 if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
843 xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
844 xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
845 if not exist $(INSTALL_DIR)\plugins\$(VERSION) mkdir $(INSTALL_DIR)\plugins\$(VERSION)
846 xcopy ".\plugins\agentx\agentx.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
847 xcopy ".\plugins\artnet\artnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
848 xcopy ".\plugins\asn1\asn1.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
849 xcopy ".\plugins\ciscosm\ciscosm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
850 xcopy ".\plugins\docsis\docsis.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
851 xcopy ".\plugins\enttec\enttec.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
852 xcopy ".\plugins\giop\coseventcomm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
853 xcopy ".\plugins\giop\cosnaming.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
854 xcopy ".\plugins\giop\parlay.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
855 xcopy ".\plugins\giop\tango.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
856 xcopy ".\plugins\gryphon\gryphon.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
857 xcopy ".\plugins\h223\h223.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
858 xcopy ".\plugins\irda\irda.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
859 xcopy ".\plugins\lwres\lwres.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
860 xcopy ".\plugins\mate\mate.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
861 xcopy ".\plugins\megaco\megaco.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
862 xcopy ".\plugins\mgcp\mgcp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
863 xcopy ".\plugins\opsi\opsi.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
864 xcopy ".\plugins\pcli\pcli.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
865 xcopy ".\plugins\profinet\profinet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
866 xcopy ".\plugins\rlm\rlm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
867 xcopy ".\plugins\rtnet\rtnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
868 xcopy ".\plugins\rudp\rudp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
869 xcopy ".\plugins\sbus\sbus.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
870 xcopy ".\plugins\stats_tree\stats_tree.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
871 xcopy ".\plugins\v5ua\v5ua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
872 if exist custom-install.bat custom-install $(INSTALL_DIR) $(VERSION)
874 install-deps1: install-common-deps1
877 xcopy $(GTK1_DIR)\lib\libgtk-0.dll $(INSTALL1_DIR) /d
878 xcopy $(GTK1_DIR)\lib\libgdk-0.dll $(INSTALL1_DIR) /d
881 install-deps2: install-common-deps2
884 xcopy $(GTK2_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL2_DIR) /d
885 xcopy $(GTK2_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL2_DIR) /d
886 xcopy $(GTK2_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL2_DIR) /d
887 xcopy $(GTK2_DIR)\bin\libatk-1.0-0.dll $(INSTALL2_DIR) /d
888 xcopy $(GTK2_DIR)\bin\libpango-1.0-0.dll $(INSTALL2_DIR) /d
889 xcopy $(GTK2_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL2_DIR) /d
890 if not exist $(INSTALL2_DIR)\etc mkdir $(INSTALL2_DIR)\etc
891 if not exist $(INSTALL2_DIR)\etc\gtk-2.0 mkdir $(INSTALL2_DIR)\etc\gtk-2.0
892 if not exist $(INSTALL2_DIR)\etc\pango mkdir $(INSTALL2_DIR)\etc\pango
893 if not exist $(INSTALL2_DIR)\lib mkdir $(INSTALL2_DIR)\lib
894 if not exist $(INSTALL2_DIR)\lib\gtk-2.0 mkdir $(INSTALL2_DIR)\lib\gtk-2.0
895 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR) mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)
896 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders
897 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules
898 # if not exist $(INSTALL2_DIR)\lib\pango mkdir $(INSTALL2_DIR)\lib\pango
899 # if not exist $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR) mkdir $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)
900 # if not exist $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules mkdir $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules
901 xcopy $(GTK2_DIR)\etc\gtk-2.0\*.* $(INSTALL2_DIR)\etc\gtk-2.0 /d
902 xcopy $(GTK2_DIR)\etc\pango\pango.* $(INSTALL2_DIR)\etc\pango /d
903 xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders /d
904 xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules\im-*.dll $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules /d
905 # xcopy $(GTK2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules /d
906 !IFDEF NEED_LIBPNG_DLL
907 xcopy $(GTK2_DIR)\bin\libpng13.dll $(INSTALL2_DIR) /d
909 !IFDEF NEED_CAIRO_DLL
910 xcopy $(GTK2_DIR)\bin\libcairo-2.dll $(INSTALL2_DIR) /d
911 xcopy $(GTK2_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL2_DIR) /d
914 if not exist $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR)
915 xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
916 if not exist $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR)
917 xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR) /d
921 install-common-deps1:
923 set INSTALL_DIR=$(INSTALL1_DIR)
924 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-deps
927 install-common-deps2:
929 set INSTALL_DIR=$(INSTALL2_DIR)
930 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-deps
935 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
936 xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
937 xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
938 xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
939 xcopy $(ICONV_DIR)\bin\iconv.dll $(INSTALL_DIR) /d
940 xcopy $(GETTEXT_DIR)\bin\intl.dll $(INSTALL_DIR) /d
942 xcopy $(ZLIB_DIR)\zlib1.dll $(INSTALL_DIR) /d
945 xcopy $(ADNS_DIR)\adns_win32\LIB\adns_dll.dll $(INSTALL_DIR) /d
948 xcopy $(PCRE_DIR)\bin\pcre.dll $(INSTALL_DIR) /d
949 xcopy $(PCRE_DIR)\man\cat3\pcrepattern.3.txt $(INSTALL_DIR) /d
952 xcopy $(KFW_DIR)\bin\comerr32.dll $(INSTALL_DIR) /d
953 xcopy $(KFW_DIR)\bin\krb5_32.dll $(INSTALL_DIR) /d
956 xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
957 xcopy $(GNUTLS_DIR)\bin\libgnutls-13.dll $(INSTALL_DIR) /d
958 xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-13.dll $(INSTALL_DIR) /d
959 xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-13.dll $(INSTALL_DIR) /d
960 xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
961 xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
964 if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
965 if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
966 xcopy "$(NET_SNMP_DIR)\mibs\*.txt" $(INSTALL_DIR)\snmp\mibs /d
969 xcopy "$(LUA_DIR)\lib\dll\lua5.1.dll" $(INSTALL_DIR) /d
973 rm -rf $(INSTALL1_DIR)
975 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
979 rm -rf $(INSTALL2_DIR)
981 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
984 clean-deps: clean-deps1 clean-deps2