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=-WX -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) $(SMI_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)
44 wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
45 wsock32.lib user32.lib shell32.lib comctl32.lib \
47 !IFDEF ENABLE_LIBWIRESHARK
48 epan\libwireshark.lib \
50 epan\dissectors\dissectors.lib \
52 epan\crypt\airpdcap.lib \
53 epan\dfilter\dfilter.lib \
54 epan\ftypes\ftypes.lib \
61 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
62 wsock32.lib user32.lib \
64 !IFDEF ENABLE_LIBWIRESHARK
65 epan\libwireshark.lib \
67 epan\dissectors\dissectors.lib \
69 epan\crypt\airpdcap.lib \
70 epan\dfilter\dfilter.lib \
71 epan\ftypes\ftypes.lib \
78 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
79 wsock32.lib user32.lib shell32.lib \
82 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
83 wsock32.lib user32.lib shell32.lib \
86 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
87 wsock32.lib user32.lib \
90 text2pcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
91 wsock32.lib user32.lib \
94 dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
95 wsock32.lib user32.lib \
98 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
99 wsock32.lib user32.lib \
101 !IFDEF ENABLE_LIBWIRESHARK
102 epan\libwireshark.lib \
104 epan\dissectors\dissectors.lib \
106 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
114 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
118 EXECUTABLES=wireshark.exe wireshark-gtk2.exe tshark.exe \
119 capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
121 RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
122 image\capinfos.res image\editcap.res image\mergecap.res \
123 image\text2pcap.res image\wiretap.res image\dumpcap.res
125 LIBS_CHECK=_libs_check_
127 all: $(LIBS_CHECK) config.h tools image codecs $(ZLIB_DIR)\zlib1.dll wiretap epan $(EXECUTABLES) $(RESOURCES) doc install-deps
132 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
136 separate_packaging: all
140 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake GTK1_ONLY="USE"
143 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake GTK2_ONLY="USE"
152 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
161 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
166 # use (info-)zip from cygwin to pack things
169 xcopy "$(MSVCR_DLL)" $(INSTALL1_DIR)
172 @echo Including vcredist_x86.exe -- your recipient may need to run it!
173 xcopy "$(VCREDIST_EXE)" $(INSTALL1_DIR)
175 rm -f wireshark-gtk1.zip
176 zip -r -9 wireshark-gtk1.zip $(INSTALL1_DIR)/
178 # use (info-)zip from cygwin to pack things
181 xcopy "$(MSVCR_DLL)" $(INSTALL2_DIR)
184 @echo Including vcredist_x86.exe -- your recipient may need to run it!
185 xcopy "$(VCREDIST_EXE)" $(INSTALL2_DIR)
187 rm -f wireshark-gtk2.zip
188 zip -r -9 wireshark-gtk2.zip $(INSTALL2_DIR)/
190 packaging_zip: packaging_zip1 packaging_zip2
195 wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DIR)\zlib1.dll wiretap
200 wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins
203 /OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj inet_ntop.obj inet_pton.obj $(GTK1_LIBS) codecs\codecs.lib gtk\libui.lib $(wireshark_OBJECTS) image\wireshark.res
205 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
206 mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1
213 wireshark-gtk2.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk2 image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk2.tmp\libui.lib plugins
216 /OUT:wireshark-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj inet_ntop.obj inet_pton.obj $(GTK2_LIBS) codecs\codecs.lib gtk2.tmp\libui.lib $(wireshark_OBJECTS) image\wireshark.res
218 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
219 mt.exe -nologo -manifest "wireshark-gtk2.exe.manifest" -outputresource:wireshark-gtk2.exe;1
223 tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj inet_ntop.obj epan image\tshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
226 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj inet_ntop.obj image\tshark.res
228 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
229 mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
232 capinfos.exe : $(LIBS_CHECK) config.h capinfos.obj getopt.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
235 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj $(capinfos_LIBS) image\capinfos.res
237 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
238 mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
241 editcap.exe : $(LIBS_CHECK) config.h editcap.obj getopt.obj strptime.obj epan\crypt\crypt-md5.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
244 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj strptime.obj epan/unicode-utils.obj epan\crypt\crypt-md5.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj $(editcap_LIBS) image\editcap.res
246 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
247 mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
250 mergecap.exe : $(LIBS_CHECK) config.h svnversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
253 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
255 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
256 mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
259 text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib strptime.obj image\text2pcap.res
262 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj $(text2pcap_LIBS) strptime.obj image\text2pcap.res
264 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
265 mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
268 dftest.exe : $(dftest_OBJECTS) epan
271 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
273 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
274 mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
277 randpkt.exe : $(randpkt_OBJECTS) getopt.obj
280 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) getopt.obj
282 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
283 mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
286 dumpcap.exe : $(LIBS_CHECK) config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj epan/unicode-utils.obj inet_ntop.obj mkstemp.obj wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res
289 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj epan/unicode-utils.obj inet_ntop.obj mkstemp.obj image\dumpcap.res
291 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
292 mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
296 config.h : config.h.win32 config.nmake
297 sed -e s/@VERSION@/$(VERSION)/ \
298 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
299 -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
300 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
301 -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
302 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
303 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
304 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
305 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
306 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
307 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
308 -e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
309 -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
310 -e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
311 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
312 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
313 -e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
314 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
315 -e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
316 -e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
317 -e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
318 -e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
319 < config.h.win32 > $@
321 ps.c : rdps.exe print.ps
326 # Build the version string
328 !IF EXIST(".svn/entries")
329 SVNENTRIES = .svn/entries
333 svnversion.h: $(SVNENTRIES)
335 $(PERL) make-version.pl
338 # Build the short version of the authors file for the about dialog
340 AUTHORS-SHORT: AUTHORS make-authors-short.pl
341 $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
344 # Build the short version of the authors file with formatting codes for
347 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
348 $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
351 # Build "tshark-tap-register.c", which contains a function
352 # "register_all_tap_listeners()"
353 # that calls the register routines for all TShark tap listeners.
355 # We do this by grepping through sources.
357 # Formatting conventions: The name of the tap_listener_register_*
358 # routines must start in column zero, or must be preceded only by
359 # "void " starting in column zero, and must not be inside #if.
361 # The first argument is the name of the file to write.
362 # The second argument is the directory in which the source files live.
363 # All subsequent arguments are the files to scan.
365 tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
366 @echo Making tshark-tap-register.c
367 @$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
369 text2pcap-scanner.c : text2pcap-scanner.l
370 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
375 clean-local: clean_gtk2.tmp clean-deps
376 rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(dumpcap_OBJECTS) $(EXTRA_OBJECTS) \
377 $(EXECUTABLES) *.pdb *.exe.manifest \
378 capinfos.obj editcap.obj mergecap.obj text2pcap.obj \
379 nio-ie5.obj update.obj \
380 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
381 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
382 AUTHORS-SHORT-FORMAT $(LIBS_CHECK) \
383 dftest.obj dftest.exe randpkt.obj randpkt.ext \
385 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll
389 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
392 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
394 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
396 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
398 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
400 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
402 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
404 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
406 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
408 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
410 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
412 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
413 cd ../../portableapps/win32
414 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
417 # "distclean" removes all files not part of the distribution.
418 # It does not remove generated files that are part of the distribution.
419 distclean-local: clean-local
420 rm -f $(ZLIB_DIR)\zlib1.dll $(ZLIB_DIR)\zlib1.dll.manifest \
421 $(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
422 $(ZLIB_DIR)\lib\zdll.lib
423 rm -f config.h $(BUILT_SOURCES)
425 distclean: distclean-local
427 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
429 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
431 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
433 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
435 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
437 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
439 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
441 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
443 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
445 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
447 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
448 cd ../../portableapps/win32
449 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
452 # Make "maintainer-clean" only if you would like to remove ALL generated
454 # Be sure to have python and perl installed to regenerate them.
455 maintainer-clean-local: distclean-local
456 rm -f $(GENERATED_FILES)
458 maintainer-clean: maintainer-clean-local
460 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
462 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
464 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
466 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
468 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
470 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
472 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
474 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
476 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
478 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
480 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
481 cd ../../portableapps/win32
482 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
487 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
492 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
495 # None MSVC6 variants have to avoid indirectly using msvcrt.dll,
496 # therefore compile the zlib dll from source ZLIB_DIR package.
497 # To avoid path problems, copy the zlib sources to a temp dir,
498 # compile and copy the resulting files back to (source) ZLIB_DIR
499 $(ZLIB_DIR)\zlib1.dll:
500 xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
502 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
503 if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
504 if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
505 if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
506 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
507 mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
509 copy zlib1.dll $(ZLIB_DIR)
510 copy zdll.lib $(ZLIB_DIR)\lib
511 copy zconf.h $(ZLIB_DIR)\include
512 copy zlib.h $(ZLIB_DIR)\include
518 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
523 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
526 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
528 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
531 # copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
532 gtk2:: help config.h svnversion.h AUTHORS-SHORT
533 if not exist gtk2.tmp mkdir gtk2.tmp
536 xcopy Makefile.* ..\gtk2.tmp /d
537 xcopy *.c ..\gtk2.tmp /d
538 xcopy *.h ..\gtk2.tmp /d
540 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK2_CFLAGS)" GTK_LIBS="$(GTK2_LIBS)" libui.lib
543 epan:: $(RESOURCES) $(ZLIB_DIR)\zlib1.dll wiretap\wiretap-$(WTAP_VERSION).lib $(BUILT_SOURCES) doxygen
545 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
550 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
555 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
560 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
563 doxygen.cfg: config.nmake doxygen.cfg.in
564 sed -e s/@VERSION@/$(VERSION)/ \
565 < doxygen.cfg.in > $@
569 $(DOXYGEN) doxygen.cfg
572 doxygen: doxygen.cfg doxygen-run
574 ################################################################################
575 # Prepare build environment by downloading and installing required libraries
576 ################################################################################
578 # The required tools to build Wireshark.
580 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
581 # We only need the cygwin version (for some shell scripts).
582 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
601 @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
603 # Targets and etc used to verify or download libraries
605 !IFNDEF WIN32_SETUP_OPT
606 WIN32_SETUP_OPT=--download
609 # Verify that the required library 'package' (zip) files have been downloaded.
610 # (It seems reasonable to assume that if the files have been downloaded
611 # then they have been installed).
613 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
615 # Verify library packages only if Makefile.nmake has been updated
616 # (or dummy file doesn't exist because of 'make clean' or whatever)
617 # (To disable library verification when Makefile.nmake changes,
618 # comment out the commands for the following target).
619 # touch is only called if libverify succeeds
620 $(LIBS_CHECK): Makefile.nmake
621 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
622 @touch --reference=Makefile.nmake $@
624 # Download (if needed) and install all the required libraries into WIRESHARK_LIBS.
625 # A clean_setup is done first to ensure that the target dirs don't
626 # contain old files remaining from a previous setup run.
627 setup: verify_tools clean_setup process_libs
630 # The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
631 # (The choice is determined by the value of the macro WIN32_SETUP_OPT).
633 if not exist $(WIRESHARK_LIBS) md $(WIRESHARK_LIBS)
634 !IF "$(GTK2_INST_VERSION)" == "2.12"
635 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
636 glib gtk2.12/glib-2.14.3.zip
637 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
638 glib gtk2.12/glib-dev-2.14.3.zip
639 !ELSEIF "$(GTK2_INST_VERSION)" == "2.10"
640 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
641 glib gtk2.10/glib-2.12.13.zip
642 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
643 glib gtk2.10/glib-dev-2.12.13.zip
645 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
646 glib glib-2.2.3-20040116.zip
647 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
648 glib glib-dev-2.2.3-20040116.zip
651 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
652 gtk+ gtk+-1.3.0-20030717.zip
653 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
654 gtk+ gtk+-dev-1.3.0-20030115.zip
656 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
657 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
658 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
659 gettext-0.14.5 gettext-0.14.5.zip
661 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
665 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
669 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
670 AirPcap_Devpack_1_0_0_594 AirPcap_Devpack_1_0_0_594.zip
673 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
674 . adns-1.0-win32-05.zip
677 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
678 pcre-6.4 pcre-6.4-bin.zip
679 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
680 pcre-6.4 pcre-6.4-lib.zip
683 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
687 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
692 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
696 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
700 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
705 !IF "$(GTK2_INST_VERSION)" == "2.12"
706 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
707 gtk2 gtk2.12/gtk+-2.12.1.zip
708 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
709 gtk2 gtk2.12/gtk+-dev-2.12.1.zip
710 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
711 gtk2 gtk2.12/cairo-1.4.10.zip
712 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
713 gtk2 gtk2.12/cairo-dev-1.4.10.zip
714 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
715 gtk2 gtk2.12/atk-1.20.0.zip
716 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
717 gtk2 gtk2.12/atk-dev-1.20.0.zip
718 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
719 gtk2 gtk2.12/libpng-1.2.8-bin.zip
720 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
721 gtk2 gtk2.12/tiff-3.8.2-1-bin.zip
722 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
723 gtk2 gtk2.12/jpeg-6b-4-bin.zip
724 !ELSEIF "$(GTK2_INST_VERSION)" == "2.10"
725 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
726 gtk2 gtk2.10/gtk+-2.10.14.zip
727 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
728 gtk2 gtk2.10/gtk+-dev-2.10.14.zip
729 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
730 gtk2 gtk2.10/cairo-1.4.8.zip
731 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
732 gtk2 gtk2.10/cairo-dev-1.4.8.zip
733 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
734 gtk2 gtk2.10/atk-1.18.0.zip
735 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
736 gtk2 gtk2.10/atk-dev-1.18.0.zip
737 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
738 gtk2 gtk2.10/libpng-1.2.8-bin.zip
740 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
741 gtk2 gtk2/gtk+-2.2.4-20040124.zip
742 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
743 gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
744 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
745 gtk2 gtk2/atk-1.4.0.zip
746 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
747 gtk2 gtk2/atk-dev-1.4.0.zip
749 !IF "$(PANGO_INST_VERSION)" == "1.18"
750 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
751 gtk2 gtk2.12/pango-1.18.3.zip
752 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
753 gtk2 gtk2.12/pango-dev-1.18.3.zip
754 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
755 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
756 gtk2 gtk2.10/pango-1.16.4.zip
757 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
758 gtk2 gtk2.10/pango-dev-1.16.4.zip
760 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
761 gtk2 gtk2/pango-1.2.5-20040124.zip
762 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
763 gtk2 gtk2/pango-dev-1.2.5-20040124.zip
767 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
768 gtk-wimp gtk-wimp/gtk-wimp-0.7.0-bin.zip
771 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
772 user-guide user-guide-23522.zip
775 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
779 @echo Wireshark is ready to build.
781 # Cleanup files installed by the setup target. It will not remove the
782 # downloaded zip files.
783 # WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
784 # UPDATING REMOVES THE FORMER USER DIRS
786 rm -r -f $(WIRESHARK_LIBS)/adns-1.0-win32-05
787 rm -r -f $(WIRESHARK_LIBS)/gettext-0.14.5
788 rm -r -f $(WIRESHARK_LIBS)/glib
789 rm -r -f $(WIRESHARK_LIBS)/gnutls-1.6.1-1
790 rm -r -f $(WIRESHARK_LIBS)/gtk2
791 rm -r -f $(WIRESHARK_LIBS)/gtk+
792 rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
793 rm -r -f $(WIRESHARK_LIBS)/kfw-2.5
794 rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
795 rm -r -f $(WIRESHARK_LIBS)/lua5.1
796 rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.5
797 rm -r -f $(WIRESHARK_LIBS)/pcre-6.4
798 rm -r -f $(WIRESHARK_LIBS)/portaudio_v18_1
799 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19
800 rm -r -f $(WIRESHARK_LIBS)/user-guide
801 rm -r -f $(WIRESHARK_LIBS)/WpdPack
802 rm -r -f $(WIRESHARK_LIBS)/AirPcap_Devpack_1_0_0_594
803 rm -r -f $(WIRESHARK_LIBS)/zlib123
804 rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
805 rm -r -f $(WIRESHARK_LIBS)/upx301w
807 ################################################################################
808 # Prepare the debug trees for running Wireshark/Tshark from there.
809 ################################################################################
812 # generate and install Wireshark GTK1 in INSTALL1_DIR
813 debug-gtk1: wireshark.exe install-files1
815 # generate and install Wireshark GTK2 in INSTALL2_DIR
816 debug-gtk2: wireshark-gtk2.exe install-files2
818 # generate and install Wireshark GTK2 in INSTALL2_DIR
819 debug-tshark: tshark.exe
821 set INSTALL_DIR=$(INSTALL2_DIR)
822 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
824 # generate and install Wireshark GTK2 in INSTALL2_DIR
825 debug-dumpcap: dumpcap.exe
828 # "install-deps" will copy all files needed to run Wwireshark/Tshark
829 # to the INSTALL1_DIR/INSTALL2_DIR, so you can run/debug Wireshark/Tshark from there.
831 install-deps: install-deps1 install-deps2 install-files1 install-files2
833 # install Wireshark GTK1 and other generated files
837 set INSTALL_DIR=$(INSTALL1_DIR)
838 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
839 xcopy wireshark.exe $(INSTALL1_DIR) /d
840 if exist wireshark.pdb xcopy wireshark.pdb $(INSTALL1_DIR) /d
843 # install Wireshark GTK2 and other generated files
846 set INSTALL_DIR=$(INSTALL2_DIR)
847 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
848 copy wireshark-gtk2.exe $(INSTALL2_DIR)\wireshark.exe
849 if exist wireshark-gtk2.pdb copy wireshark-gtk2.pdb $(INSTALL2_DIR)\wireshark.pdb
850 if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL2_DIR) /d
853 install-common-files:
855 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
856 !IFDEF ENABLE_LIBWIRESHARK
857 xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
859 xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
860 if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
861 xcopy ".\epan\libwireshark.dll" $(INSTALL_DIR) /d
862 if exist ".\epan\libwireshark.pdb" xcopy ".\epan\libwireshark.pdb" $(INSTALL_DIR) /d
863 if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
864 if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
865 if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
866 if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
867 if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
868 if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
869 if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
870 if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
871 if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
872 if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
873 if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
874 if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
875 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
876 xcopy ".\manuf" $(INSTALL_DIR) /d
877 xcopy ".\services" $(INSTALL_DIR) /d
878 xcopy ".\FAQ" $(INSTALL_DIR) /d
879 xcopy ".\README" $(INSTALL_DIR) /d
880 xcopy ".\README.win32" $(INSTALL_DIR) /d
881 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
882 xcopy ".\COPYING" $(INSTALL_DIR) /d
883 copy ".\NEWS" $(INSTALL_DIR)\NEWS.txt
884 xcopy ".\cfilters" $(INSTALL_DIR) /d
885 xcopy ".\colorfilters" $(INSTALL_DIR) /d
886 xcopy ".\dfilters" $(INSTALL_DIR) /d
887 xcopy ".\smi_modules" $(INSTALL_DIR) /d
889 xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
890 xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
892 xcopy doc\*.html $(INSTALL_DIR) /d
893 !IFDEF ETHEREAL_EUG_DIR
894 xcopy $(ETHEREAL_EUG_DIR) $(INSTALL_DIR) /d
896 if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
897 xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
898 if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
899 xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
900 if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
901 echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
902 if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
903 xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
904 if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
905 xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
906 xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
907 if not exist $(INSTALL_DIR)\tpncp mkdir $(INSTALL_DIR)\tpncp
908 xcopy ".\tpncp\*.dat" $(INSTALL_DIR)\tpncp /d
909 if not exist $(INSTALL_DIR)\wimaxasncp mkdir $(INSTALL_DIR)\wimaxasncp
910 xcopy ".\wimaxasncp\*.*" $(INSTALL_DIR)\wimaxasncp /d
911 if not exist $(INSTALL_DIR)\plugins\$(VERSION) mkdir $(INSTALL_DIR)\plugins\$(VERSION)
912 xcopy ".\plugins\agentx\agentx.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
913 xcopy ".\plugins\artnet\artnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
914 xcopy ".\plugins\asn1\asn1.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
915 xcopy ".\plugins\ciscosm\ciscosm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
916 xcopy ".\plugins\docsis\docsis.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
917 xcopy ".\plugins\enttec\enttec.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
918 xcopy ".\plugins\giop\coseventcomm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
919 xcopy ".\plugins\giop\cosnaming.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
920 xcopy ".\plugins\giop\parlay.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
921 xcopy ".\plugins\giop\tango.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
922 xcopy ".\plugins\gryphon\gryphon.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
923 xcopy ".\plugins\irda\irda.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
924 xcopy ".\plugins\lwres\lwres.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
925 xcopy ".\plugins\m2m\m2m.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
926 xcopy ".\plugins\mate\mate.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
927 xcopy ".\plugins\opcua\opcua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
928 xcopy ".\plugins\opsi\opsi.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
929 xcopy ".\plugins\pcli\pcli.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
930 xcopy ".\plugins\profinet\profinet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
931 xcopy ".\plugins\rlm\rlm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
932 xcopy ".\plugins\rtnet\rtnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
933 xcopy ".\plugins\rudp\rudp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
934 xcopy ".\plugins\sbus\sbus.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
935 xcopy ".\plugins\stats_tree\stats_tree.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
936 xcopy ".\plugins\unistim\unistim.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
937 xcopy ".\plugins\v5ua\v5ua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
938 xcopy ".\plugins\wimax\wimax.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
939 xcopy ".\plugins\wimaxasncp\wimaxasncp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
940 if exist custom-install.bat custom-install $(INSTALL_DIR) $(VERSION)
942 install-deps1: install-common-deps1
945 xcopy $(GTK1_DIR)\lib\libgtk-0.dll $(INSTALL1_DIR) /d
946 xcopy $(GTK1_DIR)\lib\libgdk-0.dll $(INSTALL1_DIR) /d
949 install-deps2: install-common-deps2
952 xcopy $(GTK2_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL2_DIR) /d
953 xcopy $(GTK2_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL2_DIR) /d
954 xcopy $(GTK2_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL2_DIR) /d
955 xcopy $(GTK2_DIR)\bin\libatk-1.0-0.dll $(INSTALL2_DIR) /d
956 xcopy $(GTK2_DIR)\bin\libpango-1.0-0.dll $(INSTALL2_DIR) /d
957 xcopy $(GTK2_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL2_DIR) /d
958 if not exist $(INSTALL2_DIR)\etc mkdir $(INSTALL2_DIR)\etc
959 if not exist $(INSTALL2_DIR)\etc\gtk-2.0 mkdir $(INSTALL2_DIR)\etc\gtk-2.0
960 if not exist $(INSTALL2_DIR)\etc\pango mkdir $(INSTALL2_DIR)\etc\pango
961 if not exist $(INSTALL2_DIR)\lib mkdir $(INSTALL2_DIR)\lib
962 if not exist $(INSTALL2_DIR)\lib\gtk-2.0 mkdir $(INSTALL2_DIR)\lib\gtk-2.0
963 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR) mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)
964 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders
965 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules
966 if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\engines
967 # if not exist $(INSTALL2_DIR)\lib\pango mkdir $(INSTALL2_DIR)\lib\pango
968 # if not exist $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR) mkdir $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)
969 # if not exist $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules mkdir $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules
970 xcopy $(GTK2_DIR)\etc\gtk-2.0\*.* $(INSTALL2_DIR)\etc\gtk-2.0 /d
971 xcopy $(GTK2_DIR)\etc\pango\pango.* $(INSTALL2_DIR)\etc\pango /d
972 # xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders /d
973 xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules\im-*.dll $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules /d
974 # xcopy $(GTK2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules /d
975 !IFDEF NEED_LIBPNG_DLL
976 xcopy $(GTK2_DIR)\bin\libpng13.dll $(INSTALL2_DIR) /d
978 !IFDEF NEED_LIBTIFF_DLL
979 xcopy $(GTK2_DIR)\bin\libtiff3.dll $(INSTALL2_DIR) /d
981 !IFDEF NEED_LIBJPEG_DLL
982 xcopy $(GTK2_DIR)\bin\jpeg62.dll $(INSTALL2_DIR) /d
984 !IFDEF NEED_CAIRO_DLL
985 xcopy $(GTK2_DIR)\bin\libcairo-2.dll $(INSTALL2_DIR) /d
986 xcopy $(GTK2_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL2_DIR) /d
989 if not exist $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR)
990 xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
991 if not exist $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR)
992 xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR) /d
996 install-common-deps1:
998 set INSTALL_DIR=$(INSTALL1_DIR)
999 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-deps
1002 install-common-deps2:
1004 set INSTALL_DIR=$(INSTALL2_DIR)
1005 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-deps
1008 install-common-deps:
1010 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
1011 xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
1012 xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
1013 xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
1014 xcopy $(ICONV_DIR)\bin\iconv.dll $(INSTALL_DIR) /d
1015 xcopy $(GETTEXT_DIR)\bin\intl.dll $(INSTALL_DIR) /d
1017 xcopy $(ZLIB_DIR)\zlib1.dll $(INSTALL_DIR) /d
1020 xcopy $(ADNS_DIR)\adns_win32\LIB\adns_dll.dll $(INSTALL_DIR) /d
1023 xcopy $(PCRE_DIR)\bin\pcre.dll $(INSTALL_DIR) /d
1024 xcopy $(PCRE_DIR)\man\cat3\pcrepattern.3.txt $(INSTALL_DIR) /d
1027 xcopy $(KFW_DIR)\bin\comerr32.dll $(INSTALL_DIR) /d
1028 xcopy $(KFW_DIR)\bin\krb5_32.dll $(INSTALL_DIR) /d
1031 xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
1032 xcopy $(GNUTLS_DIR)\bin\libgnutls-13.dll $(INSTALL_DIR) /d
1033 xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-13.dll $(INSTALL_DIR) /d
1034 xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-13.dll $(INSTALL_DIR) /d
1035 xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
1036 xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
1039 xcopy "$(LUA_DIR)\lib\dll\lua5.1.dll" $(INSTALL_DIR) /d
1042 if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
1043 if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
1044 xcopy "$(SMI_DIR)\lib\smi.dll" $(INSTALL_DIR) /d
1045 xcopy "$(SMI_DIR)\mibs\*" $(INSTALL_DIR)\snmp\mibs /d
1049 rm -rf $(INSTALL1_DIR)
1051 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
1055 rm -rf $(INSTALL2_DIR)
1057 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
1060 clean-deps: clean-deps1 clean-deps2