1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
6 # We "Deploy using XCopy," which is described at
7 # http://msdn.microsoft.com/en-us/library/ms235291.aspx
12 ############### no need to modify below this line #########
18 WIN_SETUP=tools\$(PLATFORM)-setup.sh
20 LDFLAGS = /NOLOGO /INCREMENTAL:no $(LOCAL_LDFLAGS)
22 CFLAGS=-WX -DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
23 $(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
25 $(C_ARES_CFLAGS) $(ADNS_CFLAGS) $(PCRE_CFLAGS) $(GNUTLS_CFLAGS) \
26 $(LUA_CFLAGS) $(SMI_CFLAGS) $(GEOIP_CFLAGS) \
27 -D_U_="" -D_NEED_VAR_IMPORT_
29 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
32 $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
34 PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c
36 WTAP_PLUGIN_SOURCES = \
41 include Makefile.common
43 wireshark_OBJECTS = $(wireshark_SOURCES:.c=.obj)
44 tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
45 rawshark_OBJECTS = $(rawshark_SOURCES:.c=.obj)
46 ###text2pcap_OBJECTS = $(text2pcap_SOURCES:.c=.obj)
47 ###mergecap_OBJECTS = $(mergecap_SOURCES:.c=.obj)
48 editcap_OBJECTS = $(editcap_SOURCES:.c=.obj)
49 capinfos_OBJECTS = $(capinfos_SOURCES:.c=.obj)
50 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
51 dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
52 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
61 wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
62 wsock32.lib user32.lib shell32.lib comctl32.lib \
64 wsutil\libwsutil.lib \
66 !IFDEF ENABLE_LIBWIRESHARK
67 epan\libwireshark.lib \
69 epan\dissectors\dissectors.lib \
71 epan\crypt\airpdcap.lib \
72 epan\dfilter\dfilter.lib \
73 epan\ftypes\ftypes.lib \
80 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
81 wsock32.lib user32.lib \
83 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 \
99 rawshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
100 wsock32.lib user32.lib \
102 wsutil\libwsutil.lib \
104 !IFDEF ENABLE_LIBWIRESHARK
105 epan\libwireshark.lib \
107 epan\dissectors\dissectors.lib \
109 epan\crypt\airpdcap.lib \
110 epan\dfilter\dfilter.lib \
111 epan\ftypes\ftypes.lib \
118 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
119 wsock32.lib user32.lib shell32.lib \
120 wsutil\libwsutil.lib \
123 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
124 wsock32.lib user32.lib shell32.lib \
125 wsutil\libwsutil.lib \
128 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
129 wsock32.lib user32.lib \
130 wsutil\libwsutil.lib \
133 text2pcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
134 wsock32.lib user32.lib \
135 wsutil\libwsutil.lib \
138 dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
139 wsock32.lib user32.lib \
140 wsutil\libwsutil.lib \
144 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
145 wsock32.lib user32.lib \
147 wsutil\libwsutil.lib \
149 !IFDEF ENABLE_LIBWIRESHARK
150 epan\libwireshark.lib \
152 epan\dissectors\dissectors.lib \
154 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
162 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
164 wsutil\libwsutil.lib \
167 EXECUTABLES=wireshark.exe tshark.exe rawshark.exe \
168 capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
170 RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
171 image\capinfos.res image\editcap.res image\mergecap.res \
172 image\text2pcap.res image\wiretap.res image\dumpcap.res \
173 image\rawshark.res image\libwsutil.res
175 LIBS_CHECK=_libs_check_
177 all: $(LIBS_CHECK) config.h tools image codecs $(C_ARES_DLL) $(ADNS_DLL) $(ZLIB_DLL) wsutil wiretap epan $(EXECUTABLES) $(RESOURCES) doc help install-all
182 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
190 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
199 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
204 # use (info-)zip from cygwin to pack things
207 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)
210 @echo Including vcredist_x86.exe -- your recipient may need to run it!
211 xcopy "$(VCREDIST_EXE)" $(INSTALL_DIR)
214 zip -r -9 wireshark.zip $(INSTALL_DIR)/
216 wireshark.bsc: *.sbr epan\*.sbr epan\dfilter\*.sbr epan\ftypes\*.sbr epan\wslua\*.sbr epan\dissectors\*.sbr gtk\*.sbr wiretap\*.sbr
221 xcopy $@ $(INSTALL_DIR)\ /d
225 wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DLL) wiretap
227 wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk image\wireshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins
230 /OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj inet_ntop.obj inet_pton.obj $(GTK_LIBS) codecs\codecs.lib gtk\libui.lib $(wireshark_OBJECTS) image\wireshark.res
232 !IF $(MSC_VER_REQUIRED) >= 1400
233 mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1
236 tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj inet_ntop.obj epan image\tshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
239 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj inet_ntop.obj image\tshark.res
241 !IF $(MSC_VER_REQUIRED) >= 1400
242 mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
245 rawshark.exe : $(LIBS_CHECK) config.h svnversion.h $(rawshark_OBJECTS) getopt.obj inet_ntop.obj epan image\rawshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins
248 /OUT:rawshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(rawshark_LIBS) $(rawshark_OBJECTS) getopt.obj inet_ntop.obj image\rawshark.res
250 !IF $(MSC_VER_REQUIRED) >= 1400
251 mt.exe -nologo -manifest "rawshark.exe.manifest" -outputresource:rawshark.exe;1
254 # XXX: This makefile does not properly handle doing a 'nmake ... capinfos.exe' directly since some of the .objs
255 # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all').
256 capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
259 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(capinfos_OBJECTS) getopt.obj $(capinfos_LIBS) image\capinfos.res
261 !IF $(MSC_VER_REQUIRED) >= 1400
262 mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
265 # XXX: This makefile does not properly handle doing a 'nmake ... editcap.exe' directly since some of the .objs
266 # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all').
267 editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) getopt.obj strptime.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
270 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(editcap_OBJECTS) getopt.obj strptime.obj $(editcap_LIBS) image\editcap.res
272 !IF $(MSC_VER_REQUIRED) >= 1400
273 mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
276 mergecap.exe : $(LIBS_CHECK) config.h svnversion.h mergecap.obj merge.obj getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
279 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
281 !IF $(MSC_VER_REQUIRED) >= 1400
282 mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
285 text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib strptime.obj image\text2pcap.res
288 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj $(text2pcap_LIBS) strptime.obj image\text2pcap.res
290 !IF $(MSC_VER_REQUIRED) >= 1400
291 mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
294 dftest.exe : $(dftest_OBJECTS) epan
297 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
299 !IF $(MSC_VER_REQUIRED) >= 1400
300 mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
303 randpkt.exe : $(randpkt_OBJECTS) getopt.obj
306 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) getopt.obj
308 !IF $(MSC_VER_REQUIRED) >= 1400
309 mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
312 dumpcap.exe : $(LIBS_CHECK) config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res
315 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj image\dumpcap.res
317 !IF $(MSC_VER_REQUIRED) >= 1400
318 mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
322 config.h : config.h.win32 config.nmake
323 sed -e s/@VERSION@/$(VERSION)/ \
324 -e "s/@HAVE_C_ARES@/$(C_ARES_CONFIG)/" \
325 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
326 -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
327 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
328 -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
329 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
330 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
331 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
332 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
333 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
334 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
335 -e "s/@HAVE_REMOTE@/$(PCAP_HAVE_REMOTE_CONFIG)/" \
336 -e "s/@HAVE_PCAP_REMOTE@/$(PCAP_REMOTE_CONFIG)/" \
337 -e "s/@HAVE_PCAP_OPEN@/$(PCAP_OPEN_CONFIG)/" \
338 -e "s/@HAVE_PCAP_LIST_DATALINKS@/$(PCAP_LIST_DATALINKS_CONFIG)/" \
339 -e "s/@HAVE_PCAP_SET_DATALINK@/$(PCAP_SET_DATALINK_CONFIG)/" \
340 -e "s/@HAVE_PCAP_FINDALLDEVS_EX@/$(PCAP_FINDALLDEVS_EX_CONFIG)/" \
341 -e "s/@HAVE_PCAP_CREATESRCSTR@/$(PCAP_CREATESRCSTR_CONFIG)/" \
342 -e "s/@HAVE_PCAP_SETSAMPLING@/$(PCAP_SETSAMPLING_CONFIG)/" \
343 -e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
344 -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
345 -e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
346 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
347 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
348 -e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
349 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
350 -e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
351 -e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
352 -e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
353 -e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
354 -e "s/@HAVE_GEOIP@/$(GEOIP_CONFIG)/" \
355 -e "s/@INET6@/$(INET6_CONFIG)/" \
356 < config.h.win32 > $@
358 ps.c : rdps.exe print.ps
363 # Build the version string
365 !IF EXIST(".svn/entries")
366 SVNENTRIES = .svn/entries
370 svnversion.h: $(SVNENTRIES)
372 $(PERL) make-version.pl
375 # Build the short version of the authors file for the about dialog
377 AUTHORS-SHORT: AUTHORS make-authors-short.pl
378 $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
381 # Build the short version of the authors file with formatting codes for
384 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
385 $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
388 # Build "tshark-tap-register.c", which contains a function
389 # "register_all_tap_listeners()"
390 # that calls the register routines for all TShark tap listeners.
392 # We do this by grepping through sources.
394 # Formatting conventions: The name of the tap_listener_register_*
395 # routines must start in column zero, or must be preceded only by
396 # "void " starting in column zero, and must not be inside #if.
398 # The first argument is the name of the file to write.
399 # The second argument is the directory in which the source files live.
400 # All subsequent arguments are the files to scan.
402 tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
403 @echo Making tshark-tap-register.c
404 @$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
406 text2pcap-scanner.c : text2pcap-scanner.l
407 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
409 clean-local: clean-deps
410 rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(dumpcap_OBJECTS) $(rawshark_OBJECTS) \
411 $(EXTRA_OBJECTS) $(EXECUTABLES) *.pdb *.exe.manifest \
412 capinfos.obj editcap.obj mergecap.obj text2pcap.obj \
413 nio-ie5.obj update.obj \
414 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
415 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
416 AUTHORS-SHORT-FORMAT $(LIBS_CHECK) \
417 dftest.obj dftest.exe randpkt.obj randpkt.ext \
419 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll \
425 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
427 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
429 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
431 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
433 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
435 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
437 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
439 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
441 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
443 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
445 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
447 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
449 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
450 cd ../../portableapps/win32
451 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
454 # "distclean" removes all files not part of the distribution.
455 # It does not remove generated files that are part of the distribution.
456 distclean-local: clean-local
458 !IF "$(MSVC_VARIANT)" != "MSVC6"
459 rm -f $(ADNS_DLL) $(ADNS_LIBS)
463 rm -f $(ZLIB_DLL) $(ZLIB_DIR)\zlib1.dll.manifest \
464 $(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
465 $(ZLIB_DIR)\lib\zdll.lib
467 rm -f config.h $(BUILT_SOURCES)
469 distclean: distclean-local
471 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
473 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
475 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
477 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
479 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
481 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
483 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
485 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
487 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
489 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
491 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
493 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
494 cd ../../portableapps/win32
495 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
498 # Make "maintainer-clean" only if you would like to remove ALL generated
500 # Be sure to have python and perl installed to regenerate them.
501 maintainer-clean-local: distclean-local
502 rm -f $(GENERATED_FILES)
504 maintainer-clean: maintainer-clean-local
506 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
508 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
510 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
512 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
514 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
516 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
518 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
520 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
522 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
524 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
526 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
528 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
529 cd ../../portableapps/win32
530 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
535 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
540 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
544 # Non-MSVC6 variants have to avoid indirectly using msvcrt.dll,
545 # therefore compile the adns dll from source ADNS_DIR package.
546 # To avoid path problems, copy the adns sources to a temp dir,
547 # compile and copy the resulting files back to (source) ADNS_DIR
550 # - we need to "patch" adns_dll.rep and adns_dll.rc (at least for MSVC2005EE)
551 # - on MSVC6 we can't easily rebuild, because iphlpapi.h is needed
554 !IF "$(MSVC_VARIANT)" == "MSVC6"
555 if not exist $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns mkdir $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns
556 copy $(ADNS_DIR)\adns_win32\lib\adns_dll.dll $(ADNS_DLL)
557 copy $(ADNS_DIR)\adns_win32\lib\adns_dll.lib $(ADNS_LIBS)
559 xcopy $(ADNS_DIR) adns.tmp /D /I /E /Y
560 copy adns_dll.dep adns.tmp\adns_win32\adns_dll
561 copy adns_dll.rc adns.tmp\adns_win32\adns_dll
562 cd adns.tmp\adns_win32\adns_dll
563 set CFG=adns_dll - Win32 Release
564 $(MAKE) /$(MAKEFLAGS) -f adns_dll.mak LOC="$(LOCAL_CFLAGS)"
566 !IF $(MSC_VER_REQUIRED) >= 1400
567 mt.exe -nologo -manifest "adns_dll.dll.manifest" -outputresource:adns_dll.dll;2
569 if not exist $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns mkdir $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns
570 copy adns_dll.dll $(ADNS_DLL)
571 copy adns_dll.lib $(ADNS_LIBS)
578 # Non-MSVC6 variants have to avoid indirectly using msvcrt.dll,
579 # therefore compile the zlib dll from source ZLIB_DIR package.
580 # To avoid path problems, copy the zlib sources to a temp dir,
581 # compile and copy the resulting files back to (source) ZLIB_DIR
583 xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
585 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="$(LOCAL_CFLAGS)"
586 if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
587 if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
588 if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
589 !IF $(MSC_VER_REQUIRED) >= 1400
590 mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
592 copy zlib1.dll $(ZLIB_DIR)
593 copy zdll.lib $(ZLIB_DIR)\lib
594 copy zconf.h $(ZLIB_DIR)\include
595 copy zlib.h $(ZLIB_DIR)\include
602 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
607 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
612 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
615 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
617 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libui.lib
620 epan:: $(RESOURCES) $(ZLIB_DLL) wiretap\wiretap-$(WTAP_VERSION).lib $(BUILT_SOURCES) doxygen
622 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
627 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
632 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
637 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
640 doxygen.cfg: config.nmake doxygen.cfg.in
641 sed -e s/@VERSION@/$(VERSION)/ \
642 < doxygen.cfg.in > $@
646 $(DOXYGEN) doxygen.cfg
649 doxygen: doxygen.cfg doxygen-run
652 ################################################################################
653 # Prepare build environment by downloading and installing required libraries
654 ################################################################################
656 # The required tools to build Wireshark.
658 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
659 # We only need the cygwin version (for some shell scripts).
660 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
665 !IF $(MSC_VER_REQUIRED) >= 1400
681 @$(SH) $(WIN_SETUP) --appverify $(REQUIRED_TOOLS)
683 # Targets and etc used to verify or download libraries
685 !IFNDEF WIN_SETUP_OPT
686 WIN_SETUP_OPT=--download
689 # Verify that the required library 'package' (zip) files have been downloaded.
690 # (It seems reasonable to assume that if the files have been downloaded
691 # then they have been installed).
693 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN_SETUP_OPT=--libverify process_libs
695 # Verify library packages only if Makefile.nmake has been updated
696 # (or dummy file doesn't exist because of 'make clean' or whatever)
697 # (To disable library verification when Makefile.nmake changes,
698 # comment out the commands for the following target).
699 # touch is only called if libverify succeeds.
700 # (One microsec is added to the makefile.nmake time since the time set by [cygwin ?] 'touch --reference'
701 # apparently has the nanosecs truncated from the reference file time [at least on Windows Vista]).
702 $(LIBS_CHECK): Makefile.nmake
703 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN_SETUP_OPT=--libverify process_libs
704 @touch --reference=Makefile.nmake -d "+0.000001 sec" $@
706 # Download (if needed) and install all the required libraries into WIRESHARK_LIBS.
707 # A clean_setup is done first to ensure that the target dirs don't
708 # contain old files remaining from a previous setup run.
709 setup: verify_tools clean_setup process_libs
712 # The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
713 # (The choice is determined by the value of the macro WIN_SETUP_OPT).
715 !IF "$(WIN_SETUP_OPT)" == "--libverify"
716 @$(SH) $(WIN_SETUP) --checktag "$(WIRESHARK_LIBS)"
718 if not exist $(WIRESHARK_LIBS) md $(WIRESHARK_LIBS)
719 !IF "$(GTK_INST_VERSION)" == "2.14" || "$(GTK_INST_VERSION)" == "2.12"
720 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
721 glib gtk$(GTK_INST_VERSION)/glib_$(GLIB_PKG)_$(PLATFORM).zip
722 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
723 glib gtk$(GTK_INST_VERSION)/glib-dev_$(GLIB_PKG)_$(PLATFORM).zip
725 !ERROR ? Unknown or invalid GTK_INST_VERSION
728 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
729 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
731 !IF "$(PLATFORM)" == "win32"
732 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
733 gettext-runtime-0.17-1 gettext-runtime-0.17-1.zip
735 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
736 gettext-0.17-1 gettext$(GETTEXT_PKG).zip
739 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
743 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
744 . WpdPack_$(PCAP_VERSION).zip
747 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
748 AirPcap_Devpack_1_0_0_594 AirPcap_Devpack_1_0_0_594.zip
751 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
755 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
756 . adns-1.0-win32-05ws.zip
759 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
760 pcre-7.0 pcre-7.0-bin.zip
761 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
762 pcre-7.0 pcre-7.0-lib.zip
765 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
766 zlib123 zlib123ws.zip
769 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
770 lua5.1.4 lua$(LUA_DIST)_lib.zip
774 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
778 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
779 . portaudio_v19_2.zip
782 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
786 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
791 !IF "$(GTK_INST_VERSION)" == "2.14" || "$(GTK_INST_VERSION)" == "2.12"
792 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
793 gtk2 gtk$(GTK_INST_VERSION)/gtk+_$(GTK_PKG)_$(PLATFORM).zip
794 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
795 gtk2 gtk$(GTK_INST_VERSION)/gtk+-dev_$(GTK_PKG)_$(PLATFORM).zip
796 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
797 gtk2 gtk$(GTK_INST_VERSION)/cairo_$(CAIRO_PKG)_$(PLATFORM).zip
798 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
799 gtk2 gtk$(GTK_INST_VERSION)/cairo-dev_$(CAIRO_PKG)_$(PLATFORM).zip
800 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
801 gtk2 gtk$(GTK_INST_VERSION)/atk_$(ATK_PKG)_$(PLATFORM).zip
802 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
803 gtk2 gtk$(GTK_INST_VERSION)/atk-dev_$(ATK_PKG)_$(PLATFORM).zip
804 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
805 gtk2 gtk$(GTK_INST_VERSION)/libpng_$(LIBPNG_PKG)_$(PLATFORM).zip
806 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
807 gtk2 gtk$(GTK_INST_VERSION)/$(TIFF_PKG).zip
808 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
809 gtk2 gtk$(GTK_INST_VERSION)/$(JPEG_PKG).zip
811 !ERROR ? Unknown or invalid GTK_INST_VERSION
813 !IF "$(PANGO_INST_VERSION)" == "1.22"
814 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
815 gtk2 gtk$(GTK_INST_VERSION)/pango_$(PANGO_PKG)_$(PLATFORM).zip
816 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
817 gtk2 gtk$(GTK_INST_VERSION)/pango-dev_$(PANGO_PKG)_$(PLATFORM).zip
819 !ERROR ? Unknown or invalid PANGO_INST_VERSION
823 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
824 user-guide user-guide-24665.zip
827 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
831 @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
832 . nasm-2.02-win32.zip
834 !IF "$(WIN_SETUP_OPT)" == "--download"
835 @$(SH) $(WIN_SETUP) --settag "$(WIRESHARK_LIBS)"
838 @echo Wireshark is ready to build.
840 # Cleanup files installed by the setup target. It will not remove the
841 # downloaded zip files.
842 # WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
843 # UPDATING REMOVES THE FORMER USER DIRS
845 rm -r -f $(WIRESHARK_LIBS)/adns-1.0-win32-05ws
846 rm -r -f $(WIRESHARK_LIBS)/c-ares-1.5.3ws
847 rm -r -f $(WIRESHARK_LIBS)/c-ares-1.6.0ws
848 rm -r -f $(WIRESHARK_LIBS)/gettext-0.14.5
849 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.17
850 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.17-1
851 rm -r -f $(WIRESHARK_LIBS)/gettext-0.17-1 # win64
852 rm -r -f $(WIRESHARK_LIBS)/glib
853 rm -r -f $(WIRESHARK_LIBS)/gnutls-2.6.3-1
854 rm -r -f $(WIRESHARK_LIBS)/gnutls-2.6.4-1
855 rm -r -f $(WIRESHARK_LIBS)/gtk2
856 rm -r -f $(WIRESHARK_LIBS)/gtk+
857 rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
858 rm -r -f $(WIRESHARK_LIBS)/kfw-2.5
859 rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
860 rm -r -f $(WIRESHARK_LIBS)/lua5.1
861 rm -r -f $(WIRESHARK_LIBS)/lua5.1.4
862 rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.5
863 rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.8
864 rm -r -f $(WIRESHARK_LIBS)/nasm-2.00
865 rm -r -f $(WIRESHARK_LIBS)/nasm-2.02
866 rm -r -f $(WIRESHARK_LIBS)/pcre-6.4
867 rm -r -f $(WIRESHARK_LIBS)/pcre-7.0
868 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19
869 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19_2
870 rm -r -f $(WIRESHARK_LIBS)/user-guide
871 rm -r -f $(WIRESHARK_LIBS)/WpdPack
872 rm -r -f $(WIRESHARK_LIBS)/AirPcap_Devpack_1_0_0_594
873 rm -r -f $(WIRESHARK_LIBS)/zlib123
874 rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
875 rm -r -f $(WIRESHARK_LIBS)/upx301w
876 rm -r -f $(WIRESHARK_LIBS)/GeoIP-1.4.5ws
878 ################################################################################
879 # Prepare the debug trees for running Wireshark/Tshark from there.
880 ################################################################################
883 # prepare debugging of Wireshark in INSTALL_DIR
884 debug-wireshark: wireshark.exe install-generated-files
886 # prepare debugging of tshark in INSTALL_DIR
887 debug-tshark: tshark.exe install-generated-files
889 # prepare debugging of rawshark in INSTALL_DIR
890 debug-rawshark: rawshark.exe install-generated-files
892 # prepare debugging of dumpcap in INSTALL_DIR
893 debug-dumpcap: dumpcap.exe install-generated-files
896 # install generated files (exe, "our" libs, ...)
897 install-generated-files:
899 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
900 !IF "$(MSVC_VARIANT)" == "MSVC2008"
901 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)\*.*
903 !IFDEF ENABLE_LIBWIRESHARK
904 xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
906 xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
907 if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
908 xcopy ".\epan\libwireshark.dll" $(INSTALL_DIR) /d
909 xcopy ".\wsutil\libwsutil.dll" $(INSTALL_DIR) /d
910 if exist ".\epan\libwireshark.pdb" xcopy ".\epan\libwireshark.pdb" $(INSTALL_DIR) /d
911 if exist wireshark.exe copy wireshark.exe $(INSTALL_DIR)\wireshark.exe
912 if exist wireshark.pdb copy wireshark.pdb $(INSTALL_DIR)\wireshark.pdb
913 if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL_DIR) /d
914 if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
915 if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
916 if exist rawshark.exe xcopy rawshark.exe $(INSTALL_DIR) /d
917 if exist rawshark.pdb xcopy rawshark.pdb $(INSTALL_DIR) /d
918 if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
919 if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
920 if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
921 if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
922 if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
923 if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
924 if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
925 if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
926 if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
927 if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
928 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
929 xcopy ".\manuf" $(INSTALL_DIR) /d
930 xcopy ".\services" $(INSTALL_DIR) /d
931 xcopy ".\README" $(INSTALL_DIR) /d
932 xcopy ".\README.win32" $(INSTALL_DIR) /d
933 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
934 xcopy ".\COPYING" $(INSTALL_DIR) /d
935 copy ".\NEWS" $(INSTALL_DIR)\NEWS.txt
936 xcopy ".\cfilters" $(INSTALL_DIR) /d
937 xcopy ".\colorfilters" $(INSTALL_DIR) /d
938 xcopy ".\dfilters" $(INSTALL_DIR) /d
939 xcopy ".\smi_modules" $(INSTALL_DIR) /d
941 xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
942 xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
944 xcopy ipmap.html $(INSTALL_DIR) /d
945 xcopy doc\*.html $(INSTALL_DIR) /d
946 if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
947 xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
948 # you can't reliably use xcopy to rename files "on the fly" (so copy first, then rename)
949 xcopy ".\help\faq.txt" $(INSTALL_DIR) /d
950 if exist $(INSTALL_DIR)\FAQ del $(INSTALL_DIR)\FAQ
951 ren $(INSTALL_DIR)\faq.txt FAQ
952 if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
953 xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
954 if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
955 echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
956 if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
957 xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
958 if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
959 xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
960 xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
961 if not exist $(INSTALL_DIR)\tpncp mkdir $(INSTALL_DIR)\tpncp
962 xcopy ".\tpncp\*.dat" $(INSTALL_DIR)\tpncp /d
963 if not exist $(INSTALL_DIR)\wimaxasncp mkdir $(INSTALL_DIR)\wimaxasncp
964 xcopy ".\wimaxasncp\*.*" $(INSTALL_DIR)\wimaxasncp /d
965 if not exist $(INSTALL_DIR)\plugins mkdir $(INSTALL_DIR)\plugins
966 if not exist $(INSTALL_DIR)\plugins\$(VERSION) mkdir $(INSTALL_DIR)\plugins\$(VERSION)
968 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-plugins
971 # "install-all" will copy all files needed to run Wireshark/Tshark
972 # to the INSTALL_DIR, so you can run/debug Wireshark/Tshark from there.
973 install-all: install-generated-files
975 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
976 xcopy $(GTK_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL_DIR) /d
977 xcopy $(GTK_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL_DIR) /d
978 xcopy $(GTK_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL_DIR) /d
979 xcopy $(GTK_DIR)\bin\libatk-1.0-0.dll $(INSTALL_DIR) /d
980 xcopy $(GTK_DIR)\bin\libpango-1.0-0.dll $(INSTALL_DIR) /d
981 xcopy $(GTK_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL_DIR) /d
982 if not exist $(INSTALL_DIR)\etc mkdir $(INSTALL_DIR)\etc
983 if not exist $(INSTALL_DIR)\etc\gtk-2.0 mkdir $(INSTALL_DIR)\etc\gtk-2.0
984 if not exist $(INSTALL_DIR)\etc\pango mkdir $(INSTALL_DIR)\etc\pango
985 if not exist $(INSTALL_DIR)\lib mkdir $(INSTALL_DIR)\lib
986 if not exist $(INSTALL_DIR)\lib\gtk-2.0 mkdir $(INSTALL_DIR)\lib\gtk-2.0
987 if not exist $(INSTALL_DIR)\lib\gtk-2.0\modules mkdir $(INSTALL_DIR)\lib\gtk-2.0\modules
988 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)
989 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders
990 # if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules
991 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines
992 # if not exist $(INSTALL_DIR)\lib\pango mkdir $(INSTALL_DIR)\lib\pango
993 # if not exist $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR) mkdir $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)
994 # if not exist $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules mkdir $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules
995 xcopy $(GTK_DIR)\etc\gtk-2.0\*.* $(INSTALL_DIR)\etc\gtk-2.0 /d
996 xcopy $(GTK_DIR)\etc\pango\pango.* $(INSTALL_DIR)\etc\pango /d
997 xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders /d
998 xcopy $(GTK_DIR)\lib\gtk-2.0\modules\libgail.dll $(INSTALL_DIR)\lib\gtk-2.0\modules /d
999 xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines\libpixmap.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines /d
1000 # xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules\im-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules /d
1001 # xcopy $(GTK_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules /d
1002 !IFDEF NEED_LIBPNG_DLL
1003 # xcopy $(GTK_DIR)\bin\libpng13.dll $(INSTALL_DIR) /d
1004 xcopy $(GTK_DIR)\bin\libpng12-0.dll $(INSTALL_DIR) /d
1006 !IFDEF NEED_LIBTIFF_DLL
1007 xcopy $(GTK_DIR)\bin\libtiff3.dll $(INSTALL_DIR) /d
1009 !IFDEF NEED_LIBJPEG_DLL
1010 xcopy $(GTK_DIR)\bin\jpeg62.dll $(INSTALL_DIR) /d
1012 !IFDEF NEED_CAIRO_DLL
1013 xcopy $(GTK_DIR)\bin\libcairo-2.dll $(INSTALL_DIR) /d
1014 xcopy $(GTK_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL_DIR) /d
1016 if not exist $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR)
1017 xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
1018 if not exist $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR)
1019 xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) /d
1020 xcopy $(GLIB_DIR)\bin\libgio-2.0-0.dll $(INSTALL_DIR) /d
1021 xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
1022 xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
1023 xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
1025 xcopy $(ICONV_DIR)\bin\iconv.dll $(INSTALL_DIR) /d
1027 xcopy $(GETTEXT_DIR)\bin\intl.dll $(INSTALL_DIR) /d
1029 xcopy $(ZLIB_DLL) $(INSTALL_DIR) /d
1032 xcopy $(C_ARES_DLL) $(INSTALL_DIR) /d
1035 xcopy $(ADNS_DLL) $(INSTALL_DIR) /d
1038 xcopy $(PCRE_DIR)\bin\pcre3.dll $(INSTALL_DIR) /d
1039 xcopy $(PCRE_DIR)\man\cat3\pcrepattern.3.txt $(INSTALL_DIR) /d
1042 xcopy $(KFW_DIR)\bin\comerr32.dll $(INSTALL_DIR) /d
1043 xcopy $(KFW_DIR)\bin\krb5_32.dll $(INSTALL_DIR) /d
1046 xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
1047 xcopy $(GNUTLS_DIR)\bin\libgnutls-26.dll $(INSTALL_DIR) /d
1048 xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-26.dll $(INSTALL_DIR) /d
1049 xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-26.dll $(INSTALL_DIR) /d
1050 xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
1051 xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
1054 xcopy "$(LUA_DIR)\lua5.1.dll" $(INSTALL_DIR) /d
1057 if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
1058 if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
1059 xcopy "$(SMI_DIR)\lib\smi.dll" $(INSTALL_DIR) /d
1060 xcopy "$(SMI_DIR)\mibs\*" $(INSTALL_DIR)\snmp\mibs /d
1064 rm -rf $(INSTALL_DIR)
1066 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
1070 $(PERL) tools/checkAPIs.pl \
1071 # $(wireshark_SOURCES) \
1073 # $(EXTRA_wireshark_SOURCES)
1075 checkapi: checkapi_local
1077 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1079 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1081 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1083 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1085 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1087 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1089 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1091 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1093 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1096 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1098 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi