1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
4 # We "Deploy using XCopy," which is described at
5 # http://msdn.microsoft.com/en-us/library/ms235291.aspx
10 ############### no need to modify below this line #########
16 WIN_SETUP=tools/win-setup.sh
19 # Checking that the Wireshark Libraries are up-to-date:
20 # 1. win-setup.sh --checktag <tag> is invoked during nmake "preprocessing".
21 # If an error status is returned (ie: the libraries are not up-to-date)
22 # then CHECK_TAG is defined as a non-null string.
23 # 2. The $(LIBS_CHECK) target is invoked during the nmake:
24 # If $(CHECK_TAG) is non-null, then a "libraries not up to date" exit will occur.
25 # If $(CHECK_TAG) is null, but either config.nmake or Makefile.nmake
26 # are newer than the $(LIBS_CHECK) target, then a detailed verification
27 # as to the required library package files will be made.
29 LIBS_CHECK=_libs_check_
30 !IF [$(SH) $(WIN_SETUP) --checktag "$(WIRESHARK_LIB_DIR)" "$(DOWNLOAD_TAG)"] != 0
37 LDFLAGS = /NOLOGO /INCREMENTAL:NO $(LOCAL_LDFLAGS)
39 # We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
42 /I. /Iwiretap $(GLIB_CFLAGS) \
43 $(ZLIB_CFLAGS) /I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
44 $(C_ARES_CFLAGS) $(ADNS_CFLAGS) $(GNUTLS_CFLAGS) \
45 $(SMI_CFLAGS) $(GEOIP_CFLAGS) $(WINSPARKLE_CFLAGS)
47 CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
50 $(CC) $(CFLAGS) -Fd.\ -c $<
52 include Makefile.common
54 wireshark_gtk_OBJECTS = $(WIRESHARK_COMMON_SRC:.c=.obj)
55 tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
56 tfshark_OBJECTS = $(tfshark_SOURCES:.c=.obj)
57 rawshark_OBJECTS = $(rawshark_SOURCES:.c=.obj)
59 # XXX - one of the files in text2pcap_SOURCES is a .l file, so
62 ###text2pcap_OBJECTS = $(text2pcap_SOURCES:.c=.obj)
63 mergecap_OBJECTS = $(mergecap_SOURCES:.c=.obj)
64 editcap_OBJECTS = $(editcap_SOURCES:.c=.obj)
65 capinfos_OBJECTS = $(capinfos_SOURCES:.c=.obj)
66 captype_OBJECTS = $(captype_SOURCES:.c=.obj)
67 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
68 dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
69 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
70 reordercap_OBJECTS = $(reordercap_SOURCES:.c=.obj)
71 # this does not work because source file is in a subfolder of this makefile
72 # and we end up recompiling systematically androiddump.c
73 #androiddump_OBJECTS = $(androiddump_SOURCES:.c=.obj)
76 # psapi.lib see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683219(v=vs.85).aspx
79 wireshark_gtk_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
80 wsock32.lib user32.lib shell32.lib comctl32.lib ole32.lib psapi.lib \
82 wsutil\libwsutil.lib \
85 !IFDEF ENABLE_LIBWIRESHARK
86 epan\libwireshark.lib \
88 epan\dissectors\dissectors.lib \
90 epan\crypt\airpdcap.lib \
91 epan\dfilter\dfilter.lib \
92 epan\ftypes\ftypes.lib \
98 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
99 wsock32.lib user32.lib psapi.lib \
101 wsutil\libwsutil.lib \
103 !IFDEF ENABLE_LIBWIRESHARK
104 epan\libwireshark.lib \
106 epan\dissectors\dissectors.lib \
108 epan\crypt\airpdcap.lib \
109 epan\dfilter\dfilter.lib \
110 epan\ftypes\ftypes.lib \
116 tfshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
117 wsock32.lib user32.lib psapi.lib \
119 wsutil\libwsutil.lib \
121 !IFDEF ENABLE_LIBWIRESHARK
122 epan\libwireshark.lib \
124 epan\dissectors\dissectors.lib \
126 epan\dfilter\dfilter.lib \
127 epan\ftypes\ftypes.lib \
131 rawshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
132 wsock32.lib user32.lib psapi.lib \
134 wsutil\libwsutil.lib \
136 !IFDEF ENABLE_LIBWIRESHARK
137 epan\libwireshark.lib \
139 epan\dissectors\dissectors.lib \
141 epan\crypt\airpdcap.lib \
142 epan\dfilter\dfilter.lib \
143 epan\ftypes\ftypes.lib \
149 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
150 wsock32.lib user32.lib shell32.lib \
151 wsutil\libwsutil.lib \
155 captype_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
156 wsock32.lib user32.lib shell32.lib \
157 wsutil\libwsutil.lib \
160 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
161 wsock32.lib user32.lib shell32.lib \
162 wsutil\libwsutil.lib \
165 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
166 wsock32.lib user32.lib \
167 wsutil\libwsutil.lib \
170 reordercap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
171 wsock32.lib user32.lib \
172 wsutil\libwsutil.lib \
176 wsock32.lib user32.lib \
177 wsutil\libwsutil.lib \
180 androiddump_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
181 wsock32.lib user32.lib \
182 wsutil\libwsutil.lib \
186 wsock32.lib user32.lib \
187 caputils\libcaputils.lib \
188 wsutil\libwsutil.lib \
191 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
192 wsock32.lib user32.lib psapi.lib \
194 wsutil\libwsutil.lib \
196 !IFDEF ENABLE_LIBWIRESHARK
197 epan\libwireshark.lib \
199 epan\dissectors\dissectors.lib \
201 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
208 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
210 wsutil\libwsutil.lib \
213 EXECUTABLES=$(PROGRAM_NAME_GTK).exe tshark.exe tfshark.exe rawshark.exe \
214 capinfos.exe captype.exe editcap.exe mergecap.exe text2pcap.exe \
215 randpkt.exe reordercap.exe dumpcap.exe androiddump.exe dftest.exe
218 EXECUTABLES=$(EXECUTABLES) $(PROGRAM_NAME).exe
221 RESOURCES=image\wireshark.res image\file_dlg_win32.res \
222 image\libwireshark.res image\tshark.res image\tfshark.res image\capinfos.res \
223 image\captype.res image\editcap.res image\mergecap.res \
224 image\text2pcap.res image\wiretap.res image\dumpcap.res \
225 image\rawshark.res image\reordercap.res image\libwsutil.res
228 all: $(LIBS_CHECK) config.h ui\qt\config.pri tools image codecs $(C_ARES_DLL) $(ADNS_DLL) $(ZLIB_DLL) wsutil wiretap epan $(EXECUTABLES) wireshark.bsc $(RESOURCES) help install-all
234 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
239 @echo \? NSIS not available (MAKENSIS not defined in config.nmake)
247 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
251 # use (info-)zip from cygwin to pack things
254 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)
257 @echo Including vcredist_$(TARGET_MACHINE).exe -- your recipient may need to run it!
258 xcopy "$(VCREDIST_EXE)" $(INSTALL_DIR)
261 zip -r -9 wireshark.zip $(INSTALL_DIR)/
263 !IFDEF WIRESHARK_GENERATE_BSC_FILE
264 # Note: Certain .sbr files cause bscmake warning "too many references... ignoring ..."
265 # XXX: It seems that using .bsc files with VS2010 doesn't work (isn't supported ?)
266 # Using .bsc files with VS2008 may work
267 # See: https://ask.wireshark.org/questions/8660/wireshark-building-and-debugging-on-visual-c-or-visual-studio
276 epan\dissectors\*.sbr \
280 plugins\docsis\*.sbr \
281 plugins\ethercat\*.sbr \
282 plugins\gryphon\*.sbr \
286 plugins\opcua\*.sbr \
287 plugins\profinet\*.sbr \
288 plugins\stats_tree\*.sbr \
289 plugins\unistim\*.sbr \
290 plugins\wimax\*.sbr \
291 plugins\wimaxasncp\*.sbr \
292 plugins\wimaxmacphy\*.sbr \
308 rm -f ../[Ww]ireshark-pdb-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).zip
309 zip -9 ../Wireshark-pdb-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).zip *.pdb *.lib
314 ## Note: The proper "SUBSYSTEM" link option to be used for linking each of the Wireshark executables
315 ## is specified in '$(guiflags)' or '$(conflags)' as used as part of the link options.
316 ## (These variables (as well as '$(guilibsdll)' and '$(conlibsdll)') are defined in win32.mak).
317 wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DLL) wiretap
319 $(PROGRAM_NAME_GTK).exe : $(LIBS_CHECK) config.h $(wireshark_gtk_OBJECTS) capchild caputils codecs epan ui gtk win32 image\wireshark.res image\file_dlg_win32.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib ui\libui.lib ui\gtk\libgtkui.lib ui\win32\libgtkui_win32.lib plugins
322 /OUT:$(PROGRAM_NAME_GTK).exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE $(wireshark_gtk_LIBS) $(GTK_LIBS) capchild\libcapchild.lib caputils\libcaputils.lib codecs\codecs.lib ui\gtk\libgtkui.lib ui\win32\libgtkui_win32.lib ui\libui.lib $(wireshark_gtk_OBJECTS) image\wireshark.res image\file_dlg_win32.res
324 !IFDEF MANIFEST_INFO_REQUIRED
325 mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:$(PROGRAM_NAME).exe;1
328 $(PROGRAM_NAME).exe : install-generated-files $(LIBS_CHECK) config.h capchild caputils epan ui qt wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
330 tshark.exe : $(LIBS_CHECK) config.h $(tshark_OBJECTS) capchild caputils epan ui cli image\tshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
333 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE $(tshark_LIBS) $(tshark_OBJECTS) capchild\libcapchild.lib caputils\libcaputils.lib ui\cli\libcliui.lib ui\libui.lib image\tshark.res
335 !IFDEF MANIFEST_INFO_REQUIRED
336 mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
339 tfshark.exe : $(LIBS_CHECK) config.h $(tfshark_OBJECTS) epan ui cli image\tfshark.res wsutil\libwsutil.lib plugins
342 /OUT:tfshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE $(tfshark_LIBS) $(tfshark_OBJECTS) ui\cli\libcliui.lib ui\libui.lib image\tfshark.res
344 !IFDEF MANIFEST_INFO_REQUIRED
345 mt.exe -nologo -manifest "tfshark.exe.manifest" -outputresource:tfshark.exe;1
348 rawshark.exe : $(LIBS_CHECK) config.h $(rawshark_OBJECTS) caputils epan ui image\rawshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
351 /OUT:rawshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE $(rawshark_LIBS) $(rawshark_OBJECTS) caputils\libcaputils.lib ui\libui.lib image\rawshark.res
353 !IFDEF MANIFEST_INFO_REQUIRED
354 mt.exe -nologo -manifest "rawshark.exe.manifest" -outputresource:rawshark.exe;1
357 # Linking with setargv.obj enables "wildcard expansion" of command-line arguments
358 capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
361 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(capinfos_OBJECTS) $(capinfos_LIBS) setargv.obj image\capinfos.res
363 !IFDEF MANIFEST_INFO_REQUIRED
364 mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
367 # Linking with setargv.obj enables "wildcard expansion" of command-line arguments
368 captype.exe : $(LIBS_CHECK) config.h $(captype_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\captype.res
371 /OUT:captype.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(captype_OBJECTS) $(captype_LIBS) setargv.obj image\captype.res
373 !IFDEF MANIFEST_INFO_REQUIRED
374 mt.exe -nologo -manifest "captype.exe.manifest" -outputresource:captype.exe;1
377 editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
380 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(editcap_OBJECTS) $(editcap_LIBS) image\editcap.res
382 !IFDEF MANIFEST_INFO_REQUIRED
383 mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
386 # Linking with setargv.obj enables "wildcard expansion" of command-line arguments
387 mergecap.exe : $(LIBS_CHECK) config.h $(mergecap_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
390 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(mergecap_OBJECTS) $(mergecap_LIBS) setargv.obj image\mergecap.res
392 !IFDEF MANIFEST_INFO_REQUIRED
393 mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
396 # Linking with setargv.obj enables "wildcard expansion" of command-line arguments
397 reordercap.exe : $(LIBS_CHECK) config.h $(reordercap_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\reordercap.res
400 /OUT:reordercap.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(reordercap_OBJECTS) $(reordercap_LIBS) setargv.obj image\reordercap.res
402 !IFDEF MANIFEST_INFO_REQUIRED
403 mt.exe -nologo -manifest "reordercap.exe.manifest" -outputresource:reordercap.exe;1
406 text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj pcapio.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\text2pcap.res
409 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) text2pcap.obj text2pcap-scanner.obj pcapio.obj $(text2pcap_LIBS) image\text2pcap.res
411 !IFDEF MANIFEST_INFO_REQUIRED
412 mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
415 dftest.exe : $(dftest_OBJECTS) epan ui
418 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(dftest_LIBS) ui\libui.lib $(dftest_OBJECTS)
420 !IFDEF MANIFEST_INFO_REQUIRED
421 mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
424 randpkt.exe : $(randpkt_OBJECTS)
427 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(randpkt_LIBS) $(randpkt_OBJECTS)
429 !IFDEF MANIFEST_INFO_REQUIRED
430 mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
433 androiddump.exe : $(LIBS_CHECK) config.h androiddump.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib
436 /OUT:androiddump.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:WINDOWS androiddump.obj $(androiddump_LIBS)
438 !IFDEF MANIFEST_INFO_REQUIRED
439 mt.exe -nologo -manifest "androiddump.exe.manifest" -outputresource:androiddump.exe;1
442 dumpcap.exe : $(LIBS_CHECK) config.h $(dumpcap_OBJECTS) caputils wsutil\libwsutil.lib image\dumpcap.res
445 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) $(dumpcap_LIBS) $(dumpcap_OBJECTS) image\dumpcap.res
447 !IFDEF MANIFEST_INFO_REQUIRED
448 mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
452 config.h : config.h.win32 config.nmake
453 sed -e s/@VERSION@/$(VERSION)/ \
454 -e s/@VERSION_MAJOR@/$(VERSION_MAJOR)/ \
455 -e s/@VERSION_MINOR@/$(VERSION_MINOR)/ \
456 -e s/@VERSION_MICRO@/$(VERSION_MICRO)/ \
457 -e "s/@VERSION_FLAVOR@/$(VERSION_FLAVOR)/" \
458 -e "s/@HAVE_C_ARES@/$(C_ARES_CONFIG)/" \
459 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
460 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
461 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
462 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
463 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
464 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
465 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
466 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION@/$(PCAP_DATALINK_VAL_TO_DESCRIPTION_CONFIG)/" \
467 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
468 -e "s/@HAVE_REMOTE@/$(PCAP_HAVE_REMOTE_CONFIG)/" \
469 -e "s/@HAVE_PCAP_REMOTE@/$(PCAP_REMOTE_CONFIG)/" \
470 -e "s/@HAVE_PCAP_OPEN@/$(PCAP_OPEN_CONFIG)/" \
471 -e "s/@HAVE_PCAP_OPEN_DEAD@/$(PCAP_OPEN_DEAD_CONFIG)/" \
472 -e "s/@HAVE_PCAP_LIST_DATALINKS@/$(PCAP_LIST_DATALINKS_CONFIG)/" \
473 -e "s/@HAVE_PCAP_FREE_DATALINKS@/$(PCAP_FREE_DATALINKS_CONFIG)/" \
474 -e "s/@HAVE_PCAP_SET_DATALINK@/$(PCAP_SET_DATALINK_CONFIG)/" \
475 -e "s/@HAVE_PCAP_SETSAMPLING@/$(PCAP_SETSAMPLING_CONFIG)/" \
476 -e "s/@HAVE_BPF_IMAGE@/$(BPF_IMAGE_CONFIG)/" \
477 -e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
478 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
479 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
480 -e "s/@HAVE_LUA@/$(LUA_VERSION)/" \
481 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
482 -e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
483 -e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
484 -e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
485 -e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
486 -e "s/@HAVE_GEOIP@/$(GEOIP_CONFIG)/" \
487 -e "s/@HAVE_GEOIP_V6@/$(GEOIP_V6_CONFIG)/" \
488 -e "s/@HAVE_SOFTWARE_UPDATE@/$(WINSPARKLE_CONFIG)/" \
489 -e "s/@INET6@/$(INET6_CONFIG)/" \
490 -e "s/@HAVE_NTDDNDIS_H@/$(NTDDNDIS_CONFIG)/" \
491 -e "s/@PCAP_NG_DEFAULT@/$(PCAP_NG_DEFAULT)/" \
492 -e "s/@WANT_PACKET_EDITOR@/$(WANT_PACKET_EDITOR)/" \
493 < config.h.win32 > $@
495 ui\qt\config.pri: config.nmake Makefile.nmake
496 @echo Creating <<ui\qt\config.pri
497 # Automatically generated from Makefile.nmake. Edit there, not here.
498 # qmake apparently requires a three-part numeric VERSION.
499 PROGRAM_NAME = $(PROGRAM_NAME)
500 VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
501 VERSION_FULL = $(VERSION)
502 WTAP_VERSION = $(WTAP_VERSION)
503 INSTALL_DIR = $(INSTALL_DIR)
504 QT5_BASE_DIR = $(QT5_BASE_DIR:\=/)
505 !IFDEF MANIFEST_INFO_REQUIRED
506 CONFIG += wireshark_manifest_info_required
509 CONFIG += wireshark_use_kfw
511 WIRESHARK_LIB_DIR = $(WIRESHARK_LIB_DIR:\=/)
512 GLIB_DIR = $(GTK_DIR:\=/)
513 C_ARES_DIR = $(C_ARES_DIR:\=/)
514 ZLIB_DIR = $(ZLIB_DIR:\=/)
515 GNUTLS_DIR = $(GNUTLS_DIR:\=/)
516 SMI_DIR = $(SMI_DIR:\=/)
517 KFW_DIR = $(KFW_DIR:\=/)
518 LUA_DIR = $(LUA_DIR:\=/)
519 GEOIP_DIR = $(GEOIP_DIR:\=/)
520 WINSPARKLE_DIR = $(WINSPARKLE_DIR:\=/)
523 GPGERROR_DLL = $(GPGERROR_DLL)
524 INTL_DLL = $(INTL_DLL)
526 guilibsdll = $(guilibsdll)
528 HHC_LIBS = $(HHC_LIBS)
530 COMERR_DLL = $(COMERR_DLL)
531 KRB5_DLL = $(KRB5_DLL)
532 K5SPRT_DLL = $(K5SPRT_DLL)
537 MSVC_VARIANT = $(MSVC_VARIANT)
538 MSVCR_DLL = "$(MSVCR_DLL:\=/)"
540 WIRESHARK_TARGET_PLATFORM = $(WIRESHARK_TARGET_PLATFORM)
542 QMAKE_CFLAGS *= $(STANDARD_CFLAGS)
543 # NOMINMAX keeps windows.h from defining "min" and "max" via windef.h.
544 # This avoids conflicts with the C++ standard library.
545 QMAKE_CXXFLAGS *= $(STANDARD_CFLAGS) /DNOMINMAX
546 QMAKE_LFLAGS *= /LARGEADDRESSAWARE $(LDFLAGS)
550 # Build the version string
552 # XXX - Makefile.am uses FORCE for this.
553 !IF EXIST(".git/index")
554 GITINDEX = .git/index
555 !ELSE IF EXIST(".svn/wc.db")
556 GITINDEX = .svn/wc.db
557 !ELSE IF EXIST(".svn/entries")
558 GITINDEX = .svn/entries
562 version.h: $(GITINDEX)
564 $(PERL) make-version.pl
567 text2pcap-scanner.c : text2pcap-scanner.l
568 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
570 text2pcap-scanner.obj : text2pcap-scanner.c
571 $(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
573 androiddump.obj : extcap/androiddump.c
574 $(CC) $(CFLAGS) -Fd.\ -c $?
578 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake test-programs
582 rm -f $(wireshark_gtk_OBJECTS) $(tshark_OBJECTS) $(tfshark_OBJECTS) $(dumpcap_OBJECTS) $(rawshark_OBJECTS) \
583 $(EXECUTABLES) *.nativecodeanalysis.xml *.pdb *.sbr *.exe.manifest \
585 capinfos.obj capinfos.exp capinfos.lib \
586 captype.obj captype.exp captype.lib \
587 editcap.obj editcap.exp editcap.lib \
588 mergecap.obj text2pcap.obj \
589 reordercap.obj nio-ie5.obj update.obj \
590 text2pcap-scanner.obj text2pcap-scanner.c \
591 config.h ps.c $(LIBS_CHECK) \
592 dftest.obj dftest.exe randpkt.obj randpkt.exe \
594 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll \
597 rm -rf $(INSTALL_DIR)
598 rm -rf $(INSTALL_DIR_QT)
602 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
604 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
606 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
608 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
610 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
612 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
614 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
616 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
622 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
624 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
626 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
628 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
630 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
632 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
634 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
636 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
638 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
640 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
642 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
645 # "distclean" removes all files not part of the distribution.
646 # It does not remove generated files that are part of the distribution.
647 distclean-local: clean-local
649 rm -f $(ADNS_DLL) $(ADNS_LIBS)
652 rm -f $(ZLIB_DLL) $(ZLIB_DIR)\zlib1.dll.manifest \
653 $(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
654 $(ZLIB_DIR)\lib\zdll.lib
656 rm -f config.h $(BUILT_SOURCES) wireshark-pdb*.zip
658 distclean: distclean-local
660 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
662 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
664 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
666 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
668 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
670 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
672 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
678 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
680 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
682 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
684 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
686 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
688 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
690 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
692 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
694 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
696 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
698 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
701 # Make "maintainer-clean" only if you would like to remove ALL generated
703 # Be sure to have python and perl installed to regenerate them.
704 maintainer-clean-local: distclean-local
705 rm -f $(GENERATED_FILES)
707 maintainer-clean: maintainer-clean-local
709 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
711 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
713 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
715 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
717 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
719 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
721 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
727 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
729 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
731 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
733 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
735 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
737 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
739 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
741 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
743 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
745 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
747 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
752 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
757 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
761 # MSVC variants supported by Wireshark have to avoid indirectly using msvcrt.dll,
762 # therefore compile the adns dll from source ADNS_DIR package.
763 # To avoid path problems, copy the adns sources to a temp dir,
764 # compile and copy the resulting files back to (source) ADNS_DIR
767 # - we need to "patch" adns_dll.rep and adns_dll.rc (at least for MSVC2005EE)
770 xcopy $(ADNS_DIR) adns.tmp /D /I /E /Y
771 copy adns_dll.dep adns.tmp\adns_win32\adns_dll
772 copy adns_dll.rc adns.tmp\adns_win32\adns_dll
773 cd adns.tmp\adns_win32\adns_dll
774 set CFG=adns_dll - Win32 Release
775 $(MAKE) /$(MAKEFLAGS) -f adns_dll.mak LOC="$(LOCAL_CFLAGS)"
777 !IFDEF MANIFEST_INFO_REQUIRED
778 mt.exe -nologo -manifest "adns_dll.dll.manifest" -outputresource:adns_dll.dll;2
780 if not exist "$(WIRESHARK_LIB_DIR)\$(MSVC_VARIANT)\adns" mkdir "$(WIRESHARK_LIB_DIR)\$(MSVC_VARIANT)\adns"
781 copy adns_dll.dll $(ADNS_DLL)
782 copy adns_dll.lib $(ADNS_LIBS)
788 # MSVC variants supported by Wireshark have to avoid indirectly using msvcrt.dll,
789 # therefore compile the zlib dll from source ZLIB_DIR package.
790 # To avoid path problems, copy the zlib sources to a temp dir,
791 # compile and copy the resulting files back to (source) ZLIB_DIR
793 xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
795 !if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
796 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-I. -DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
798 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll AS=ml64 LOC="-I. -DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
800 if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
801 if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
802 if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
803 !IFDEF MANIFEST_INFO_REQUIRED
804 mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
806 copy zlib1.dll $(ZLIB_DIR)
807 copy zdll.lib $(ZLIB_DIR)\lib
808 copy zconf.h $(ZLIB_DIR)
809 copy zlib.h $(ZLIB_DIR)
816 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
821 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
824 capchild:: help config.h version.h doxygen
826 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libcapchild.lib
829 caputils:: help config.h version.h doxygen
831 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libcaputils.lib
836 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
839 ui:: help config.h version.h doxygen
841 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libui.lib
844 gtk:: help config.h version.h doxygen
846 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libgtkui.lib
849 # The Visual C++ static analyzer currently fails with error C2171
850 # when compiling summary_dialog.cpp. If/when this ever gets fixed
851 # we can remove the ENABLE_CODE_ANALYSIS check.
852 qt:: help config.h version.h doxygen
855 $(QT5_BASE_DIR)\bin\qmake CONFIG+=release Wireshark.pro
856 !IFDEF ENABLE_CODE_ANALYSIS
866 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libgtkui_win32.lib
869 cli:: help config.h version.h doxygen
871 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libcliui.lib
874 epan:: $(RESOURCES) $(ZLIB_DLL) wiretap\wiretap-$(WTAP_VERSION).lib $(BUILT_SOURCES) doxygen
876 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
881 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
886 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
891 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
896 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
899 doxygen.cfg: config.nmake doxygen.cfg.in
900 sed -e s/@VERSION@/$(VERSION)/ \
901 < doxygen.cfg.in > $@
905 $(DOXYGEN) doxygen.cfg
908 doxygen: doxygen.cfg doxygen-run
910 services: tools\make-services.py
911 $(PYTHON) tools/make-services.py
913 ################################################################################
914 # Prepare build environment by downloading and installing required libraries
915 ################################################################################
917 # The required tools to build Wireshark.
919 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
920 # We only need the cygwin version (for some shell scripts).
921 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
926 !IFDEF MANIFEST_INFO_REQUIRED
934 --cygwinonly /usr/bin/find \
939 --windowsonly $(QT5_BASE_DIR)\bin\qmake \
946 # As win-setup.sh assumes the dir exists create it if it doesn't
947 @if not exist "$(WIRESHARK_LIB_DIR)" md "$(WIRESHARK_LIB_DIR)"
948 @$(SH) $(WIN_SETUP) --appverify $(REQUIRED_TOOLS)
950 # Targets and etc used to verify or download libraries
952 !IFNDEF WIN_SETUP_OPT
953 WIN_SETUP_OPT=--download
956 # Verify that the required library 'package' (zip) files have been downloaded.
957 # (It seems reasonable to assume that if the files have been downloaded
958 # then they have been installed).
960 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN_SETUP_OPT=--libverify process_libs
962 # Verify library packages:
963 # If $(CHECK_TAG) is non-null then checktag failed; Exit with an error message. (See beginning of this Makefile).
964 # Otherwise do detailed library package files verification only if Makefile.nmake or config.make have been updated
965 # (or dummy file doesn't exist because of 'make clean' or whatever).
966 # Note that the creation/modification time of a file after a git pull of that file
967 # is the time of the update (not the time of the file in the repository).
968 # touch is only called if libverify succeeds.
969 $(LIBS_CHECK): $(CHECK_TAG) config.nmake Makefile.nmake
970 @echo Verifying library package files ...
971 @$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN_SETUP_OPT=--libverify process_libs
974 # Target for "checktag failed" (libraries not up to date).
975 # Defined only if "checktag" failed (see beginning of this Makefile).
976 !IF "$(CHECK_TAG)" != ""
977 $(CHECK_TAG): _FORCE_
978 @echo \? Wireshark Libraries not up-to-date \?
979 @echo \? Do you need to run "nmake -f Makefile.nmake setup" \?
985 # Download (if needed) and install all the required libraries into WIRESHARK_LIB_DIR.
986 # A clean_setup is done first to ensure that the target dirs don't
987 # contain old files remaining from a previous setup run.
988 setup: verify_tools clean_setup process_libs
991 $(SH) $(WIN_SETUP) --download "C:\Qt" \
993 Qt-5.1.1-MSVC2010-$(WIRESHARK_TARGET_PLATFORM)-ws.zip \
994 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
996 # The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
997 # (The choice is determined by the value of the macro WIN_SETUP_OPT).
999 @if not exist "$(WIRESHARK_LIB_DIR)" md "$(WIRESHARK_LIB_DIR)"
1002 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1004 WinPcap_$(WINPCAP_VERSION).exe \
1005 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1008 !IFNDEF QT5_BASE_DIR
1009 !MESSAGE Can't find Qt. This will become a problem at some point.
1012 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1014 gtk+-bundle_$(GTK_PKG)_$(WIRESHARK_TARGET_PLATFORM)$(PKG_SUFIX).zip \
1015 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1018 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1020 !IF "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
1021 kfw-3-2-2-i386-ws-vc6.zip \
1023 kfw-3-2-2-x64-ws.zip \
1025 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1026 # @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1029 # "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1032 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1034 WpdPack_$(WPD_VERSION).zip \
1035 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1038 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1039 AirPcap_Devpack_4_1_0_1622 \
1040 AirPcap_Devpack_4_1_0_1622.zip \
1041 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1044 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1046 c-ares-$(C_ARES_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip \
1047 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1050 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1052 adns-1.0-win32-05ws.zip \
1053 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1056 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1058 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1061 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1063 lua$(LUA_DIST)_lib.zip \
1064 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1068 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1070 gnutls-$(GNUTLS_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip \
1071 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1073 !IFDEF PORTAUDIO_DIR
1074 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1076 portaudio_v19_2.zip \
1077 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1080 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1082 libsmi-$(SMI_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip \
1083 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1086 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1087 GeoIP-$(GEOIP_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws \
1088 GeoIP-$(GEOIP_PKG)-$(WIRESHARK_TARGET_PLATFORM)ws.zip \
1089 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1091 !IFDEF WINSPARKLE_DIR
1092 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1094 WinSparkle-$(WINSPARKLE_PKG).zip \
1095 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1098 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1100 user-guide-g7ea0d6c.zip \
1101 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1104 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1107 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1110 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
1112 nasm-2.09.08-win32.zip \
1113 "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1115 !IF "$(WIN_SETUP_OPT)" == "--download"
1116 @$(SH) $(WIN_SETUP) --settag "$(WIRESHARK_LIB_DIR)" "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
1119 @echo Wireshark is ready to build.
1121 # Cleanup files installed by the setup target. It will not remove the
1122 # downloaded zip files.
1123 # WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
1124 # UPDATING REMOVES THE FORMER USER DIRS
1126 cd "$(WIRESHARK_LIB_DIR)"
1127 rm -r -f adns-1.0-win32-05ws
1128 rm -r -f c-ares-1.5.3ws
1129 rm -r -f c-ares-1.6.0ws
1130 rm -r -f c-ares-1.7.0-win??ws
1131 rm -r -f c-ares-1.7.1-win??ws
1132 rm -r -f c-ares-1.9.1-1-win??ws
1133 rm -r -f gettext-0.14.5
1134 rm -r -f gettext-runtime-0.17
1135 rm -r -f gettext-runtime-0.17-1
1136 rm -r -f gettext-0.17-1 # win64
1138 rm -r -f gnutls-2.8.1-1
1139 rm -r -f gnutls-2.8.5-*-win??ws
1140 rm -r -f gnutls-2.10.3-*-win??ws
1141 rm -r -f gnutls-2.12.18-*-win??ws
1142 rm -r -f gnutls-3.1.22-*-win??ws
1143 rm -r -f gnutls-3.2.15-*-win??ws
1144 !IF "$(GTK_NAME)" == "gtk2"
1152 rm -r -f kfw-3-2-2-final
1153 rm -r -f kfw-3-2-2-i386-ws-vc6
1154 rm -r -f kfw-3-2-2-x64-ws
1155 rm -r -f libiconv-1.9.1.bin.woe32
1159 rm -r -f libsmi-0.4.5
1160 rm -r -f libsmi-0.4.8
1161 rm -r -f libsmi-svn-40773-win??ws
1164 rm -r -f nasm-2.09.08
1167 rm -r -f portaudio_v19
1168 rm -r -f portaudio_v19_2
1176 rm -r -f zlib123-dll
1177 rm -r -f AirPcap_Devpack_1_0_0_594
1178 rm -r -f AirPcap_Devpack_4_0_0_1480
1179 rm -r -f AirPcap_Devpack_4_1_0_1622
1180 rm -r -f GeoIP-1.4.5ws
1181 rm -r -f GeoIP-1.4.6-win??ws
1182 rm -r -f GeoIP-1.4.8-win??ws
1183 rm -r -f GeoIP-1.4.8-*-win??ws
1184 rm -r -f GeoIP-1.5.1-*-win??ws
1185 rm -r -f WinSparkle-0.3-44-g2c8d9d3-win??ws
1189 ################################################################################
1190 # Prepare the debug trees for running Wireshark/Tshark from there.
1191 ################################################################################
1194 # prepare debugging of Wireshark in INSTALL_DIR
1195 debug-wireshark: $(PROGRAM_NAME_GTK).exe install-generated-files
1197 # prepare debugging of tshark in INSTALL_DIR
1198 debug-tshark: tshark.exe install-generated-files
1200 # prepare debugging of tfshark in INSTALL_DIR
1201 debug-tfshark: tfshark.exe install-generated-files
1203 # prepare debugging of rawshark in INSTALL_DIR
1204 debug-rawshark: rawshark.exe install-generated-files
1206 # prepare debugging of dumpcap in INSTALL_DIR
1207 debug-dumpcap: dumpcap.exe install-generated-files
1210 # install generated files (exe, "our" libs, ...)
1211 install-generated-files: doc
1213 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
1214 !IF DEFINED (MSVCR_DLL) && "$(MSVC_VARIANT)" == "MSVC2008"
1215 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)\*.* /d
1217 !IFDEF ENABLE_LIBWIRESHARK
1218 xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
1219 if exist epan\libwireshark.lib xcopy .\epan\libwireshark.lib $(INSTALL_DIR) /d
1220 if exist epan\libwireshark.pdb xcopy .\epan\libwireshark.pdb $(INSTALL_DIR) /d
1222 xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
1223 if exist ".\wiretap\wiretap-$(WTAP_VERSION).lib" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).lib" $(INSTALL_DIR) /d
1224 if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
1225 xcopy ".\wsutil\libwsutil.dll" $(INSTALL_DIR) /d
1226 if exist ".\wsutil\libwsutil.lib" xcopy ".\wsutil\libwsutil.lib" $(INSTALL_DIR) /d
1227 if exist ".\wsutil\libwsutil.pdb" xcopy ".\wsutil\libwsutil.pdb" $(INSTALL_DIR) /d
1228 if exist $(PROGRAM_NAME_GTK).exe xcopy $(PROGRAM_NAME_GTK).exe $(INSTALL_DIR) /d
1229 if exist $(PROGRAM_NAME_GTK).pdb xcopy $(PROGRAM_NAME_GTK).pdb $(INSTALL_DIR) /d
1230 if exist $(PROGRAM_NAME_GTK).bsc xcopy $(PROGRAM_NAME_GTK).bsc $(INSTALL_DIR) /d
1231 if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL_DIR) /d
1232 if not exist $(INSTALL_DIR)\extcap mkdir $(INSTALL_DIR)\extcap
1233 if exist androiddump.exe xcopy androiddump.exe $(INSTALL_DIR)\extcap /d
1234 if exist androiddump.pdb xcopy androiddump.pdb $(INSTALL_DIR)\extcap /d
1235 if not exist $(INSTALL_DIR_QT)\extcap mkdir $(INSTALL_DIR_QT)\extcap
1236 if exist androiddump.exe xcopy androiddump.exe $(INSTALL_DIR_QT)\extcap /d
1237 if exist androiddump.pdb xcopy androiddump.pdb $(INSTALL_DIR_QT)\extcap /d
1238 if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
1239 if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
1240 if exist captype.exe xcopy captype.exe $(INSTALL_DIR) /d
1241 if exist captype.pdb xcopy captype.pdb $(INSTALL_DIR) /d
1242 if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
1243 if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
1244 if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
1245 if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
1246 if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
1247 if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
1248 if exist randpkt.exe xcopy randpkt.exe $(INSTALL_DIR) /d
1249 if exist randpkt.pdb xcopy randpkt.pdb $(INSTALL_DIR) /d
1250 if exist reordercap.exe xcopy reordercap.exe $(INSTALL_DIR) /d
1251 if exist reordercap.pdb xcopy reordercap.pdb $(INSTALL_DIR) /d
1252 if exist rawshark.exe xcopy rawshark.exe $(INSTALL_DIR) /d
1253 if exist rawshark.pdb xcopy rawshark.pdb $(INSTALL_DIR) /d
1254 if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
1255 if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
1256 if exist tfshark.exe xcopy tfshark.exe $(INSTALL_DIR) /d
1257 if exist tfshark.pdb xcopy tfshark.pdb $(INSTALL_DIR) /d
1258 if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
1259 if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
1260 xcopy "doc\AUTHORS-SHORT" $(INSTALL_DIR) /d
1261 xcopy ".\manuf" $(INSTALL_DIR) /d
1262 xcopy ".\services" $(INSTALL_DIR) /d
1263 xcopy ".\pdml2html.xsl" $(INSTALL_DIR) /d
1264 $(TEXTIFY) -Destination $(INSTALL_DIR) \
1269 xcopy ".\cfilters" $(INSTALL_DIR) /d
1270 xcopy ".\colorfilters" $(INSTALL_DIR) /d
1271 xcopy ".\dfilters" $(INSTALL_DIR) /d
1272 xcopy ".\smi_modules" $(INSTALL_DIR) /d
1274 xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
1275 xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
1277 xcopy ipmap.html $(INSTALL_DIR) /d
1278 xcopy doc\*.html $(INSTALL_DIR) /d
1279 xcopy doc\ws.css $(INSTALL_DIR) /d
1280 if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
1281 xcopy ".\help\toc" $(INSTALL_DIR)\help /d
1282 $(TEXTIFY) -Destination $(INSTALL_DIR)\help help\*.txt
1283 if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
1284 xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
1285 if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
1286 echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
1287 if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
1288 xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
1289 if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
1290 xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
1291 xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
1292 if not exist $(INSTALL_DIR)\tpncp mkdir $(INSTALL_DIR)\tpncp
1293 xcopy ".\tpncp\*.dat" $(INSTALL_DIR)\tpncp /d
1294 if not exist $(INSTALL_DIR)\wimaxasncp mkdir $(INSTALL_DIR)\wimaxasncp
1295 xcopy ".\wimaxasncp\*.*" $(INSTALL_DIR)\wimaxasncp /d
1296 if not exist $(INSTALL_DIR)\plugins mkdir $(INSTALL_DIR)\plugins
1298 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-plugins
1300 if not exist $(INSTALL_DIR)\profiles mkdir $(INSTALL_DIR)\profiles
1301 if not exist $(INSTALL_DIR)\profiles\Bluetooth mkdir $(INSTALL_DIR)\profiles\Bluetooth
1302 xcopy ".\profiles\Bluetooth\colorfilters" $(INSTALL_DIR)\profiles\Bluetooth /d
1303 if not exist $(INSTALL_DIR)\profiles\Classic mkdir $(INSTALL_DIR)\profiles\Classic
1304 xcopy ".\profiles\Classic\colorfilters" $(INSTALL_DIR)\profiles\Classic /d
1306 # "install-all" will copy all files needed to run Wireshark/Tshark
1307 # to the INSTALL_DIR, so you can run/debug Wireshark/Tshark from there.
1308 install-all: install-generated-files
1310 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
1311 !IF "$(GTK_INST_VERSION)" == "3.4" || "$(GTK_INST_VERSION)" == "3.6"
1312 xcopy $(GTK_DIR)\bin\libgdk-3-0.dll $(INSTALL_DIR) /d
1313 xcopy $(GTK_DIR)\bin\libgtk-3-0.dll $(INSTALL_DIR) /d
1315 xcopy $(GTK_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL_DIR) /d
1316 xcopy $(GTK_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL_DIR) /d
1318 xcopy $(GTK_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL_DIR) /d
1319 xcopy $(GTK_DIR)\bin\libatk-1.0-0.dll $(INSTALL_DIR) /d
1320 xcopy $(GTK_DIR)\bin\libpango-1.0-0.dll $(INSTALL_DIR) /d
1321 xcopy $(GTK_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL_DIR) /d
1322 if not exist $(INSTALL_DIR)\lib mkdir $(INSTALL_DIR)\lib
1323 if not exist $(INSTALL_DIR)\etc mkdir $(INSTALL_DIR)\etc
1324 if not exist $(INSTALL_DIR)\$(GTK_ETC_DIR) mkdir $(INSTALL_DIR)\$(GTK_ETC_DIR)
1325 xcopy $(GTK_DIR)\$(GTK_ETC_DIR)\*.* $(INSTALL_DIR)\$(GTK_ETC_DIR) /d
1326 # if not exist $(INSTALL_DIR)\etc\pango mkdir $(INSTALL_DIR)\etc\pango
1327 # xcopy $(GTK_DIR)\etc\pango\pango.* $(INSTALL_DIR)\etc\pango /d
1328 !IF "$(GTK_INST_VERSION)" == "3.4" || "$(GTK_INST_VERSION)" == "3.6"
1329 if not exist $(INSTALL_DIR)\lib\gtk-3.0 mkdir $(INSTALL_DIR)\lib\gtk-3.0
1330 if not exist $(INSTALL_DIR)\lib\gtk-3.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-3.0\$(GTK_LIB_DIR)
1331 xcopy ".\ui\win32\settings.ini" $(INSTALL_DIR)\$(GTK_ETC_DIR) /d
1333 if not exist $(INSTALL_DIR)\lib\gtk-2.0 mkdir $(INSTALL_DIR)\lib\gtk-2.0
1334 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)
1335 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders
1336 if exist $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders /d
1338 !IFDEF GTK_ENGINES_DIR
1339 if not exist $(INSTALL_DIR)\$(GTK_ENGINES_DIR) mkdir $(INSTALL_DIR)\$(GTK_ENGINES_DIR)
1340 xcopy $(GTK_DIR)\$(GTK_ENGINES_DIR)\libpixmap.dll $(INSTALL_DIR)\$(GTK_ENGINES_DIR) /d
1341 xcopy $(GTK_DIR)\$(GTK_ENGINES_DIR)\libwimp.dll $(INSTALL_DIR)\$(GTK_ENGINES_DIR) /d
1343 !IFDEF GTK_THEMES_DIR
1344 xcopy "$(GTK_DIR)\$(GTK_THEMES_DIR)\gtkrc" $(INSTALL_DIR)\$(GTK_ETC_DIR) /d
1346 !IFDEF GTK_MODULES_DIR
1347 if not exist $(INSTALL_DIR)\$(GTK_MODULES_DIR) mkdir $(INSTALL_DIR)\$(GTK_MODULES_DIR)
1348 xcopy $(GTK_DIR)\$(GTK_MODULES_DIR)\libgail.dll $(INSTALL_DIR)\$(GTK_MODULES_DIR) /d
1350 !IFDEF NEED_CAIRO_GOBJECT_DLL
1351 xcopy $(GTK_DIR)\bin\libcairo-gobject-2.dll $(INSTALL_DIR) /d
1353 !IFDEF NEED_CAIRO_DLL
1354 xcopy $(GTK_DIR)\bin\libcairo-2.dll $(INSTALL_DIR) /d
1355 xcopy $(GTK_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL_DIR) /d
1357 !IFDEF NEED_EXPAT_DLL
1358 xcopy $(GTK_DIR)\bin\$(EXPAT_DLL) $(INSTALL_DIR) /d
1361 xcopy $(GTK_DIR)\bin\$(FFI_DLL) $(INSTALL_DIR) /d
1363 !IFDEF NEED_FONTCONFIG_DLL
1364 xcopy $(GTK_DIR)\bin\$(FONTCONFIG_DLL) $(INSTALL_DIR) /d
1366 !IFDEF NEED_FREETYPE_DLL
1367 xcopy $(GTK_DIR)\bin\libpangoft2-1.0-0.dll $(INSTALL_DIR) /d
1368 xcopy $(GTK_DIR)\bin\$(FREETYPE_DLL) $(INSTALL_DIR) /d
1370 !IFDEF NEED_HARFBUZZ_DLL
1371 xcopy $(GTK_DIR)\bin\$(HARFBUZZ_DLL) $(INSTALL_DIR) /d
1373 !IFDEF NEED_JASPER_DLL
1374 xcopy $(GTK_DIR)\bin\$(JASPER_DLL) $(INSTALL_DIR) /d
1376 !IFDEF NEED_JPEG_DLL
1377 xcopy $(GTK_DIR)\bin\$(JPEG_DLL) $(INSTALL_DIR) /d
1379 !IFDEF NEED_LZMA_DLL
1380 xcopy $(GTK_DIR)\bin\$(LZMA_DLL) $(INSTALL_DIR) /d
1382 !IFDEF NEED_PIXMAN_DLL
1383 xcopy $(GTK_DIR)\bin\$(PIXMAN_DLL) $(INSTALL_DIR) /d
1386 xcopy $(GTK_DIR)\bin\$(PNG_DLL) $(INSTALL_DIR) /d
1389 xcopy $(GTK_DIR)\bin\$(SEH_DLL) $(INSTALL_DIR) /d
1391 !IFDEF NEED_SJLJ_DLL
1392 xcopy $(GTK_DIR)\bin\$(SJLJ_DLL) $(INSTALL_DIR) /d
1394 !IFDEF NEED_TIFF_DLL
1395 xcopy $(GTK_DIR)\bin\$(TIFF_DLL) $(INSTALL_DIR) /d
1398 xcopy $(GTK_DIR)\bin\$(XML_DLL) $(INSTALL_DIR) /d
1400 !IFDEF GTK_SCHEMAS_DIR
1401 if not exist $(INSTALL_DIR)\$(GTK_SCHEMAS_DIR) mkdir $(INSTALL_DIR)\$(GTK_SCHEMAS_DIR)
1402 if not exist $(GTK_DIR)\$(GTK_SCHEMAS_DIR)\gschemas.compiled $(GTK_DIR)\bin\glib-compile-schemas $(GTK_DIR)\$(GTK_SCHEMAS_DIR)
1403 xcopy $(GTK_DIR)\$(GTK_SCHEMAS_DIR)\gschemas.compiled $(INSTALL_DIR)\$(GTK_SCHEMAS_DIR) /d
1405 xcopy $(GTK_DIR)\bin\libgio-2.0-0.dll $(INSTALL_DIR) /d
1406 xcopy $(GTK_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
1407 xcopy $(GTK_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
1408 xcopy $(GTK_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
1409 !IF "$(GTK_PKG)" != "2.24.14-1.1"
1410 xcopy $(GTK_DIR)\bin\$(INTL_DLL) $(INSTALL_DIR) /d
1412 xcopy $(GTK_DIR)\bin\gspawn-$(WIRESHARK_TARGET_PLATFORM)-helper.exe $(INSTALL_DIR) /d
1413 xcopy $(GTK_DIR)\bin\gspawn-$(WIRESHARK_TARGET_PLATFORM)-helper-console.exe $(INSTALL_DIR) /d
1415 xcopy $(ZLIB_DLL) $(INSTALL_DIR) /d
1418 xcopy $(C_ARES_DLL) $(INSTALL_DIR) /d
1421 xcopy $(ADNS_DLL) $(INSTALL_DIR) /d
1424 xcopy $(KFW_PATH)\$(COMERR_DLL) $(INSTALL_DIR) /d
1425 xcopy $(KFW_PATH)\$(KRB5_DLL) $(INSTALL_DIR) /d
1426 xcopy $(KFW_PATH)\$(K5SPRT_DLL) $(INSTALL_DIR) /d
1429 xcopy $(GNUTLS_DIR)\bin\libffi-6.dll $(INSTALL_DIR) /d
1430 xcopy $(GNUTLS_DIR)\bin\$(GCC_DLL) $(INSTALL_DIR) /d
1431 xcopy $(GNUTLS_DIR)\bin\libgcrypt-20.dll $(INSTALL_DIR) /d
1432 xcopy $(GNUTLS_DIR)\bin\libgmp-10.dll $(INSTALL_DIR) /d
1433 xcopy $(GNUTLS_DIR)\bin\libgnutls-28.dll $(INSTALL_DIR) /d
1434 xcopy $(GNUTLS_DIR)\bin\$(GPGERROR_DLL) $(INSTALL_DIR) /d
1435 xcopy $(GNUTLS_DIR)\bin\libhogweed-2-4.dll $(INSTALL_DIR) /d
1436 xcopy $(GNUTLS_DIR)\bin\libnettle-4-6.dll $(INSTALL_DIR) /d
1437 xcopy $(GNUTLS_DIR)\bin\libp11-kit-0.dll $(INSTALL_DIR) /d
1438 xcopy $(GNUTLS_DIR)\bin\libtasn1-6.dll $(INSTALL_DIR) /d
1439 ! IF "$(INTL_DLL)" != "libintl-8.dll" || "$(GTK_PKG)" == "2.24.14-1.1"
1440 # The gtk+ bundle doesn't provide libintl-8.dll (which is the case
1441 # with the 32-bit package) or libintl-8.dll doesn't include
1442 # intl_vasprintf; use the GNUTLS version.
1443 xcopy $(GNUTLS_DIR)\bin\libintl-8.dll $(INSTALL_DIR) /d
1447 xcopy "$(LUA_DIR)\lua52.dll" $(INSTALL_DIR) /d
1450 if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
1451 if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
1452 xcopy "$(SMI_DIR)\bin\libsmi-2.dll" $(INSTALL_DIR) /d
1453 xcopy "$(SMI_DIR)\share\mibs\iana\*" $(INSTALL_DIR)\snmp\mibs /d
1454 xcopy "$(SMI_DIR)\share\mibs\ietf\*" $(INSTALL_DIR)\snmp\mibs /d
1455 xcopy "$(SMI_DIR)\share\mibs\irtf\*" $(INSTALL_DIR)\snmp\mibs /d
1456 xcopy "$(SMI_DIR)\share\mibs\site\*" $(INSTALL_DIR)\snmp\mibs /d
1457 xcopy "$(SMI_DIR)\share\mibs\tubs\*" $(INSTALL_DIR)\snmp\mibs /d
1458 xcopy "$(SMI_DIR)\share\pibs\*" $(INSTALL_DIR)\snmp\mibs /d
1459 xcopy "$(SMI_DIR)\share\yang\*.yang" $(INSTALL_DIR)\snmp\mibs /d
1462 xcopy "$(GEOIP_DIR)\bin\libGeoip-1.dll" $(INSTALL_DIR) /d
1464 !IFDEF WINSPARKLE_DIR
1465 xcopy "$(WINSPARKLE_DIR)\WinSparkle.dll" $(INSTALL_DIR) /d
1468 peflags --dynamicbase=true --nxcompat=true *.dll
1469 !IF "$(GTK_INST_VERSION)" == "3.4" || "$(GTK_INST_VERSION)" == "3.6"
1471 peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/*/engines/*.dll
1472 peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/modules/*.dll
1477 $(PERL) tools/checkAPIs.pl -build \
1478 $(WIRESHARK_COMMON_SRC) \
1480 # $(EXTRA_wireshark_SOURCES)
1482 checkapi: checkapi_local
1484 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1486 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1488 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1490 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1492 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1494 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1496 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1498 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1500 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1502 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1504 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1506 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1508 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1511 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1513 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1516 _FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory