Mercurial > pidgin
comparison libgaim/win32/global.mak @ 14315:8793fc8f7064
[gaim-migrate @ 17008]
Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving.
This makes life a great deal easier for anyone who wants to build out-of-tree plugins.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 21:34:43 +0000 |
parents | ab8a105eff62 |
children | e88aae4f4c40 |
comparison
equal
deleted
inserted
replaced
14314:8b8188fa98f4 | 14315:8793fc8f7064 |
---|---|
1 # | 1 # |
2 # global.mak | 2 # global.mak |
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. | 5 # wide definitions (after correctly defining GAIM_TOP). |
6 # | 6 # |
7 | 7 |
8 CC = gcc.exe | 8 # Locations of our various dependencies |
9 WIN32_DEV_TOP := $(GAIM_TOP)/../win32-dev | |
10 ASPELL_TOP := $(WIN32_DEV_TOP)/aspell-dev-0-50-3-3 | |
11 GTKSPELL_TOP := $(WIN32_DEV_TOP)/gtkspell-2.0.6 | |
12 GTK_TOP := $(WIN32_DEV_TOP)/gtk_2_0 | |
13 GTK_BIN := $(GTK_TOP)/bin | |
14 HOWL_TOP := $(WIN32_DEV_TOP)/howl-1.0.0 | |
15 LIBXML2_TOP := $(WIN32_DEV_TOP)/libxml2 | |
16 MEANWHILE_TOP := $(WIN32_DEV_TOP)/meanwhile-1.0.2 | |
17 NSPR_TOP := $(WIN32_DEV_TOP)/nspr-4.4.1 | |
18 NSS_TOP := $(WIN32_DEV_TOP)/nss-3.9 | |
19 PERL_LIB_TOP := $(WIN32_DEV_TOP)/perl58 | |
20 SILC_TOOLKIT := $(WIN32_DEV_TOP)/silc-toolkit-1.0.2 | |
21 TCL_LIB_TOP := $(WIN32_DEV_TOP)/tcl-8.4.5 | |
22 | |
23 # Where we installing this stuff to? | |
24 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
25 GAIM_INSTALL_PERLMOD_DIR := $(GAIM_INSTALL_DIR)/perlmod | |
26 GAIM_INSTALL_PIXMAPS_DIR := $(GAIM_INSTALL_DIR)/pixmaps | |
27 GAIM_INSTALL_PLUGINS_DIR := $(GAIM_INSTALL_DIR)/plugins | |
28 GAIM_INSTALL_PO_DIR := $(GAIM_INSTALL_DIR)/locale | |
29 GAIM_INSTALL_SOUNDS_DIR := $(GAIM_INSTALL_DIR)/sounds | |
30 | |
31 # Important (enough) locations in our source code | |
32 GAIM_LIB_TOP := $(GAIM_TOP)/libgaim | |
33 GAIM_LIB_PLUGINS_TOP := $(GAIM_LIB_TOP)/plugins | |
34 GAIM_GTK_TOP := $(GAIM_TOP)/gtk | |
35 GAIM_GTK_IDLETRACK_TOP := $(GAIM_GTK_TOP)/win32/IdleTracker | |
36 GAIM_GTK_PIXMAPS_TOP := $(GAIM_GTK_TOP)/pixmaps | |
37 GAIM_GTK_PLUGINS_TOP := $(GAIM_GTK_TOP)/plugins | |
38 GAIM_GTK_SOUNDS_TOP := $(GAIM_GTK_TOP)/sounds | |
39 GAIM_PO_TOP := $(GAIM_TOP)/po | |
40 GAIM_PROTOS_TOP := $(GAIM_LIB_TOP)/protocols | |
41 | |
42 # Locations of important (in-tree) build targets | |
43 GAIM_CONFIG_H := $(GAIM_TOP)/config.h | |
44 GAIM_IDLETRACK_DLL := $(GAIM_GTK_IDLETRACK_TOP)/idletrack.dll | |
45 GAIM_LIBGAIM_DLL := $(GAIM_LIB_TOP)/libgaim.dll | |
46 GAIM_GTKGAIM_DLL := $(GAIM_GTK_TOP)/gtkgaim.dll | |
47 GAIM_EXE := $(GAIM_GTK_TOP)/gaim.exe | |
48 GAIM_PORTABLE_EXE := $(GAIM_GTK_TOP)/gaim-portable.exe | |
9 | 49 |
10 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 | 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 |
51 GAIM_VERSION := $(shell cat $(GAIM_TOP)/VERSION) | |
52 DEFINES += -DVERSION=\"$(GAIM_VERSION)\" \ | |
53 -DHAVE_CONFIG_H | |
11 | 54 |
12 # Use -g flag when building debug version of Gaim (including plugins). | 55 # Use -g flag when building debug version of Gaim (including plugins). |
13 # Use -fnative-struct instead of -mms-bitfields when using mingw 1.1 | 56 # Use -fnative-struct instead of -mms-bitfields when using mingw 1.1 |
14 # (gcc 2.95) | 57 # (gcc 2.95) |
15 CFLAGS += -O2 -Wall $(GCCWARNINGS) -pipe -mno-cygwin -mms-bitfields -g | 58 CFLAGS += -O2 -Wall $(GCCWARNINGS) -pipe -mno-cygwin -mms-bitfields -g |
16 | |
17 | 59 |
18 # If not specified, dlls are built with the default base address of 0x10000000. | 60 # If not specified, dlls are built with the default base address of 0x10000000. |
19 # When loaded into a process address space a dll will be rebased if its base | 61 # When loaded into a process address space a dll will be rebased if its base |
20 # address colides with the base address of an existing dll. To avoid rebasing | 62 # address colides with the base address of an existing dll. To avoid rebasing |
21 # we do the following. Rebasing can slow down the load time of dlls and it | 63 # we do the following. Rebasing can slow down the load time of dlls and it |
22 # also renders debug info useless. | 64 # also renders debug info useless. |
23 DLL_LD_FLAGS += -Wl,--enable-auto-image-base | 65 DLL_LD_FLAGS += -Wl,--enable-auto-image-base |
24 | 66 |
25 VERSION := $(shell cat $(GAIM_TOP)/VERSION) | 67 # Build programs |
68 CC := gcc.exe | |
69 GMSGFMT := $(GTK_BIN)/msgfmt | |
70 MAKENSIS := makensis.exe | |
71 PERL := /cygdrive/c/perl/bin/perl | |
72 WINDRES := windres | |
26 | 73 |
27 DEFINES += -DVERSION=\"$(VERSION)\" \ | 74 GAIM_COMMON_RULES := $(GAIM_LIB_TOP)/win32/rules.mak |
28 -DHAVE_CONFIG_H | 75 GAIM_COMMON_TARGETS := $(GAIM_LIB_TOP)/win32/targets.mak |
76 GAIM_WIN32_MAKEFILE := Makefile.mingw |