~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to Makefile.mingw.common

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
###########################################################################
2
 
# $Id: Makefile.mingw.common 13057 2006-09-07 07:28:39Z bryce $
3
 
# File: Makefile.mingw.common
4
 
# Does: Common definitions for all Makefile.mingw files
5
 
# Author: Bob Jamison & the Inkscape Guys
6
 
###########################################################################
7
 
 
8
 
####### Sense whether we are on a DOS box or cross-compiling
9
 
ifdef ComSpec
10
 
BUILD=native
11
 
DOSSHELL=CMD_EXE
12
 
else
13
 
ifdef COMSPEC
14
 
BUILD=native
15
 
DOSSHELL=COMMAND_COM
16
 
else
17
 
BUILD=cross
18
 
endif
19
 
endif
20
 
 
21
 
 
22
 
 
23
 
 
24
 
##########################################################################
25
 
# FILE SEPARATORS
26
 
# $(S) will be set to one of these
27
 
##########################################################################
28
 
BSLASH := \\#
29
 
FSLASH := /
30
 
 
31
 
 
32
 
 
33
 
##########################################################################
34
 
# CROSS / NATIVE    SWITCHES
35
 
##########################################################################
36
 
ifeq ($(BUILD),cross)
37
 
 
38
 
 
39
 
 
40
 
##########################################################################
41
 
# CROSS COMPILER SETTINGS
42
 
##########################################################################
43
 
 
44
 
CC      = i686-pc-mingw32-gcc
45
 
CXX     = i686-pc-mingw32-g++
46
 
AS      = i686-pc-mingw32-as
47
 
AR      = i686-pc-mingw32-ar
48
 
OBJCOPY = i686-pc-mingw32-objcopy
49
 
RANLIB  = i686-pc-mingw32-ranlib
50
 
WINDRES = i686-pc-mingw32-windres
51
 
LD      = i686-pc-mingw32-ld
52
 
DLLWRAP = i686-pc-mingw32-dllwrap
53
 
DLLTOOL = i686-pc-mingw32-dlltool
54
 
 
55
 
####### file separator
56
 
S = $(FSLASH)
57
 
 
58
 
####### escape character for echo
59
 
E = /
60
 
 
61
 
####### file manipulation programs
62
 
CP     = cp
63
 
RMDIR  = rm -rf 
64
 
MKDIR  = mkdir
65
 
CPDIR  = cp -rf 
66
 
MSGFMT = msgfmt
67
 
RMREC  = find ./inkscape -type f -name 
68
 
RMREC1 = |xargs $(RM)
69
 
RMDIRREC = find ./inkscape -type d -name
70
 
RMDIRREC1 = |xargs $(RMDIR)
71
 
 
72
 
####### Where is your GTK directory?
73
 
GTK=/target
74
 
 
75
 
####### Same thing, file system style
76
 
GTKDOS=$(GTK)
77
 
 
78
 
DTG := $(shell date +%y%m%d.%H%M)
79
 
 
80
 
else
81
 
 
82
 
##########################################################################
83
 
# NATIVE COMPILER SETTINGS
84
 
##########################################################################
85
 
 
86
 
CC      = mingw32-gcc
87
 
CXX     = mingw32-g++
88
 
AS      = as
89
 
AR      = mingw32-ar
90
 
OBJCOPY = objcopy
91
 
RANLIB  = ranlib
92
 
WINDRES = windres
93
 
DLLWRAP = dllwrap
94
 
DLLTOOL = dlltool
95
 
 
96
 
####### file separator
97
 
S = $(BSLASH)
98
 
 
99
 
####### escape character for echo
100
 
E = 
101
 
 
102
 
####### file manipulation programs
103
 
CP = copy
104
 
 
105
 
####### are we on WinNt and beyond?
106
 
ifeq ($(DOSSHELL),CMD_EXE)
107
 
RMDIR = rmdir /s /q
108
 
RM    = del
109
 
else
110
 
RMDIR = deltree /y
111
 
RM    = del
112
 
endif
113
 
MKDIR = mkdir
114
 
CPDIR = xcopy /e /i
115
 
RMREC = cd  inkscape & $(RM) /s /q 
116
 
RMREC1 = & cd ..
117
 
RMDIRREC = cd inkscape & $(RMDIR) /s 
118
 
RMDIRREC1 = & cd ..
119
 
 
120
 
#######  Where is your GTK directory?
121
 
GTK=c:/gtk28
122
 
 
123
 
####### Same thing, DOS style
124
 
GTKDOS=c:\gtk28
125
 
 
126
 
####### Command to process .po files --> .mo
127
 
MSGFMT = $(GTKDOS)$(S)bin$(S)msgfmt
128
 
 
129
 
####### change me!!
130
 
DTG := 20050626
131
 
 
132
 
endif
133
 
##########################################################################
134
 
# END    CROSS / NATIVE    SWITCHES
135
 
##########################################################################
136
 
 
137
 
 
138
 
###### VERSION NUMBER
139
 
# VERSION_NR = 0.41+devel
140
 
# VERSION = \"$(VERSION_NR)-${DTG}\"
141
 
 
142
 
VERSION_NR = 0.44.1
143
 
VERSION = \"$(VERSION_NR)\"
144
 
 
145
 
####### the XP_WIN def is necessary for libjs.a
146
 
CFLAGS = -g -O3 -Wall -mms-bitfields -DVERSION=$(VERSION) \
147
 
-DXP_WIN -D_INTL_REDIRECT_INLINE -DHAVE_CONFIG_H
148
 
 
149
 
####### Inkboard abilities.
150
 
####### You must 'make -f Makefile.mingw clean' when turning this on or off
151
 
#CFLAGS += -DWITH_INKBOARD
152
 
 
153
 
####### IMPLICIT RULES
154
 
.cpp.o:
155
 
        $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
156
 
 
157
 
.c.o:
158
 
        $(CC) $(CFLAGS) $(INC) -c -o $@ $<
159
 
 
160
 
 
161
 
 
162
 
 
163
 
 
164
 
##########################################################################
165
 
# INCLUDES AND LIBRARIES
166
 
##########################################################################
167
 
 
168
 
GTKINC = -DGLIBMM_DLL \
169
 
-I$(GTK)/include/glibmm-2.4 -I$(GTK)/lib/glibmm-2.4/include \
170
 
-I$(GTK)/include/gtkmm-2.4  -I$(GTK)/lib/gtkmm-2.4/include \
171
 
-I$(GTK)/include/gdkmm-2.4  -I$(GTK)/lib/gdkmm-2.4/include \
172
 
-I$(GTK)/include/pangomm-1.4 \
173
 
-I$(GTK)/include/atkmm-1.6 -I$(GTK)/include/cairo  \
174
 
-I$(GTK)/include/sigc++-2.0 -I$(GTK)/lib/sigc++-2.0/include \
175
 
-I$(GTK)/include/gtk-2.0 -I$(GTK)/lib/gtk-2.0/include \
176
 
-I$(GTK)/include/atk-1.0 -I$(GTK)/include/pango-1.0 \
177
 
-I$(GTK)/include/glib-2.0 -I$(GTK)/lib/glib-2.0/include
178
 
 
179
 
 
180
 
####### Our Gtk libs
181
 
####### we removed the '-Wl,--enable-runtime-pseudo-reloc' option, as
182
 
####### it proved to be very dangerous
183
 
####### with Gtk::TreeViewColumn
184
 
GTKLIB = -L$(GTK)/lib \
185
 
-lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 \
186
 
-latkmm-1.6 -lpangomm-1.4 -lsigc-2.0 \
187
 
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 \
188
 
-lgdk_pixbuf-2.0 -lm -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0 \
189
 
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
190
 
 
191
 
####### For PERL
192
 
####### (note: perl's config.h has some nested comments)
193
 
PERLINC = -Wno-comment -I$(GTK)/perl/lib/CORE
194
 
PERLLIB = -L$(GTK)/perl/lib/CORE -lperl58
195
 
 
196
 
####### For Python
197
 
PYTHONINC = -I$(GTK)/python/include
198
 
PYTHONLIB = -L$(GTK)/python/libs -lpython24
199
 
#PYTHONLIB = -L$(GTK)/python/libs/libpython24.a
200
 
 
201
 
####### remove -DLIBXML_STATIC 
202
 
INC = -I. -I.. -I../.. -I../cxxtest $(GTKINC) -I$(GTK)/include \
203
 
$(PERLINC) $(PYTHONINC) -I$(GTK)/include/loudmouth-1.0 \
204
 
-I$(GTK)/include/libxml2 -I$(GTK)/include/freetype2 \
205
 
 
206
 
 
207
 
# To enable loudmouth uncomment and move this line below
208
 
#-lloudmouth-1.dll -lssl -lcrypto
209
 
LIBS = $(GTKLIB) $(PERLLIB) $(PYTHONLIB) \
210
 
$(GTK)/bin/libxml2.dll \
211
 
$(GTK)/lib/iconv.lib    \
212
 
-lfreetype.dll -lfontconfig.dll  \
213
 
-llcms.dll \
214
 
-lpng -lpopt $(GTK)/lib/zdll.lib \
215
 
-lgc -mwindows -lws2_32 -lintl
216
 
 
217
 
 
218
 
##########################################################################
219
 
# END INCLUDES AND LIBRARIES
220
 
##########################################################################
221
 
 
222
 
 
223
 
 
224
 
 
225
 
##########################################################################
226
 
# E N D     O F     F I L E
227
 
##########################################################################
228
 
 
229
 
 
230
 
 
231
 
 
232
 
 
233
 
 
234
 
 
235
 
 
236