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 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
20 CFLAGS=-WX -DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
21 $(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
23 $(C_ARES_CFLAGS) $(ADNS_CFLAGS) $(PCRE_CFLAGS) $(GNUTLS_CFLAGS) \
24 $(LUA_CFLAGS) $(SMI_CFLAGS) \
25 -D_U_="" -D_NEED_VAR_IMPORT_
27 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
30 $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
32 PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c
34 WTAP_PLUGIN_SOURCES = \
39 include Makefile.common
41 wireshark_OBJECTS = $(wireshark_SOURCES:.c=.obj)
42 tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
43 rawshark_OBJECTS = $(rawshark_SOURCES:.c=.obj)
44 ###text2pcap_OBJECTS = $(text2pcap_SOURCES:.c=.obj)
45 ###mergecap_OBJECTS = $(mergecap_SOURCES:.c=.obj)
46 editcap_OBJECTS = $(editcap_SOURCES:.c=.obj)
47 capinfos_OBJECTS = $(capinfos_SOURCES:.c=.obj)
48 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
49 dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
50 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
59 wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
60 wsock32.lib user32.lib shell32.lib comctl32.lib \
62 wsutil\libwsutil.lib \
63 !IFDEF ENABLE_LIBWIRESHARK
64 epan\libwireshark.lib \
66 epan\dissectors\dissectors.lib \
68 epan\crypt\airpdcap.lib \
69 epan\dfilter\dfilter.lib \
70 epan\ftypes\ftypes.lib \
78 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
79 wsock32.lib user32.lib \
81 wsutil\libwsutil.lib \
82 !IFDEF ENABLE_LIBWIRESHARK
83 epan\libwireshark.lib \
85 epan\dissectors\dissectors.lib \
87 epan\crypt\airpdcap.lib \
88 epan\dfilter\dfilter.lib \
89 epan\ftypes\ftypes.lib \
97 rawshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
98 wsock32.lib user32.lib \
100 wsutil\libwsutil.lib \
101 !IFDEF ENABLE_LIBWIRESHARK
102 epan\libwireshark.lib \
104 epan\dissectors\dissectors.lib \
106 epan\crypt\airpdcap.lib \
107 epan\dfilter\dfilter.lib \
108 epan\ftypes\ftypes.lib \
116 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
117 wsock32.lib user32.lib shell32.lib \
118 wsutil\libwsutil.lib \
121 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
122 wsock32.lib user32.lib shell32.lib \
123 wsutil\libwsutil.lib \
126 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
127 wsock32.lib user32.lib \
128 wsutil\libwsutil.lib \
131 text2pcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
132 wsock32.lib user32.lib \
133 wsutil\libwsutil.lib \
136 dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
137 wsock32.lib user32.lib \
138 wsutil\libwsutil.lib \
141 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
142 wsock32.lib user32.lib \
144 wsutil\libwsutil.lib \
145 !IFDEF ENABLE_LIBWIRESHARK
146 epan\libwireshark.lib \
148 epan\dissectors\dissectors.lib \
150 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
159 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
161 wsutil\libwsutil.lib \
164 EXECUTABLES=wireshark.exe tshark.exe rawshark.exe \
165 capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
167 RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
168 image\capinfos.res image\editcap.res image\mergecap.res \
169 image\text2pcap.res image\wiretap.res image\dumpcap.res \
170 image\rawshark.res image\libwsutil.res
172 LIBS_CHECK=_libs_check_
174 all: $(LIBS_CHECK) config.h tools image codecs $(C_ARES_DLL) $(ADNS_DLL) $(ZLIB_DLL) wsutil wiretap epan $(EXECUTABLES) $(RESOURCES) doc install-all
179 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
187 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
196 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
201 # use (info-)zip from cygwin to pack things
204 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)
207 @echo Including vcredist_x86.exe -- your recipient may need to run it!
208 xcopy "$(VCREDIST_EXE)" $(INSTALL_DIR)
211 zip -r -9 wireshark.zip $(INSTALL_DIR)/
213 wireshark.bsc: *.sbr epan\*.sbr epan\dfilter\*.sbr epan\ftypes\*.sbr epan\wslua\*.sbr epan\dissectors\*.sbr gtk\*.sbr wiretap\*.sbr
218 xcopy $@ wireshark-gtk2\ /d
222 wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DLL) wiretap
224 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
227 /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
229 !IF $(MSC_VER_REQUIRED) >= 1400
230 mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1
233 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
236 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj inet_ntop.obj image\tshark.res
238 !IF $(MSC_VER_REQUIRED) >= 1400
239 mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
242 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
245 /OUT:rawshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(rawshark_LIBS) $(rawshark_OBJECTS) getopt.obj inet_ntop.obj image\rawshark.res
247 !IF $(MSC_VER_REQUIRED) >= 1400
248 mt.exe -nologo -manifest "rawshark.exe.manifest" -outputresource:rawshark.exe;1
251 # XXX: This makefile does not properly handle doing a 'nmake ... capinfos.exe' directly since some of the .objs
252 # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all').
253 capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
256 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(capinfos_OBJECTS) getopt.obj $(capinfos_LIBS) image\capinfos.res
258 !IF $(MSC_VER_REQUIRED) >= 1400
259 mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
262 # XXX: This makefile does not properly handle doing a 'nmake ... editcap.exe' directly since some of the .objs
263 # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all').
264 editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) getopt.obj strptime.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
267 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(editcap_OBJECTS) getopt.obj strptime.obj $(editcap_LIBS) image\editcap.res
269 !IF $(MSC_VER_REQUIRED) >= 1400
270 mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
273 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
276 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
278 !IF $(MSC_VER_REQUIRED) >= 1400
279 mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
282 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
285 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj $(text2pcap_LIBS) strptime.obj image\text2pcap.res
287 !IF $(MSC_VER_REQUIRED) >= 1400
288 mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
291 dftest.exe : $(dftest_OBJECTS) epan
294 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
296 !IF $(MSC_VER_REQUIRED) >= 1400
297 mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
300 randpkt.exe : $(randpkt_OBJECTS) getopt.obj
303 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) getopt.obj
305 !IF $(MSC_VER_REQUIRED) >= 1400
306 mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
309 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
312 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj image\dumpcap.res
314 !IF $(MSC_VER_REQUIRED) >= 1400
315 mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
319 config.h : config.h.win32 config.nmake
320 sed -e s/@VERSION@/$(VERSION)/ \
321 -e "s/@HAVE_C_ARES@/$(C_ARES_CONFIG)/" \
322 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
323 -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
324 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
325 -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
326 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
327 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
328 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
329 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
330 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
331 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
332 -e "s/@HAVE_REMOTE@/$(PCAP_HAVE_REMOTE_CONFIG)/" \
333 -e "s/@HAVE_PCAP_REMOTE@/$(PCAP_REMOTE_CONFIG)/" \
334 -e "s/@HAVE_PCAP_OPEN@/$(PCAP_OPEN_CONFIG)/" \
335 -e "s/@HAVE_PCAP_LIST_DATALINKS@/$(PCAP_LIST_DATALINKS_CONFIG)/" \
336 -e "s/@HAVE_PCAP_SET_DATALINK@/$(PCAP_SET_DATALINK_CONFIG)/" \
337 -e "s/@HAVE_PCAP_FINDALLDEVS_EX@/$(PCAP_FINDALLDEVS_EX_CONFIG)/" \
338 -e "s/@HAVE_PCAP_CREATESRCSTR@/$(PCAP_CREATESRCSTR_CONFIG)/" \
339 -e "s/@HAVE_PCAP_SETSAMPLING@/$(PCAP_SETSAMPLING_CONFIG)/" \
340 -e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
341 -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
342 -e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
343 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
344 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
345 -e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
346 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
347 -e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
348 -e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
349 -e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
350 -e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
351 -e "s/@INET6@/$(INET6_CONFIG)/" \
352 < config.h.win32 > $@
354 ps.c : rdps.exe print.ps
359 # Build the version string
361 !IF EXIST(".svn/entries")
362 SVNENTRIES = .svn/entries
366 svnversion.h: $(SVNENTRIES)
368 $(PERL) make-version.pl
371 # Build the short version of the authors file for the about dialog
373 AUTHORS-SHORT: AUTHORS make-authors-short.pl
374 $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
377 # Build the short version of the authors file with formatting codes for
380 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
381 $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
384 # Build "tshark-tap-register.c", which contains a function
385 # "register_all_tap_listeners()"
386 # that calls the register routines for all TShark tap listeners.
388 # We do this by grepping through sources.
390 # Formatting conventions: The name of the tap_listener_register_*
391 # routines must start in column zero, or must be preceded only by
392 # "void " starting in column zero, and must not be inside #if.
394 # The first argument is the name of the file to write.
395 # The second argument is the directory in which the source files live.
396 # All subsequent arguments are the files to scan.
398 tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
399 @echo Making tshark-tap-register.c
400 @$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
402 text2pcap-scanner.c : text2pcap-scanner.l
403 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
405 clean-local: clean-deps
406 rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(dumpcap_OBJECTS) $(rawshark_OBJECTS) \
407 $(EXTRA_OBJECTS) $(EXECUTABLES) *.pdb *.exe.manifest \
408 capinfos.obj editcap.obj mergecap.obj text2pcap.obj \
409 nio-ie5.obj update.obj \
410 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
411 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
412 AUTHORS-SHORT-FORMAT $(LIBS_CHECK) \
413 dftest.obj dftest.exe randpkt.obj randpkt.ext \
415 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll \
421 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
423 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
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
446 cd ../../portableapps/win32
447 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
450 # "distclean" removes all files not part of the distribution.
451 # It does not remove generated files that are part of the distribution.
452 distclean-local: clean-local
454 !IF "$(MSVC_VARIANT)" != "MSVC6"
455 rm -f $(ADNS_DLL) $(ADNS_LIBS)
459 rm -f $(ZLIB_DLL) $(ZLIB_DIR)\zlib1.dll.manifest \
460 $(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
461 $(ZLIB_DIR)\lib\zdll.lib
463 rm -f config.h $(BUILT_SOURCES)
465 distclean: distclean-local
467 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
469 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
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
490 cd ../../portableapps/win32
491 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
494 # Make "maintainer-clean" only if you would like to remove ALL generated
496 # Be sure to have python and perl installed to regenerate them.
497 maintainer-clean-local: distclean-local
498 rm -f $(GENERATED_FILES)
500 maintainer-clean: maintainer-clean-local
502 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
504 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
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
525 cd ../../portableapps/win32
526 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
531 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
536 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
540 # Non-MSVC6 variants have to avoid indirectly using msvcrt.dll,
541 # therefore compile the adns dll from source ADNS_DIR package.
542 # To avoid path problems, copy the adns sources to a temp dir,
543 # compile and copy the resulting files back to (source) ADNS_DIR
546 # - we need to "patch" adns_dll.rep and adns_dll.rc (at least for MSVC2005EE)
547 # - on MSVC6 we can't easily rebuild, because iphlpapi.h is needed
550 !IF "$(MSVC_VARIANT)" == "MSVC6"
551 if not exist $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns mkdir $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns
552 copy $(ADNS_DIR)\adns_win32\lib\adns_dll.dll $(ADNS_DLL)
553 copy $(ADNS_DIR)\adns_win32\lib\adns_dll.lib $(ADNS_LIBS)
555 xcopy $(ADNS_DIR) adns.tmp /D /I /E /Y
556 copy adns_dll.dep adns.tmp\adns_win32\adns_dll
557 copy adns_dll.rc adns.tmp\adns_win32\adns_dll
558 cd adns.tmp\adns_win32\adns_dll
559 set CFG=adns_dll - Win32 Release
560 $(MAKE) /$(MAKEFLAGS) -f adns_dll.mak LOC="$(LOCAL_CFLAGS)"
562 !IF $(MSC_VER_REQUIRED) >= 1400
563 mt.exe -nologo -manifest "adns_dll.dll.manifest" -outputresource:adns_dll.dll;2
565 if not exist $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns mkdir $(WIRESHARK_LIBS)\$(MSVC_VARIANT)\adns
566 copy adns_dll.dll $(ADNS_DLL)
567 copy adns_dll.lib $(ADNS_LIBS)
574 # Non-MSVC6 variants have to avoid indirectly using msvcrt.dll,
575 # therefore compile the zlib dll from source ZLIB_DIR package.
576 # To avoid path problems, copy the zlib sources to a temp dir,
577 # compile and copy the resulting files back to (source) ZLIB_DIR
579 xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
581 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="$(LOCAL_CFLAGS)"
582 if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
583 if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
584 if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
585 !IF $(MSC_VER_REQUIRED) >= 1400
586 mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
588 copy zlib1.dll $(ZLIB_DIR)
589 copy zdll.lib $(ZLIB_DIR)\lib
590 copy zconf.h $(ZLIB_DIR)\include
591 copy zlib.h $(ZLIB_DIR)\include
598 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
603 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
608 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
611 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
613 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libui.lib
616 epan:: $(RESOURCES) $(ZLIB_DLL) wiretap\wiretap-$(WTAP_VERSION).lib $(BUILT_SOURCES) doxygen
618 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
623 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
628 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
633 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
636 doxygen.cfg: config.nmake doxygen.cfg.in
637 sed -e s/@VERSION@/$(VERSION)/ \
638 < doxygen.cfg.in > $@
642 $(DOXYGEN) doxygen.cfg
645 doxygen: doxygen.cfg doxygen-run
647 ################################################################################
648 # Prepare build environment by downloading and installing required libraries
649 ################################################################################
651 # The required tools to build Wireshark.
653 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
654 # We only need the cygwin version (for some shell scripts).
655 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
673 @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
675 # Targets and etc used to verify or download libraries
677 !IFNDEF WIN32_SETUP_OPT
678 WIN32_SETUP_OPT=--download
681 # Verify that the required library 'package' (zip) files have been downloaded.
682 # (It seems reasonable to assume that if the files have been downloaded
683 # then they have been installed).
685 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
687 # Verify library packages only if Makefile.nmake has been updated
688 # (or dummy file doesn't exist because of 'make clean' or whatever)
689 # (To disable library verification when Makefile.nmake changes,
690 # comment out the commands for the following target).
691 # touch is only called if libverify succeeds.
692 # (One microsec is added to the makefile.nmake time since the time set by [cygwin ?] 'touch --reference'
693 # apparently has the nanosecs truncated from the reference file time [at least on Windows Vista]).
694 $(LIBS_CHECK): Makefile.nmake
695 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
696 @touch --reference=Makefile.nmake -d "+0.000001 sec" $@
698 # Download (if needed) and install all the required libraries into WIRESHARK_LIBS.
699 # A clean_setup is done first to ensure that the target dirs don't
700 # contain old files remaining from a previous setup run.
701 setup: verify_tools clean_setup process_libs
704 # The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
705 # (The choice is determined by the value of the macro WIN32_SETUP_OPT).
707 !IF "$(WIN32_SETUP_OPT)" == "--libverify"
708 @$(SH) tools\win32-setup.sh --checktag "$(WIRESHARK_LIBS)"
710 if not exist $(WIRESHARK_LIBS) md $(WIRESHARK_LIBS)
711 !IF "$(GTK_INST_VERSION)" == "2.14"
712 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
713 glib gtk2.14/glib_2.18.1-1_win32.zip
714 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
715 glib gtk2.14/glib-dev_2.18.1-1_win32.zip
716 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
717 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
718 glib gtk2.12/glib_2.18.0-1_win32.zip
719 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
720 glib gtk2.12/glib-dev_2.18.0-1_win32.zip
722 !ERROR ? Unknown or invalid GTK_INST_VERSION
725 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
726 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
728 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
729 gettext-runtime-0.17-1 gettext-runtime-0.17-1.zip
731 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
735 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
739 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
740 AirPcap_Devpack_1_0_0_594 AirPcap_Devpack_1_0_0_594.zip
743 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
747 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
748 . adns-1.0-win32-05ws.zip
751 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
752 pcre-7.0 pcre-7.0-bin.zip
753 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
754 pcre-7.0 pcre-7.0-lib.zip
757 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
758 zlib123 zlib123ws.zip
761 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
762 lua5.1.4 lua5_1_4_Win32_dll9_lib.zip
766 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
770 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
771 . portaudio_v19_2.zip
774 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
779 !IF "$(GTK_INST_VERSION)" == "2.14"
780 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
781 gtk2 gtk2.14/gtk+_2.14.3-2_win32.zip
782 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
783 gtk2 gtk2.14/gtk+-dev_2.14.3-2_win32.zip
784 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
785 gtk2 gtk2.14/cairo_1.7.6-1_win32.zip
786 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
787 gtk2 gtk2.14/cairo-dev_1.7.6-1_win32.zip
788 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
789 gtk2 gtk2.14/atk_1.24.0-1_win32.zip
790 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
791 gtk2 gtk2.14/atk-dev_1.24.0-1_win32.zip
792 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
793 gtk2 gtk2.14/libpng_1.2.32-1_win32.zip
794 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
795 gtk2 gtk2.14/tiff-3.8.2-1-bin.zip
796 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
797 gtk2 gtk2.14/jpeg-6b-4-bin.zip
798 !ELSEIF "$(GTK_INST_VERSION)" == "2.12"
799 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
800 gtk2 gtk2.12/gtk+-2.12.11.zip
801 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
802 gtk2 gtk2.12/gtk+-dev-2.12.11.zip
803 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
804 gtk2 gtk2.12/cairo-1.6.4-2.zip
805 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
806 gtk2 gtk2.12/cairo-dev-1.6.4-2.zip
807 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
808 gtk2 gtk2.12/atk-1.22.0.zip
809 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
810 gtk2 gtk2.12/atk-dev-1.22.0.zip
811 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
812 gtk2 gtk2.12/libpng-1.2.29.zip
813 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
814 gtk2 gtk2.12/tiff-3.8.2-1-bin.zip
815 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
816 gtk2 gtk2.12/jpeg-6b-4-bin.zip
818 !ERROR ? Unknown or invalid GTK_INST_VERSION
820 !IF "$(PANGO_INST_VERSION)" == "1.22"
821 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
822 gtk2 gtk2.14/pango_1.22.0-1_win32.zip
823 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
824 gtk2 gtk2.14/pango-dev_1.22.0-1_win32.zip
826 !ERROR ? Unknown or invalid PANGO_INST_VERSION
830 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
831 user-guide user-guide-24665.zip
834 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
838 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
839 . nasm-2.02-win32.zip
841 !IF "$(WIN32_SETUP_OPT)" == "--download"
842 @$(SH) tools\win32-setup.sh --settag "$(WIRESHARK_LIBS)"
845 @echo Wireshark is ready to build.
847 # Cleanup files installed by the setup target. It will not remove the
848 # downloaded zip files.
849 # WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
850 # UPDATING REMOVES THE FORMER USER DIRS
852 rm -r -f $(WIRESHARK_LIBS)/adns-1.0-win32-05ws
853 rm -r -f $(WIRESHARK_LIBS)/c-ares-1.5.3ws
854 rm -r -f $(WIRESHARK_LIBS)/gettext-0.14.5
855 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.17
856 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.17-1
857 rm -r -f $(WIRESHARK_LIBS)/glib
858 rm -r -f $(WIRESHARK_LIBS)/gnutls-1.6.1-1
859 rm -r -f $(WIRESHARK_LIBS)/gnutls-2.3.8-1
860 rm -r -f $(WIRESHARK_LIBS)/gtk2
861 rm -r -f $(WIRESHARK_LIBS)/gtk+
862 rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
863 rm -r -f $(WIRESHARK_LIBS)/kfw-2.5
864 rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
865 rm -r -f $(WIRESHARK_LIBS)/lua5.1
866 rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.5
867 rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.8
868 rm -r -f $(WIRESHARK_LIBS)/nasm-2.00
869 rm -r -f $(WIRESHARK_LIBS)/nasm-2.02
870 rm -r -f $(WIRESHARK_LIBS)/pcre-6.4
871 rm -r -f $(WIRESHARK_LIBS)/pcre-7.0
872 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19
873 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19_2
874 rm -r -f $(WIRESHARK_LIBS)/user-guide
875 rm -r -f $(WIRESHARK_LIBS)/WpdPack
876 rm -r -f $(WIRESHARK_LIBS)/AirPcap_Devpack_1_0_0_594
877 rm -r -f $(WIRESHARK_LIBS)/zlib123
878 rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
879 rm -r -f $(WIRESHARK_LIBS)/upx301w
881 ################################################################################
882 # Prepare the debug trees for running Wireshark/Tshark from there.
883 ################################################################################
886 # prepare debugging of Wireshark in INSTALL_DIR
887 debug-wireshark: wireshark.exe install-generated-files
889 # prepare debugging of tshark in INSTALL_DIR
890 debug-tshark: tshark.exe install-generated-files
892 # prepare debugging of rawshark in INSTALL_DIR
893 debug-rawshark: rawshark.exe install-generated-files
895 # prepare debugging of dumpcap in INSTALL_DIR
896 debug-dumpcap: dumpcap.exe install-generated-files
899 # install generated files (exe, "our" libs, ...)
900 install-generated-files:
902 !IF "$(MSVC_VARIANT)" == "MSVC2008"
903 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)\*.*
905 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
906 !IFDEF ENABLE_LIBWIRESHARK
907 xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
909 xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
910 if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
911 xcopy ".\epan\libwireshark.dll" $(INSTALL_DIR) /d
912 xcopy ".\wsutil\libwsutil.dll" $(INSTALL_DIR) /d
913 if exist ".\epan\libwireshark.pdb" xcopy ".\epan\libwireshark.pdb" $(INSTALL_DIR) /d
914 if exist wireshark.exe copy wireshark.exe $(INSTALL_DIR)\wireshark.exe
915 if exist wireshark.pdb copy wireshark.pdb $(INSTALL_DIR)\wireshark.pdb
916 if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL_DIR) /d
917 if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
918 if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
919 if exist rawshark.exe xcopy rawshark.exe $(INSTALL_DIR) /d
920 if exist rawshark.exe.manifest xcopy rawshark.exe.manifest $(INSTALL_DIR) /d
921 if exist rawshark.pdb xcopy rawshark.pdb $(INSTALL_DIR) /d
922 if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
923 if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
924 if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
925 if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
926 if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
927 if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
928 if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
929 if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
930 if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
931 if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
932 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
933 xcopy ".\manuf" $(INSTALL_DIR) /d
934 xcopy ".\services" $(INSTALL_DIR) /d
935 xcopy ".\FAQ" $(INSTALL_DIR) /d
936 xcopy ".\README" $(INSTALL_DIR) /d
937 xcopy ".\README.win32" $(INSTALL_DIR) /d
938 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
939 xcopy ".\COPYING" $(INSTALL_DIR) /d
940 copy ".\NEWS" $(INSTALL_DIR)\NEWS.txt
941 xcopy ".\cfilters" $(INSTALL_DIR) /d
942 xcopy ".\colorfilters" $(INSTALL_DIR) /d
943 xcopy ".\dfilters" $(INSTALL_DIR) /d
944 xcopy ".\smi_modules" $(INSTALL_DIR) /d
946 xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
947 xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
949 xcopy doc\*.html $(INSTALL_DIR) /d
950 if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
951 xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
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)
967 xcopy ".\plugins\agentx\agentx.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
968 xcopy ".\plugins\artnet\artnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
969 xcopy ".\plugins\asn1\asn1.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
970 xcopy ".\plugins\ciscosm\ciscosm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
971 xcopy ".\plugins\docsis\docsis.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
972 xcopy ".\plugins\enttec\enttec.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
973 xcopy ".\plugins\ethercat\ethercat.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
974 xcopy ".\plugins\giop\coseventcomm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
975 xcopy ".\plugins\giop\cosnaming.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
976 xcopy ".\plugins\giop\parlay.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
977 xcopy ".\plugins\giop\tango.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
978 xcopy ".\plugins\gryphon\gryphon.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
979 xcopy ".\plugins\infiniband\infiniband.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
980 xcopy ".\plugins\irda\irda.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
981 xcopy ".\plugins\lwres\lwres.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
982 xcopy ".\plugins\m2m\m2m.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
983 xcopy ".\plugins\mate\mate.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
984 xcopy ".\plugins\opcua\opcua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
985 xcopy ".\plugins\opsi\opsi.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
986 xcopy ".\plugins\pcli\pcli.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
987 xcopy ".\plugins\profinet\profinet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
988 xcopy ".\plugins\rlm\rlm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
989 xcopy ".\plugins\rtnet\rtnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
990 xcopy ".\plugins\rudp\rudp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
991 xcopy ".\plugins\sbus\sbus.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
992 xcopy ".\plugins\sercosiii\sercosiii.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
993 xcopy ".\plugins\stats_tree\stats_tree.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
994 xcopy ".\plugins\unistim\unistim.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
995 xcopy ".\plugins\v5ua\v5ua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
996 xcopy ".\plugins\wimax\wimax.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
997 xcopy ".\plugins\wimaxasncp\wimaxasncp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
998 if exist custom-install.bat custom-install $(INSTALL_DIR) $(VERSION)
1000 # "install-all" will copy all files needed to run Wireshark/Tshark
1001 # to the INSTALL_DIR, so you can run/debug Wireshark/Tshark from there.
1002 install-all: install-generated-files
1004 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
1005 xcopy $(GTK_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL_DIR) /d
1006 xcopy $(GTK_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL_DIR) /d
1007 xcopy $(GTK_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL_DIR) /d
1008 xcopy $(GTK_DIR)\bin\libatk-1.0-0.dll $(INSTALL_DIR) /d
1009 xcopy $(GTK_DIR)\bin\libpango-1.0-0.dll $(INSTALL_DIR) /d
1010 xcopy $(GTK_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL_DIR) /d
1011 if not exist $(INSTALL_DIR)\etc mkdir $(INSTALL_DIR)\etc
1012 if not exist $(INSTALL_DIR)\etc\gtk-2.0 mkdir $(INSTALL_DIR)\etc\gtk-2.0
1013 if not exist $(INSTALL_DIR)\etc\pango mkdir $(INSTALL_DIR)\etc\pango
1014 if not exist $(INSTALL_DIR)\lib mkdir $(INSTALL_DIR)\lib
1015 if not exist $(INSTALL_DIR)\lib\gtk-2.0 mkdir $(INSTALL_DIR)\lib\gtk-2.0
1016 if not exist $(INSTALL_DIR)\lib\gtk-2.0\modules mkdir $(INSTALL_DIR)\lib\gtk-2.0\modules
1017 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)
1018 # if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders
1019 # if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules
1020 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines
1021 # if not exist $(INSTALL_DIR)\lib\pango mkdir $(INSTALL_DIR)\lib\pango
1022 # if not exist $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR) mkdir $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)
1023 # if not exist $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules mkdir $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules
1024 xcopy $(GTK_DIR)\etc\gtk-2.0\*.* $(INSTALL_DIR)\etc\gtk-2.0 /d
1025 xcopy $(GTK_DIR)\etc\pango\pango.* $(INSTALL_DIR)\etc\pango /d
1026 # xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders /d
1027 xcopy $(GTK_DIR)\lib\gtk-2.0\modules\libgail.dll $(INSTALL_DIR)\lib\gtk-2.0\modules /d
1028 xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines\libpixmap.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines /d
1029 # xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules\im-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules /d
1030 # xcopy $(GTK_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules /d
1031 !IFDEF NEED_LIBPNG_DLL
1032 # xcopy $(GTK_DIR)\bin\libpng13.dll $(INSTALL_DIR) /d
1033 xcopy $(GTK_DIR)\bin\libpng12-0.dll $(INSTALL_DIR) /d
1035 !IFDEF NEED_LIBTIFF_DLL
1036 xcopy $(GTK_DIR)\bin\libtiff3.dll $(INSTALL_DIR) /d
1038 !IFDEF NEED_LIBJPEG_DLL
1039 xcopy $(GTK_DIR)\bin\jpeg62.dll $(INSTALL_DIR) /d
1041 !IFDEF NEED_CAIRO_DLL
1042 xcopy $(GTK_DIR)\bin\libcairo-2.dll $(INSTALL_DIR) /d
1043 xcopy $(GTK_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL_DIR) /d
1045 if not exist $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR)
1046 xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
1047 if not exist $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR)
1048 xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) /d
1049 xcopy $(GLIB_DIR)\bin\libgio-2.0-0.dll $(INSTALL_DIR) /d
1050 xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
1051 xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
1052 xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
1054 xcopy $(ICONV_DIR)\bin\iconv.dll $(INSTALL_DIR) /d
1056 xcopy $(GETTEXT_DIR)\bin\intl.dll $(INSTALL_DIR) /d
1058 xcopy $(ZLIB_DLL) $(INSTALL_DIR) /d
1061 xcopy $(C_ARES_DLL) $(INSTALL_DIR) /d
1064 xcopy $(ADNS_DLL) $(INSTALL_DIR) /d
1067 xcopy $(PCRE_DIR)\bin\pcre3.dll $(INSTALL_DIR) /d
1068 xcopy $(PCRE_DIR)\man\cat3\pcrepattern.3.txt $(INSTALL_DIR) /d
1071 xcopy $(KFW_DIR)\bin\comerr32.dll $(INSTALL_DIR) /d
1072 xcopy $(KFW_DIR)\bin\krb5_32.dll $(INSTALL_DIR) /d
1075 xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
1076 xcopy $(GNUTLS_DIR)\bin\libgnutls-26.dll $(INSTALL_DIR) /d
1077 xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-26.dll $(INSTALL_DIR) /d
1078 xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-26.dll $(INSTALL_DIR) /d
1079 xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
1080 xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
1083 xcopy "$(LUA_DIR)\lua5.1.dll" $(INSTALL_DIR) /d
1086 if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
1087 if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
1088 xcopy "$(SMI_DIR)\lib\smi.dll" $(INSTALL_DIR) /d
1089 xcopy "$(SMI_DIR)\mibs\*" $(INSTALL_DIR)\snmp\mibs /d
1093 rm -rf $(INSTALL_DIR)
1095 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
1099 $(PERL) tools/checkAPIs.pl \
1100 # $(wireshark_SOURCES) \
1102 # $(EXTRA_wireshark_SOURCES)
1104 checkapi: checkapi_local
1106 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1108 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1110 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1112 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1114 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1116 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1118 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1120 ## $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1122 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1125 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi
1127 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake checkapi