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