1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
9 ############### no need to modify below this line #########
14 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
16 CFLAGS=-WX -DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
17 $(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
19 $(ADNS_CFLAGS) $(PCRE_CFLAGS) $(GNUTLS_CFLAGS) $(LUA_CFLAGS) $(SMI_CFLAGS) \
20 -D_U_="" -D_NEED_VAR_IMPORT_
22 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
25 $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
27 PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c
29 include Makefile.common
31 wireshark_OBJECTS = $(wireshark_SOURCES:.c=.obj)
32 tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
33 rawshark_OBJECTS = $(rawshark_SOURCES:.c=.obj)
34 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
35 dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
36 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
45 wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
46 wsock32.lib user32.lib shell32.lib comctl32.lib \
48 !IFDEF ENABLE_LIBWIRESHARK
49 epan\libwireshark.lib \
51 epan\dissectors\dissectors.lib \
53 epan\crypt\airpdcap.lib \
54 epan\dfilter\dfilter.lib \
55 epan\ftypes\ftypes.lib \
62 tshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
63 wsock32.lib user32.lib \
65 !IFDEF ENABLE_LIBWIRESHARK
66 epan\libwireshark.lib \
68 epan\dissectors\dissectors.lib \
70 epan\crypt\airpdcap.lib \
71 epan\dfilter\dfilter.lib \
72 epan\ftypes\ftypes.lib \
79 rawshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
80 wsock32.lib user32.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 \
96 capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
97 wsock32.lib user32.lib shell32.lib \
100 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
101 wsock32.lib user32.lib shell32.lib \
104 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
105 wsock32.lib user32.lib \
108 text2pcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
109 wsock32.lib user32.lib \
112 dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
113 wsock32.lib user32.lib \
116 dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
117 wsock32.lib user32.lib \
119 !IFDEF ENABLE_LIBWIRESHARK
120 epan\libwireshark.lib \
122 epan\dissectors\dissectors.lib \
124 epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
132 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
136 EXECUTABLES=wireshark.exe tshark.exe rawshark.exe \
137 capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
139 RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
140 image\capinfos.res image\editcap.res image\mergecap.res \
141 image\text2pcap.res image\wiretap.res image\dumpcap.res \
144 LIBS_CHECK=_libs_check_
146 all: $(LIBS_CHECK) config.h tools image codecs $(ZLIB_DLL) wiretap epan $(EXECUTABLES) $(RESOURCES) doc install-all
151 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
159 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
168 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
173 # use (info-)zip from cygwin to pack things
176 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)
179 @echo Including vcredist_x86.exe -- your recipient may need to run it!
180 xcopy "$(VCREDIST_EXE)" $(INSTALL_DIR)
183 zip -r -9 wireshark.zip $(INSTALL_DIR)/
188 wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DLL) wiretap
190 wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins
193 /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
195 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
196 mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1
199 tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj inet_ntop.obj epan image\tshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
202 /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj inet_ntop.obj image\tshark.res
204 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
205 mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
208 rawshark.exe : $(LIBS_CHECK) config.h svnversion.h $(rawshark_OBJECTS) getopt.obj inet_ntop.obj epan image\rawshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
211 /OUT:rawshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(rawshark_LIBS) $(rawshark_OBJECTS) getopt.obj inet_ntop.obj image\rawshark.res
214 capinfos.exe : $(LIBS_CHECK) config.h capinfos.obj getopt.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
217 /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj $(capinfos_LIBS) image\capinfos.res
219 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
220 mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
223 editcap.exe : $(LIBS_CHECK) config.h editcap.obj getopt.obj strptime.obj epan\crypt\crypt-md5.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
226 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj strptime.obj epan/unicode-utils.obj epan\crypt\crypt-md5.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj $(editcap_LIBS) image\editcap.res
228 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
229 mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
232 mergecap.exe : $(LIBS_CHECK) config.h svnversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
235 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
237 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
238 mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
241 text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib strptime.obj image\text2pcap.res
244 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj $(text2pcap_LIBS) strptime.obj image\text2pcap.res
246 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
247 mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
250 dftest.exe : $(dftest_OBJECTS) epan
253 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
255 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
256 mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
259 randpkt.exe : $(randpkt_OBJECTS) getopt.obj
262 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) getopt.obj
264 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
265 mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
268 dumpcap.exe : $(LIBS_CHECK) config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj epan/unicode-utils.obj inet_ntop.obj mkstemp.obj wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res
271 /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj image\dumpcap.res
273 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
274 mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
278 config.h : config.h.win32 config.nmake
279 sed -e s/@VERSION@/$(VERSION)/ \
280 -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
281 -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
282 -e "s/@HAVE_KFW@/$(KFW_CONFIG)/" \
283 -e "s/@HAVE_NETTLE@/$(NETTLE_CONFIG)/" \
284 -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
285 -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
286 -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
287 -e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
288 -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
289 -e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
290 -e "s/@HAVE_REMOTE@/$(PCAP_HAVE_REMOTE_CONFIG)/" \
291 -e "s/@HAVE_PCAP_REMOTE@/$(PCAP_REMOTE_CONFIG)/" \
292 -e "s/@HAVE_PCAP_OPEN@/$(PCAP_OPEN_CONFIG)/" \
293 -e "s/@HAVE_PCAP_FINDALLDEVS_EX@/$(PCAP_FINDALLDEVS_EX_CONFIG)/" \
294 -e "s/@HAVE_PCAP_CREATESRCSTR@/$(PCAP_CREATESRCSTR_CONFIG)/" \
295 -e "s/@HAVE_PCAP_SETSAMPLING@/$(PCAP_SETSAMPLING_CONFIG)/" \
296 -e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
297 -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
298 -e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
299 -e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
300 -e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
301 -e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
302 -e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
303 -e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
304 -e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
305 -e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
306 -e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
307 < config.h.win32 > $@
309 ps.c : rdps.exe print.ps
314 # Build the version string
316 !IF EXIST(".svn/entries")
317 SVNENTRIES = .svn/entries
321 svnversion.h: $(SVNENTRIES)
323 $(PERL) make-version.pl
326 # Build the short version of the authors file for the about dialog
328 AUTHORS-SHORT: AUTHORS make-authors-short.pl
329 $(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
332 # Build the short version of the authors file with formatting codes for
335 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
336 $(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
339 # Build "tshark-tap-register.c", which contains a function
340 # "register_all_tap_listeners()"
341 # that calls the register routines for all TShark tap listeners.
343 # We do this by grepping through sources.
345 # Formatting conventions: The name of the tap_listener_register_*
346 # routines must start in column zero, or must be preceded only by
347 # "void " starting in column zero, and must not be inside #if.
349 # The first argument is the name of the file to write.
350 # The second argument is the directory in which the source files live.
351 # All subsequent arguments are the files to scan.
353 tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
354 @echo Making tshark-tap-register.c
355 @$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
357 text2pcap-scanner.c : text2pcap-scanner.l
358 $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
360 clean-local: clean-deps
361 rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(dumpcap_OBJECTS) $(rawshark_OBJECTS) \
362 $(EXTRA_OBJECTS) $(EXECUTABLES) *.pdb *.exe.manifest \
363 capinfos.obj editcap.obj mergecap.obj text2pcap.obj \
364 nio-ie5.obj update.obj \
365 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
366 rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
367 AUTHORS-SHORT-FORMAT $(LIBS_CHECK) \
368 dftest.obj dftest.exe randpkt.obj randpkt.ext \
370 $(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll
374 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
377 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
379 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
381 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
383 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
385 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
387 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
389 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
391 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
393 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
395 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
397 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
398 cd ../../portableapps/win32
399 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
402 # "distclean" removes all files not part of the distribution.
403 # It does not remove generated files that are part of the distribution.
404 distclean-local: clean-local
406 rm -f $(ZLIB_DIR)\zlib1.dll $(ZLIB_DIR)\zlib1.dll.manifest \
407 $(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
408 $(ZLIB_DIR)\lib\zdll.lib
410 rm -f config.h $(BUILT_SOURCES)
412 distclean: distclean-local
414 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
416 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
418 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
420 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
422 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
424 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
426 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
428 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
430 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
432 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
434 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
435 cd ../../portableapps/win32
436 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
439 # Make "maintainer-clean" only if you would like to remove ALL generated
441 # Be sure to have python and perl installed to regenerate them.
442 maintainer-clean-local: distclean-local
443 rm -f $(GENERATED_FILES)
445 maintainer-clean: maintainer-clean-local
447 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
449 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
451 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
453 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
455 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
457 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
459 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
461 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
463 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
465 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
467 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
468 cd ../../portableapps/win32
469 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
474 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
479 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
483 # Non-MSVC6 variants have to avoid indirectly using msvcrt.dll,
484 # therefore compile the zlib dll from source ZLIB_DIR package.
485 # To avoid path problems, copy the zlib sources to a temp dir,
486 # compile and copy the resulting files back to (source) ZLIB_DIR
488 xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
490 $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
491 if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
492 if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
493 if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
494 !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
495 mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
497 copy zlib1.dll $(ZLIB_DIR)
498 copy zdll.lib $(ZLIB_DIR)\lib
499 copy zconf.h $(ZLIB_DIR)\include
500 copy zlib.h $(ZLIB_DIR)\include
507 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
512 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
515 gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
517 $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libui.lib
520 epan:: $(RESOURCES) $(ZLIB_DLL) wiretap\wiretap-$(WTAP_VERSION).lib $(BUILT_SOURCES) doxygen
522 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
527 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
532 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
537 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
540 doxygen.cfg: config.nmake doxygen.cfg.in
541 sed -e s/@VERSION@/$(VERSION)/ \
542 < doxygen.cfg.in > $@
546 $(DOXYGEN) doxygen.cfg
549 doxygen: doxygen.cfg doxygen-run
551 ################################################################################
552 # Prepare build environment by downloading and installing required libraries
553 ################################################################################
555 # The required tools to build Wireshark.
557 # The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
558 # We only need the cygwin version (for some shell scripts).
559 # In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
577 @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
579 # Targets and etc used to verify or download libraries
581 !IFNDEF WIN32_SETUP_OPT
582 WIN32_SETUP_OPT=--download
585 # Verify that the required library 'package' (zip) files have been downloaded.
586 # (It seems reasonable to assume that if the files have been downloaded
587 # then they have been installed).
589 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
591 # Verify library packages only if Makefile.nmake has been updated
592 # (or dummy file doesn't exist because of 'make clean' or whatever)
593 # (To disable library verification when Makefile.nmake changes,
594 # comment out the commands for the following target).
595 # touch is only called if libverify succeeds
596 $(LIBS_CHECK): Makefile.nmake
597 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
598 @touch --reference=Makefile.nmake $@
600 # Download (if needed) and install all the required libraries into WIRESHARK_LIBS.
601 # A clean_setup is done first to ensure that the target dirs don't
602 # contain old files remaining from a previous setup run.
603 setup: verify_tools clean_setup process_libs
606 # The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
607 # (The choice is determined by the value of the macro WIN32_SETUP_OPT).
609 if not exist $(WIRESHARK_LIBS) md $(WIRESHARK_LIBS)
610 !IF "$(GTK_INST_VERSION)" == "2.12"
611 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
612 glib gtk2.12/glib-2.16.1.zip
613 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
614 glib gtk2.12/glib-dev-2.16.1.zip
615 !ELSEIF "$(GTK_INST_VERSION)" == "2.10"
616 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
617 glib gtk2.10/glib-2.12.13.zip
618 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
619 glib gtk2.10/glib-dev-2.12.13.zip
621 !ERROR ? Unknown or invalid GTK_INST_VERSION
624 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
625 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
627 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
628 gettext-runtime-0.17-1 gettext-runtime-0.17-1.zip
630 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
634 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
638 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
639 AirPcap_Devpack_1_0_0_594 AirPcap_Devpack_1_0_0_594.zip
642 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
643 . adns-1.0-win32-05.zip
646 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
647 pcre-7.0 pcre-7.0-bin.zip
648 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
649 pcre-7.0 pcre-7.0-lib.zip
652 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
656 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
661 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
665 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
669 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
674 !IF "$(GTK_INST_VERSION)" == "2.12"
675 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
676 gtk2 gtk2.12/gtk+-2.12.9.zip
677 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
678 gtk2 gtk2.12/gtk+-dev-2.12.9.zip
679 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
680 gtk2 gtk2.12/cairo-1.4.14.zip
681 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
682 gtk2 gtk2.12/cairo-dev-1.4.14.zip
683 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
684 gtk2 gtk2.12/atk-1.22.0.zip
685 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
686 gtk2 gtk2.12/atk-dev-1.22.0.zip
687 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
688 gtk2 gtk2.12/libpng-1.2.8-bin.zip
689 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
690 gtk2 gtk2.12/tiff-3.8.2-1-bin.zip
691 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
692 gtk2 gtk2.12/jpeg-6b-4-bin.zip
693 !ELSEIF "$(GTK_INST_VERSION)" == "2.10"
694 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
695 gtk2 gtk2.10/gtk+-2.10.14.zip
696 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
697 gtk2 gtk2.10/gtk+-dev-2.10.14.zip
698 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
699 gtk2 gtk2.10/cairo-1.4.8.zip
700 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
701 gtk2 gtk2.10/cairo-dev-1.4.8.zip
702 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
703 gtk2 gtk2.10/atk-1.18.0.zip
704 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
705 gtk2 gtk2.10/atk-dev-1.18.0.zip
706 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
707 gtk2 gtk2.10/libpng-1.2.8-bin.zip
709 !ERROR ? Unknown or invalid GTK_INST_VERSION
711 !IF "$(PANGO_INST_VERSION)" == "1.20"
712 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
713 gtk2 gtk2.12/pango-1.20.0.zip
714 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
715 gtk2 gtk2.12/pango-dev-1.20.0.zip
716 !ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
717 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
718 gtk2 gtk2.10/pango-1.16.4.zip
719 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
720 gtk2 gtk2.10/pango-dev-1.16.4.zip
722 !ERROR ? Unknown or invalid PANGO_INST_VERSION
726 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
727 gtk-wimp gtk-wimp/gtk-wimp-0.7.0-bin.zip
730 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
731 user-guide user-guide-24665.zip
734 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
738 @$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
739 . nasm-2.00-win32.zip
742 @echo Wireshark is ready to build.
744 # Cleanup files installed by the setup target. It will not remove the
745 # downloaded zip files.
746 # WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
747 # UPDATING REMOVES THE FORMER USER DIRS
749 rm -r -f $(WIRESHARK_LIBS)/adns-1.0-win32-05
750 rm -r -f $(WIRESHARK_LIBS)/gettext-0.14.5
751 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.17
752 rm -r -f $(WIRESHARK_LIBS)/gettext-runtime-0.17-1
753 rm -r -f $(WIRESHARK_LIBS)/glib
754 rm -r -f $(WIRESHARK_LIBS)/gnutls-1.6.1-1
755 rm -r -f $(WIRESHARK_LIBS)/gtk2
756 rm -r -f $(WIRESHARK_LIBS)/gtk+
757 rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
758 rm -r -f $(WIRESHARK_LIBS)/kfw-2.5
759 rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
760 rm -r -f $(WIRESHARK_LIBS)/lua5.1
761 rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.5
762 rm -r -f $(WIRESHARK_LIBS)/nasm-2.00
763 rm -r -f $(WIRESHARK_LIBS)/pcre-6.4
764 rm -r -f $(WIRESHARK_LIBS)/pcre-7.0
765 rm -r -f $(WIRESHARK_LIBS)/portaudio_v18_1
766 rm -r -f $(WIRESHARK_LIBS)/portaudio_v19
767 rm -r -f $(WIRESHARK_LIBS)/user-guide
768 rm -r -f $(WIRESHARK_LIBS)/WpdPack
769 rm -r -f $(WIRESHARK_LIBS)/AirPcap_Devpack_1_0_0_594
770 rm -r -f $(WIRESHARK_LIBS)/zlib123
771 rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
772 rm -r -f $(WIRESHARK_LIBS)/upx301w
774 ################################################################################
775 # Prepare the debug trees for running Wireshark/Tshark from there.
776 ################################################################################
779 # prepare debugging of Wireshark in INSTALL_DIR
780 debug-wireshark: wireshark.exe install-generated-files
782 # prepare debugging of tshark in INSTALL_DIR
783 debug-tshark: tshark.exe install-generated-files
785 # prepare debugging of rawshark in INSTALL_DIR
786 debug-rawshark: rawshark.exe install-generated-files
788 # prepare debugging of dumpcap in INSTALL_DIR
789 debug-dumpcap: dumpcap.exe install-generated-files
792 # install generated files (exe, "our" libs, ...)
793 install-generated-files:
795 !IF "$(MSVC_VARIANT)" == "MSVC2008EE"
796 xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)
798 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
799 !IFDEF ENABLE_LIBWIRESHARK
800 xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
802 xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
803 if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
804 xcopy ".\epan\libwireshark.dll" $(INSTALL_DIR) /d
805 if exist ".\epan\libwireshark.pdb" xcopy ".\epan\libwireshark.pdb" $(INSTALL_DIR) /d
806 if exist wireshark.exe copy wireshark.exe $(INSTALL_DIR)\wireshark.exe
807 if exist wireshark.pdb copy wireshark.pdb $(INSTALL_DIR)\wireshark.pdb
808 if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL_DIR) /d
809 if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
810 if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
811 if exist rawshark.exe xcopy rawshark.exe $(INSTALL_DIR) /d
812 if exist rawshark.exe.manifest xcopy rawshark.exe.manifest $(INSTALL_DIR) /d
813 if exist rawshark.pdb xcopy rawshark.pdb $(INSTALL_DIR) /d
814 if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
815 if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
816 if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
817 if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
818 if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
819 if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
820 if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
821 if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
822 if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
823 if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
824 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
825 xcopy ".\manuf" $(INSTALL_DIR) /d
826 xcopy ".\services" $(INSTALL_DIR) /d
827 xcopy ".\FAQ" $(INSTALL_DIR) /d
828 xcopy ".\README" $(INSTALL_DIR) /d
829 xcopy ".\README.win32" $(INSTALL_DIR) /d
830 xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
831 xcopy ".\COPYING" $(INSTALL_DIR) /d
832 copy ".\NEWS" $(INSTALL_DIR)\NEWS.txt
833 xcopy ".\cfilters" $(INSTALL_DIR) /d
834 xcopy ".\colorfilters" $(INSTALL_DIR) /d
835 xcopy ".\dfilters" $(INSTALL_DIR) /d
836 xcopy ".\smi_modules" $(INSTALL_DIR) /d
838 xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
839 xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
841 xcopy doc\*.html $(INSTALL_DIR) /d
842 if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
843 xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
844 if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
845 xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
846 if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
847 echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
848 if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
849 xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
850 if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
851 xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
852 xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
853 if not exist $(INSTALL_DIR)\tpncp mkdir $(INSTALL_DIR)\tpncp
854 xcopy ".\tpncp\*.dat" $(INSTALL_DIR)\tpncp /d
855 if not exist $(INSTALL_DIR)\wimaxasncp mkdir $(INSTALL_DIR)\wimaxasncp
856 xcopy ".\wimaxasncp\*.*" $(INSTALL_DIR)\wimaxasncp /d
857 if not exist $(INSTALL_DIR)\plugins mkdir $(INSTALL_DIR)\plugins
858 if not exist $(INSTALL_DIR)\plugins\$(VERSION) mkdir $(INSTALL_DIR)\plugins\$(VERSION)
859 xcopy ".\plugins\agentx\agentx.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
860 xcopy ".\plugins\artnet\artnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
861 xcopy ".\plugins\asn1\asn1.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
862 xcopy ".\plugins\ciscosm\ciscosm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
863 xcopy ".\plugins\docsis\docsis.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
864 xcopy ".\plugins\enttec\enttec.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
865 xcopy ".\plugins\ethercat\ethercat.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
866 xcopy ".\plugins\giop\coseventcomm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
867 xcopy ".\plugins\giop\cosnaming.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
868 xcopy ".\plugins\giop\parlay.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
869 xcopy ".\plugins\giop\tango.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
870 xcopy ".\plugins\gryphon\gryphon.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
871 xcopy ".\plugins\infiniband\infiniband.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
872 xcopy ".\plugins\irda\irda.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
873 xcopy ".\plugins\lwres\lwres.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
874 xcopy ".\plugins\m2m\m2m.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
875 xcopy ".\plugins\mate\mate.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
876 xcopy ".\plugins\opcua\opcua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
877 xcopy ".\plugins\opsi\opsi.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
878 xcopy ".\plugins\pcli\pcli.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
879 xcopy ".\plugins\profinet\profinet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
880 xcopy ".\plugins\rlm\rlm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
881 xcopy ".\plugins\rtnet\rtnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
882 xcopy ".\plugins\rudp\rudp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
883 xcopy ".\plugins\sbus\sbus.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
884 xcopy ".\plugins\stats_tree\stats_tree.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
885 xcopy ".\plugins\unistim\unistim.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
886 xcopy ".\plugins\v5ua\v5ua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
887 xcopy ".\plugins\wimax\wimax.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
888 xcopy ".\plugins\wimaxasncp\wimaxasncp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
889 if exist custom-install.bat custom-install $(INSTALL_DIR) $(VERSION)
891 # "install-all" will copy all files needed to run Wireshark/Tshark
892 # to the INSTALL_DIR, so you can run/debug Wireshark/Tshark from there.
893 install-all: install-generated-files
895 if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
896 xcopy $(GTK_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL_DIR) /d
897 xcopy $(GTK_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL_DIR) /d
898 xcopy $(GTK_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL_DIR) /d
899 xcopy $(GTK_DIR)\bin\libatk-1.0-0.dll $(INSTALL_DIR) /d
900 xcopy $(GTK_DIR)\bin\libpango-1.0-0.dll $(INSTALL_DIR) /d
901 xcopy $(GTK_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL_DIR) /d
902 if not exist $(INSTALL_DIR)\etc mkdir $(INSTALL_DIR)\etc
903 if not exist $(INSTALL_DIR)\etc\gtk-2.0 mkdir $(INSTALL_DIR)\etc\gtk-2.0
904 if not exist $(INSTALL_DIR)\etc\pango mkdir $(INSTALL_DIR)\etc\pango
905 if not exist $(INSTALL_DIR)\lib mkdir $(INSTALL_DIR)\lib
906 if not exist $(INSTALL_DIR)\lib\gtk-2.0 mkdir $(INSTALL_DIR)\lib\gtk-2.0
907 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR) mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)
908 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders
909 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules
910 if not exist $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules mkdir $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\engines
911 # if not exist $(INSTALL_DIR)\lib\pango mkdir $(INSTALL_DIR)\lib\pango
912 # if not exist $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR) mkdir $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)
913 # if not exist $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules mkdir $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules
914 xcopy $(GTK_DIR)\etc\gtk-2.0\*.* $(INSTALL_DIR)\etc\gtk-2.0 /d
915 xcopy $(GTK_DIR)\etc\pango\pango.* $(INSTALL_DIR)\etc\pango /d
916 xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\loaders /d
917 xcopy $(GTK_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules\im-*.dll $(INSTALL_DIR)\lib\gtk-2.0\$(GTK_LIB_DIR)\immodules /d
918 # xcopy $(GTK_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll $(INSTALL_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules /d
919 !IFDEF NEED_LIBPNG_DLL
920 xcopy $(GTK_DIR)\bin\libpng13.dll $(INSTALL_DIR) /d
922 !IFDEF NEED_LIBTIFF_DLL
923 xcopy $(GTK_DIR)\bin\libtiff3.dll $(INSTALL_DIR) /d
925 !IFDEF NEED_LIBJPEG_DLL
926 xcopy $(GTK_DIR)\bin\jpeg62.dll $(INSTALL_DIR) /d
928 !IFDEF NEED_CAIRO_DLL
929 xcopy $(GTK_DIR)\bin\libcairo-2.dll $(INSTALL_DIR) /d
930 xcopy $(GTK_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL_DIR) /d
933 if not exist $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR)
934 xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
935 if not exist $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR)
936 xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL_DIR)\$(GTK_WIMP_RCDST_DIR) /d
938 xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
939 xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
940 xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
942 xcopy $(ICONV_DIR)\bin\iconv.dll $(INSTALL_DIR) /d
944 xcopy $(GETTEXT_DIR)\bin\intl.dll $(INSTALL_DIR) /d
946 xcopy $(ZLIB_DIR)\zlib1.dll $(INSTALL_DIR) /d
949 xcopy $(ADNS_DIR)\adns_win32\LIB\adns_dll.dll $(INSTALL_DIR) /d
952 xcopy $(PCRE_DIR)\bin\pcre3.dll $(INSTALL_DIR) /d
953 xcopy $(PCRE_DIR)\man\cat3\pcrepattern.3.txt $(INSTALL_DIR) /d
956 xcopy $(KFW_DIR)\bin\comerr32.dll $(INSTALL_DIR) /d
957 xcopy $(KFW_DIR)\bin\krb5_32.dll $(INSTALL_DIR) /d
960 xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
961 xcopy $(GNUTLS_DIR)\bin\libgnutls-13.dll $(INSTALL_DIR) /d
962 xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-13.dll $(INSTALL_DIR) /d
963 xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-13.dll $(INSTALL_DIR) /d
964 xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
965 xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
968 xcopy "$(LUA_DIR)\lib\dll\lua5.1.dll" $(INSTALL_DIR) /d
971 if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
972 if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
973 xcopy "$(SMI_DIR)\lib\smi.dll" $(INSTALL_DIR) /d
974 xcopy "$(SMI_DIR)\mibs\*" $(INSTALL_DIR)\snmp\mibs /d
978 rm -rf $(INSTALL_DIR)
980 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps