comparison libpurple/win32/global.mak @ 15456:f217a2d656c8

Add support for win32 makefile variable overriding using a "local.mak" file in the build root directory. This makes maintaining a custom build environment or cross-compiling easier.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 29 Jan 2007 01:05:34 +0000
parents 0e17470b47c2
children 015ad1283216
comparison
equal deleted inserted replaced
15455:79f25bbe69bf 15456:f217a2d656c8
3 # 3 #
4 # This file should be included by all Makefile.mingw files for project 4 # This file should be included by all Makefile.mingw files for project
5 # wide definitions (after correctly defining GAIM_TOP). 5 # wide definitions (after correctly defining GAIM_TOP).
6 # 6 #
7 7
8 #include optional $(GAIM_TOP)/local.mak to allow overriding of any definitions
9 -include $(GAIM_TOP)/local.mak
10
8 # Locations of our various dependencies 11 # Locations of our various dependencies
9 WIN32_DEV_TOP := $(GAIM_TOP)/../win32-dev 12 WIN32_DEV_TOP ?= $(GAIM_TOP)/../win32-dev
10 ASPELL_TOP := $(WIN32_DEV_TOP)/aspell-dev-0-50-3-3 13 ASPELL_TOP ?= $(WIN32_DEV_TOP)/aspell-dev-0-50-3-3
11 GTKSPELL_TOP := $(WIN32_DEV_TOP)/gtkspell-2.0.6 14 GTKSPELL_TOP ?= $(WIN32_DEV_TOP)/gtkspell-2.0.6
12 GTK_TOP := $(WIN32_DEV_TOP)/gtk_2_0 15 GTK_TOP ?= $(WIN32_DEV_TOP)/gtk_2_0
13 GTK_BIN := $(GTK_TOP)/bin 16 GTK_BIN ?= $(GTK_TOP)/bin
14 HOWL_TOP := $(WIN32_DEV_TOP)/howl-1.0.0 17 HOWL_TOP ?= $(WIN32_DEV_TOP)/howl-1.0.0
15 LIBXML2_TOP := $(WIN32_DEV_TOP)/libxml2 18 LIBXML2_TOP ?= $(WIN32_DEV_TOP)/libxml2
16 MEANWHILE_TOP := $(WIN32_DEV_TOP)/meanwhile-1.0.2 19 MEANWHILE_TOP ?= $(WIN32_DEV_TOP)/meanwhile-1.0.2
17 NSPR_TOP := $(WIN32_DEV_TOP)/nspr-4.6.4 20 NSPR_TOP ?= $(WIN32_DEV_TOP)/nspr-4.6.4
18 NSS_TOP := $(WIN32_DEV_TOP)/nss-3.11.4 21 NSS_TOP ?= $(WIN32_DEV_TOP)/nss-3.11.4
19 PERL_LIB_TOP := $(WIN32_DEV_TOP)/perl58 22 PERL_LIB_TOP ?= $(WIN32_DEV_TOP)/perl58
20 SILC_TOOLKIT := $(WIN32_DEV_TOP)/silc-toolkit-1.0.2 23 SILC_TOOLKIT ?= $(WIN32_DEV_TOP)/silc-toolkit-1.0.2
21 TCL_LIB_TOP := $(WIN32_DEV_TOP)/tcl-8.4.5 24 TCL_LIB_TOP ?= $(WIN32_DEV_TOP)/tcl-8.4.5
22 25
23 # Where we installing this stuff to? 26 # Where we installing this stuff to?
24 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir 27 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
25 GAIM_INSTALL_PERLMOD_DIR := $(GAIM_INSTALL_DIR)/perlmod 28 GAIM_INSTALL_PERLMOD_DIR := $(GAIM_INSTALL_DIR)/perlmod
26 GAIM_INSTALL_PLUGINS_DIR := $(GAIM_INSTALL_DIR)/plugins 29 GAIM_INSTALL_PLUGINS_DIR := $(GAIM_INSTALL_DIR)/plugins
42 GAIM_CONFIG_H := $(GAIM_TOP)/config.h 45 GAIM_CONFIG_H := $(GAIM_TOP)/config.h
43 GAIM_IDLETRACK_DLL := $(GAIM_GTK_IDLETRACK_TOP)/idletrack.dll 46 GAIM_IDLETRACK_DLL := $(GAIM_GTK_IDLETRACK_TOP)/idletrack.dll
44 GAIM_LIBGAIM_DLL := $(GAIM_LIB_TOP)/libpurple.dll 47 GAIM_LIBGAIM_DLL := $(GAIM_LIB_TOP)/libpurple.dll
45 GAIM_LIBGAIM_PERL_DLL := $(GAIM_LIB_PERL_TOP)/perl.dll 48 GAIM_LIBGAIM_PERL_DLL := $(GAIM_LIB_PERL_TOP)/perl.dll
46 GAIM_GTKGAIM_DLL := $(GAIM_GTK_TOP)/pidgin.dll 49 GAIM_GTKGAIM_DLL := $(GAIM_GTK_TOP)/pidgin.dll
47 GAIM_EXE := $(GAIM_GTK_TOP)/gaim.exe 50 GAIM_EXE := $(GAIM_GTK_TOP)/pidgin.exe
48 GAIM_PORTABLE_EXE := $(GAIM_GTK_TOP)/gaim-portable.exe 51 GAIM_PORTABLE_EXE := $(GAIM_GTK_TOP)/pidgin-portable.exe
49 52
50 GCCWARNINGS := -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 53 GCCWARNINGS := -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
51 54
52 # parse the version number from the configure.ac file if it is newer 55 # parse the version number from the configure.ac file if it is newer
53 #AC_INIT([gaim], [2.0.0dev], [gaim-devel@lists.sourceforge.net]) 56 #AC_INIT([gaim], [2.0.0dev], [gaim-devel@lists.sourceforge.net])
73 # we do the following. Rebasing can slow down the load time of dlls and it 76 # we do the following. Rebasing can slow down the load time of dlls and it
74 # also renders debug info useless. 77 # also renders debug info useless.
75 DLL_LD_FLAGS += -Wl,--enable-auto-image-base 78 DLL_LD_FLAGS += -Wl,--enable-auto-image-base
76 79
77 # Build programs 80 # Build programs
78 CC := gcc.exe 81 ifeq "$(origin CC)" "default"
79 GMSGFMT := $(GTK_BIN)/msgfmt 82 CC := gcc.exe
80 MAKENSIS := makensis.exe 83 endif
81 PERL := /cygdrive/c/perl/bin/perl 84 GMSGFMT ?= $(GTK_BIN)/msgfmt
82 WINDRES := windres 85 MAKENSIS ?= makensis.exe
86 PERL ?= /cygdrive/c/perl/bin/perl
87 WINDRES ?= windres
83 88
84 GAIM_COMMON_RULES := $(GAIM_LIB_TOP)/win32/rules.mak 89 GAIM_COMMON_RULES := $(GAIM_LIB_TOP)/win32/rules.mak
85 GAIM_COMMON_TARGETS := $(GAIM_LIB_TOP)/win32/targets.mak 90 GAIM_COMMON_TARGETS := $(GAIM_LIB_TOP)/win32/targets.mak
86 GAIM_WIN32_MAKEFILE := Makefile.mingw 91 GAIM_WIN32_MAKEFILE := Makefile.mingw