forked from gcompris/GCompris-gtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_win32.mak
67 lines (58 loc) · 1.85 KB
/
global_win32.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# global.mak
#
# This file should be included by all Makefile.mingw files for project
# wide definitions.
#
OS:=$(OS)
ifeq ($(OS),)
CROSSCOMPILER=i586-mingw32msvc-
else
CROSSCOMPILER=
endif
CC = $(CROSSCOMPILER)gcc
AR = $(CROSSCOMPILER)ar
RANLIB = $(CROSSCOMPILER)ranlib
WINDRES = $(CROSSCOMPILER)windres
ifneq ($(CROSSCOMPILER),)
GLIB_GENMARSHAL := glib-genmarshal
else
GLIB_GENMARSHAL := $(GTK_TOP)/bin/glib-genmarshal.exe
endif
# Use -g flag when building debug version of Gcompris (including plugins).
# Use -fnative-struct instead of -mms-bitfields when using mingw 1.1
# (gcc 2.95)
CFLAGS += -O2 -Wall -mno-cygwin -mms-bitfields
LDFLAGS = -Wl,--subsystem,windows
# 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
DEFINES += -DHAVE_CONFIG_H
ifneq ($(CROSSCOMPILER),)
# CROSS COMPILATION
LOCAL_PREFIX:=/home/bdoin/Projets/gcompris/windows
MAKENSIS:=makensis
else
# MSYS CASE
LOCAL_PREFIX:=/X
MAKENSIS:="/c/Program Files/NSIS/makensis.exe"
endif
GTK_TOP := $(LOCAL_PREFIX)/gtk
GLIB_TOP := $(LOCAL_PREFIX)/gtk
CAIRO_TOP := $(LOCAL_PREFIX)/gtk
RSVG_TOP := $(LOCAL_PREFIX)/gtk
CROCO_TOP := $(LOCAL_PREFIX)/gtk
GSF_TOP := $(LOCAL_PREFIX)/gtk
LIBXML2_TOP := $(LOCAL_PREFIX)/libxml2
SDL_TOP := $(LOCAL_PREFIX)/sdl
SDLMIXER_TOP := $(LOCAL_PREFIX)/sdl_mixer
GNUCHESS_TOP := $(LOCAL_PREFIX)/gnuchess
PYTHON_TOP := $(LOCAL_PREFIX)/Python27
GNUCAP_TOP := $(LOCAL_PREFIX)/gnucap
SQLITE_TOP := $(LOCAL_PREFIX)/sqlite
FONTCONFIG_TOP := $(LOCAL_PREFIX)/gtk
ICONV_TOP := $(LOCAL_PREFIX)/iconv
FREETYPE_TOP := $(LOCAL_PREFIX)/gtk