Mon, 04 Sep 2006 23:00:13 +0000
[gaim-migrate @ 17161]
Make the Perl GTK+ stuff work in wingaim.
| 3711 | 1 | # |
| 2 | # global.mak | |
| 3 | # | |
| 4 | # This file should be included by all Makefile.mingw files for project | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
5 | # wide definitions (after correctly defining GAIM_TOP). |
| 3711 | 6 | # |
| 7 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
8 | # Locations of our various dependencies |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
9 | WIN32_DEV_TOP := $(GAIM_TOP)/../win32-dev |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
10 | ASPELL_TOP := $(WIN32_DEV_TOP)/aspell-dev-0-50-3-3 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
11 | GTKSPELL_TOP := $(WIN32_DEV_TOP)/gtkspell-2.0.6 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
12 | GTK_TOP := $(WIN32_DEV_TOP)/gtk_2_0 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
13 | GTK_BIN := $(GTK_TOP)/bin |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
14 | HOWL_TOP := $(WIN32_DEV_TOP)/howl-1.0.0 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
15 | LIBXML2_TOP := $(WIN32_DEV_TOP)/libxml2 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
16 | MEANWHILE_TOP := $(WIN32_DEV_TOP)/meanwhile-1.0.2 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
17 | NSPR_TOP := $(WIN32_DEV_TOP)/nspr-4.4.1 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
18 | NSS_TOP := $(WIN32_DEV_TOP)/nss-3.9 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
19 | PERL_LIB_TOP := $(WIN32_DEV_TOP)/perl58 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
20 | SILC_TOOLKIT := $(WIN32_DEV_TOP)/silc-toolkit-1.0.2 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
21 | TCL_LIB_TOP := $(WIN32_DEV_TOP)/tcl-8.4.5 |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
22 | |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
23 | # Where we installing this stuff to? |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
24 | GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
25 | GAIM_INSTALL_PERLMOD_DIR := $(GAIM_INSTALL_DIR)/perlmod |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
26 | GAIM_INSTALL_PIXMAPS_DIR := $(GAIM_INSTALL_DIR)/pixmaps |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
27 | GAIM_INSTALL_PLUGINS_DIR := $(GAIM_INSTALL_DIR)/plugins |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
28 | GAIM_INSTALL_PO_DIR := $(GAIM_INSTALL_DIR)/locale |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
29 | GAIM_INSTALL_SOUNDS_DIR := $(GAIM_INSTALL_DIR)/sounds |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
30 | |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
31 | # Important (enough) locations in our source code |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
32 | GAIM_LIB_TOP := $(GAIM_TOP)/libgaim |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
33 | GAIM_LIB_PLUGINS_TOP := $(GAIM_LIB_TOP)/plugins |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
34 | GAIM_LIB_PERL_TOP := $(GAIM_LIB_PLUGINS_TOP)/perl |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
35 | GAIM_GTK_TOP := $(GAIM_TOP)/gtk |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
36 | GAIM_GTK_IDLETRACK_TOP := $(GAIM_GTK_TOP)/win32/IdleTracker |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
37 | GAIM_GTK_PIXMAPS_TOP := $(GAIM_GTK_TOP)/pixmaps |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
38 | GAIM_GTK_PLUGINS_TOP := $(GAIM_GTK_TOP)/plugins |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
39 | GAIM_GTK_SOUNDS_TOP := $(GAIM_GTK_TOP)/sounds |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
40 | GAIM_PO_TOP := $(GAIM_TOP)/po |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
41 | GAIM_PROTOS_TOP := $(GAIM_LIB_TOP)/protocols |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
42 | |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
43 | # Locations of important (in-tree) build targets |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
44 | GAIM_CONFIG_H := $(GAIM_TOP)/config.h |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
45 | GAIM_IDLETRACK_DLL := $(GAIM_GTK_IDLETRACK_TOP)/idletrack.dll |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
46 | GAIM_LIBGAIM_DLL := $(GAIM_LIB_TOP)/libgaim.dll |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
47 | GAIM_LIBGAIM_PERL_DLL := $(GAIM_LIB_PERL_TOP)/perl.dll |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
48 | GAIM_GTKGAIM_DLL := $(GAIM_GTK_TOP)/gtkgaim.dll |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
49 | GAIM_EXE := $(GAIM_GTK_TOP)/gaim.exe |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
50 | GAIM_PORTABLE_EXE := $(GAIM_GTK_TOP)/gaim-portable.exe |
| 3711 | 51 | |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14253
diff
changeset
|
52 | 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 |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
53 | GAIM_VERSION := $(shell cat $(GAIM_TOP)/VERSION) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
54 | DEFINES += -DVERSION=\"$(GAIM_VERSION)\" \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
55 | -DHAVE_CONFIG_H |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14253
diff
changeset
|
56 | |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
57 | # Use -g flag when building debug version of Gaim (including plugins). |
|
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
58 | # Use -fnative-struct instead of -mms-bitfields when using mingw 1.1 |
|
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
59 | # (gcc 2.95) |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14253
diff
changeset
|
60 | CFLAGS += -O2 -Wall $(GCCWARNINGS) -pipe -mno-cygwin -mms-bitfields -g |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14253
diff
changeset
|
61 | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
62 | # If not specified, dlls are built with the default base address of 0x10000000. |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
63 | # When loaded into a process address space a dll will be rebased if its base |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
64 | # address colides with the base address of an existing dll. To avoid rebasing |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
65 | # we do the following. Rebasing can slow down the load time of dlls and it |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
66 | # also renders debug info useless. |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
67 | DLL_LD_FLAGS += -Wl,--enable-auto-image-base |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4860
diff
changeset
|
68 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
69 | # Build programs |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
70 | CC := gcc.exe |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
71 | GMSGFMT := $(GTK_BIN)/msgfmt |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
72 | MAKENSIS := makensis.exe |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
73 | PERL := /cygdrive/c/perl/bin/perl |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
74 | WINDRES := windres |
| 3711 | 75 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
76 | GAIM_COMMON_RULES := $(GAIM_LIB_TOP)/win32/rules.mak |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
77 | GAIM_COMMON_TARGETS := $(GAIM_LIB_TOP)/win32/targets.mak |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
78 | GAIM_WIN32_MAKEFILE := Makefile.mingw |