comparison libpurple/win32/global.mak @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 0e17470b47c2
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 #
2 # global.mak
3 #
4 # This file should be included by all Makefile.mingw files for project
5 # wide definitions (after correctly defining GAIM_TOP).
6 #
7
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.6.4
18 NSS_TOP := $(WIN32_DEV_TOP)/nss-3.11.4
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_PLUGINS_DIR := $(GAIM_INSTALL_DIR)/plugins
27 GAIM_INSTALL_PO_DIR := $(GAIM_INSTALL_DIR)/locale
28
29 # Important (enough) locations in our source code
30 GAIM_LIB_TOP := $(GAIM_TOP)/libgaim
31 GAIM_LIB_PLUGINS_TOP := $(GAIM_LIB_TOP)/plugins
32 GAIM_LIB_PERL_TOP := $(GAIM_LIB_PLUGINS_TOP)/perl
33 GAIM_GTK_TOP := $(GAIM_TOP)/gtk
34 GAIM_GTK_IDLETRACK_TOP := $(GAIM_GTK_TOP)/win32/IdleTracker
35 GAIM_GTK_PIXMAPS_TOP := $(GAIM_GTK_TOP)/pixmaps
36 GAIM_GTK_PLUGINS_TOP := $(GAIM_GTK_TOP)/plugins
37 GAIM_GTK_SOUNDS_TOP := $(GAIM_GTK_TOP)/sounds
38 GAIM_PO_TOP := $(GAIM_TOP)/po
39 GAIM_PROTOS_TOP := $(GAIM_LIB_TOP)/protocols
40
41 # Locations of important (in-tree) build targets
42 GAIM_CONFIG_H := $(GAIM_TOP)/config.h
43 GAIM_IDLETRACK_DLL := $(GAIM_GTK_IDLETRACK_TOP)/idletrack.dll
44 GAIM_LIBGAIM_DLL := $(GAIM_LIB_TOP)/libgaim.dll
45 GAIM_LIBGAIM_PERL_DLL := $(GAIM_LIB_PERL_TOP)/perl.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
49
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
52 # 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])
54 GAIM_VERSION := $(shell \
55 if [ ! $(GAIM_TOP)/VERSION -nt $(GAIM_TOP)/configure.ac ]; then \
56 awk 'BEGIN {FS="\\] *, *\\["} /^AC_INIT\(.+\)/ {printf("%s",$$2); exit}' \
57 $(GAIM_TOP)/configure.ac > $(GAIM_TOP)/VERSION; \
58 fi; \
59 cat $(GAIM_TOP)/VERSION \
60 )
61
62 DEFINES += -DVERSION=\"$(GAIM_VERSION)\" \
63 -DHAVE_CONFIG_H
64
65 # Use -g flag when building debug version of Gaim (including plugins).
66 # Use -fnative-struct instead of -mms-bitfields when using mingw 1.1
67 # (gcc 2.95)
68 CFLAGS += -O2 -Wall $(GCCWARNINGS) -pipe -mno-cygwin -mms-bitfields -g
69
70 # If not specified, dlls are built with the default base address of 0x10000000.
71 # When loaded into a process address space a dll will be rebased if its base
72 # address colides with the base address of an existing dll. To avoid rebasing
73 # we do the following. Rebasing can slow down the load time of dlls and it
74 # also renders debug info useless.
75 DLL_LD_FLAGS += -Wl,--enable-auto-image-base
76
77 # Build programs
78 CC := gcc.exe
79 GMSGFMT := $(GTK_BIN)/msgfmt
80 MAKENSIS := makensis.exe
81 PERL := /cygdrive/c/perl/bin/perl
82 WINDRES := windres
83
84 GAIM_COMMON_RULES := $(GAIM_LIB_TOP)/win32/rules.mak
85 GAIM_COMMON_TARGETS := $(GAIM_LIB_TOP)/win32/targets.mak
86 GAIM_WIN32_MAKEFILE := Makefile.mingw