## global.mak## This file should be included by all Makefile.mingw files for project# wide definitions (after correctly defining PIDGIN_TREE_TOP).##include optional $(PIDGIN_TREE_TOP)/local.mak to allow overriding of any definitions-include $(PIDGIN_TREE_TOP)/local.mak# Locations of our various dependenciesWIN32_DEV_TOP ?= $(PIDGIN_TREE_TOP)/../win32-devASPELL_TOP ?= $(WIN32_DEV_TOP)/aspell-dev-0-50-3-3GTKSPELL_TOP ?= $(WIN32_DEV_TOP)/gtkspell-2.0.11-daa1GTK_TOP ?= $(WIN32_DEV_TOP)/gtk_2_0GTK_BIN ?= $(GTK_TOP)/binBONJOUR_TOP ?= $(WIN32_DEV_TOP)/Bonjour_SDKLIBXML2_TOP ?= $(WIN32_DEV_TOP)/libxml2-2.6.30MEANWHILE_TOP ?= $(WIN32_DEV_TOP)/meanwhile-1.0.2_daa1NSPR_TOP ?= $(WIN32_DEV_TOP)/nspr-4.6.4NSS_TOP ?= $(WIN32_DEV_TOP)/nss-3.11.4PERL_LIB_TOP ?= $(WIN32_DEV_TOP)/perl58SILC_TOOLKIT ?= $(WIN32_DEV_TOP)/silc-toolkit-1.1.5TCL_LIB_TOP ?= $(WIN32_DEV_TOP)/tcl-8.4.5GSTREAMER_TOP ?= $(WIN32_DEV_TOP)/gstreamer-0.10.13# Where we installing this stuff to?PIDGIN_INSTALL_DIR := $(PIDGIN_TREE_TOP)/win32-install-dirPURPLE_INSTALL_DIR := $(PIDGIN_TREE_TOP)/win32-install-dirPIDGIN_INSTALL_PERLMOD_DIR := $(PIDGIN_INSTALL_DIR)/perlmodPIDGIN_INSTALL_PLUGINS_DIR := $(PIDGIN_INSTALL_DIR)/pluginsPURPLE_INSTALL_PERLMOD_DIR := $(PURPLE_INSTALL_DIR)/perlmodPURPLE_INSTALL_PLUGINS_DIR := $(PURPLE_INSTALL_DIR)/pluginsPURPLE_INSTALL_PO_DIR := $(PURPLE_INSTALL_DIR)/locale# Important (enough) locations in our source codePURPLE_TOP := $(PIDGIN_TREE_TOP)/libpurplePURPLE_PLUGINS_TOP := $(PURPLE_TOP)/pluginsPURPLE_PERL_TOP := $(PURPLE_PLUGINS_TOP)/perlPIDGIN_TOP := $(PIDGIN_TREE_TOP)/pidginPIDGIN_IDLETRACK_TOP := $(PIDGIN_TOP)/win32/IdleTrackerPIDGIN_PIXMAPS_TOP := $(PIDGIN_TOP)/pixmapsPIDGIN_PLUGINS_TOP := $(PIDGIN_TOP)/pluginsPURPLE_PO_TOP := $(PIDGIN_TREE_TOP)/poPURPLE_PROTOS_TOP := $(PURPLE_TOP)/protocols# Locations of important (in-tree) build targetsPIDGIN_CONFIG_H := $(PIDGIN_TREE_TOP)/config.hPURPLE_CONFIG_H := $(PIDGIN_TREE_TOP)/config.hPIDGIN_IDLETRACK_DLL := $(PIDGIN_IDLETRACK_TOP)/idletrack.dllPURPLE_PURPLE_H := $(PURPLE_TOP)/purple.hPURPLE_VERSION_H := $(PURPLE_TOP)/version.hPURPLE_DLL := $(PURPLE_TOP)/libpurple.dllPURPLE_PERL_DLL := $(PURPLE_PERL_TOP)/perl.dllPIDGIN_DLL := $(PIDGIN_TOP)/pidgin.dllPIDGIN_EXE := $(PIDGIN_TOP)/pidgin.exePIDGIN_PORTABLE_EXE := $(PIDGIN_TOP)/pidgin-portable.exeGCCWARNINGS := -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef# parse the version number from the configure.ac file if it is newer#m4_define([purple_major_version], [2])#m4_define([purple_minor_version], [0])#m4_define([purple_micro_version], [0])#m4_define([purple_version_suffix], [devel])PIDGIN_VERSION := $(shell \ if [ ! $(PIDGIN_TREE_TOP)/VERSION -nt $(PIDGIN_TREE_TOP)/configure.ac ]; then \ awk 'BEGIN {FS="[\\(\\)\\[\\]]"} /^m4_define..purple_(major|minor)_version/ {printf("%s.",$$5);} /^m4_define..purple_micro_version/ {printf("%s",$$5);} /^m4_define..purple_version_suffix/ {printf("%s",$$5); exit}' \ $(PIDGIN_TREE_TOP)/configure.ac > $(PIDGIN_TREE_TOP)/VERSION; \ fi; \ cat $(PIDGIN_TREE_TOP)/VERSION \)PURPLE_VERSION := $(PIDGIN_VERSION)ifdef EXTRAVERSIONDISPLAY_VERSION := $(PIDGIN_VERSION)-$(EXTRAVERSION)elseDISPLAY_VERSION := $(PIDGIN_VERSION)endifCYRUS_SASL ?= 1ifeq ($(CYRUS_SASL), 1)DEFINES += -DHAVE_CYRUS_SASLendifDEFINES += -DHAVE_CONFIG_H# Use -g flag when building debug version of Pidgin (including plugins).# Use -fnative-struct instead of -mms-bitfields when using mingw 1.1# (gcc 2.95)CFLAGS += -O2 -Wall $(GCCWARNINGS) -pipe -mno-cygwin -mms-bitfields -g# If not specified, dlls are built with the default base address of 0x10000000.# When loaded into a process address space a dll will be rebased if its base# address colides with the base address of an existing dll. To avoid rebasing # we do the following. Rebasing can slow down the load time of dlls and it# also renders debug info useless.DLL_LD_FLAGS += -Wl,--enable-auto-image-base# Build programsifeq "$(origin CC)" "default" CC := gcc.exeendifGMSGFMT ?= $(GTK_BIN)/msgfmtMAKENSIS ?= makensis.exePERL ?= /cygdrive/c/perl/bin/perlWINDRES ?= windresSTRIP ?= stripPIDGIN_COMMON_RULES := $(PURPLE_TOP)/win32/rules.makPIDGIN_COMMON_TARGETS := $(PURPLE_TOP)/win32/targets.makMINGW_MAKEFILE := Makefile.mingwINSTALL_PIXMAPS ?= 1INSTALL_SSL_CERTIFICATES ?= 1