## Makefile for unpacking and preparing libraries required by Ethereal. ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake # # $Id: Makefile.nmake 11977 2004-09-12 10:07:23Z ulfl $ GTK2_INST_VERSION=2.4 PANGO_INST_VERSION=1.4 GTK1_DIR=gtk+ GTK2_DIR=gtk2 GTK_WIMP_DIR=gtk-wimp ZLIB_DIR=zlib121-dll PCAP_DIR=WPdpack NET_SNMP_DIR=net-snmp-5.1.2 ADNS_DIR=adns-1.0-win32-04 PCRE_DIR=pcre-4.4 ICONV_DIR=libiconv-1.9.1.bin.woe32 GETTEXT_DIR=gettext-runtime-0.13.1 SH=bash REQUIRED_TOOLS=\ $(SH) \ unzip verify_tools: @$(SH) win32-setup.sh --appverify $(REQUIRED_TOOLS) # Download and install all the required libraries into ETHEREAL_LIBS. # If you used this setup target before, consider doing a clean_setup. setup: verify_tools !IF "$(GTK2_INST_VERSION)" == "2.4" @$(SH) win32-setup.sh --unpack glib gtk2.4/glib-2.4.7.zip @$(SH) win32-setup.sh --unpack glib gtk2.4/glib-dev-2.4.7.zip !ELSE @$(SH) win32-setup.sh --unpack glib glib-2.2.3-20040116.zip @$(SH) win32-setup.sh --unpack glib glib-dev-2.2.3-20040116.zip !ENDIF !IFDEF GTK1_DIR @$(SH) win32-setup.sh --unpack gtk+ gtk+-1.3.0-20030717.zip @$(SH) win32-setup.sh --unpack gtk+ gtk+-dev-1.3.0-20030115.zip !ENDIF @$(SH) win32-setup.sh --unpack libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip @$(SH) win32-setup.sh --unpack gettext-runtime-0.13.1 gettext-runtime-0.13.1.zip !IFDEF NET_SNMP_DIR @$(SH) win32-setup.sh --unpack . net-snmp-5.1.2.zip !ENDIF !IFDEF PCAP_DIR @$(SH) win32-setup.sh --unpack . wpdpack_3_0.zip !ENDIF !IFDEF ADNS_DIR @$(SH) win32-setup.sh --unpack . adns-1.0-win32-04.zip !ENDIF !IFDEF PCRE_DIR @$(SH) win32-setup.sh --unpack . pcre-4.4.zip !ENDIF !IFDEF ZLIB_DIR @$(SH) win32-setup.sh --unpack zlib121-dll zlib121-dll.zip !ENDIF !IFDEF GTK2_DIR !IF "$(GTK2_INST_VERSION)" == "2.4" @$(SH) win32-setup.sh --unpack gtk2 gtk2.4/gtk+-2.4.10-20041001.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2.4/gtk+-dev-2.4.10.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2.4/atk-1.6.0.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2.4/atk-dev-1.6.0.zip !ELSE @$(SH) win32-setup.sh --unpack gtk2 gtk2/gtk+-2.2.4-20040124.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2/atk-1.4.0.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2/atk-dev-1.4.0.zip !ENDIF !IF "$(PANGO_INST_VERSION)" == "1.4" @$(SH) win32-setup.sh --unpack gtk2 gtk2.4/pango-1.4.1.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2.4/pango-dev-1.4.1.zip !ELSE @$(SH) win32-setup.sh --unpack gtk2 gtk2/pango-1.2.5-20040124.zip @$(SH) win32-setup.sh --unpack gtk2 gtk2/pango-dev-1.2.5-20040124.zip !ENDIF !ENDIF !IFDEF GTK_WIMP_DIR @$(SH) win32-setup.sh --unpack gtk-wimp gtk-wimp/gtk-wimp-0.6.2-bin.zip !ENDIF @echo. @echo Ethereal is ready to build. # Cleanup files installed by the setup target. It will not remove the # SVN package files. clean: rm -r -f glib rm -r -f $(ADNS_DIR) rm -r -f $(GETTEXT_DIR) rm -r -f $(GTK1_DIR) rm -r -f $(GTK_WIMP_DIR) rm -r -f $(GTK2_DIR) rm -r -f $(ICONV_DIR) rm -r -f $(NET_SNMP_DIR) rm -r -f $(PCRE_DIR) rm -r -f $(PCAP_DIR) rm -r -f $(ZLIB_DIR)