makefile.msc.in 15.4 KB
Newer Older
Tor Lillqvist's avatar
Tor Lillqvist committed
1 2 3 4 5 6
## Makefile for building the gtk DLL with Microsoft C
## Use: nmake -f makefile.msc

## There is no install target, you have to decide where and 
## how to install for yourself.

7
TOP = ..\..
8
!INCLUDE $(TOP)/glib/build/win32/make.msc
Tor Lillqvist's avatar
Tor Lillqvist committed
9 10 11

################################################################

Hans Breuer's avatar
updated  
Hans Breuer committed
12
# Not the real version but the one used in the DLL names
13
GTK_VER = 2.0
Hans Breuer's avatar
updated  
Hans Breuer committed
14
GDK_PIXBUF_VER = 2.0
Tor Lillqvist's avatar
Tor Lillqvist committed
15

16

Tor Lillqvist's avatar
Tor Lillqvist committed
17 18 19
GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
GTK_LIBS = gtk-win32-$(GTK_VER).lib
GDK_PIXBUF_LIBS = ../gdk-pixbuf/gdk_pixbuf-$(GDK_PIXBUF_VER).lib
Hans Breuer's avatar
updated  
Hans Breuer committed
20
GTK_BINARY_VERSION = @GTK_BINARY_VERSION@
Tor Lillqvist's avatar
Tor Lillqvist committed
21 22 23 24 25 26 27

# Perl and awk are needed to generate some source files.
# These generated source files are distribuyted with the Win32 GTk+ source
# distributions, so don't worry if you don't have perl and awk.
PERL = perl
AWK = gawk

Hans Breuer's avatar
Hans Breuer committed
28
INCLUDES = -FImsvc_recommended_pragmas.h -I . -I .. -I ../gdk -I ../gdk-pixbuf
Hans Breuer's avatar
Hans Breuer committed
29
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) \
30
		$(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS)
31
LDFLAGS = $(ATK_LIBS) /link /machine:ix86 $(LINKDEBUG)
Tor Lillqvist's avatar
Tor Lillqvist committed
32
# Some files use near as an identifier
33
# Don't define GTK_COMPILATION here, because it's for gtk-x.x.dll only
34 35 36
DEFINES = \
	-DHAVE_CONFIG_H \
	$(G_DEBUGGING) -DGTK_DISABLE_COMPAT_H -DG_LOG_DOMAIN=\"Gtk\" -Dnear=xxnear \
Hans Breuer's avatar
Hans Breuer committed
37 38
	-DPANGO_ENABLE_BACKEND \
	-DGTK_VERSION=\"$(GTK_VER)\" -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
Hans Breuer's avatar
Hans Breuer committed
39 40
	-DGTK_HOST=\"win32\" \
	-DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED
Tor Lillqvist's avatar
Tor Lillqvist committed
41 42 43

TOUCH = copy makefile.msc+nul

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
gtkbuiltincache.h: gtk-update-icon-cache.exe
	cd stock-icons\16
	copy gtk-go-forward-ltr.png gtk-go-back-rtl.png
	copy gtk-go-back-ltr.png gtk-go-forward-rtl.png
	copy gtk-goto-last-ltr.png gtk-goto-first-rtl.png
	copy gtk-goto-first-ltr.png gtk-goto-last-rtl.png
	copy gtk-media-rewind-ltr.png gtk-media-forward-rtl.png
	copy gtk-media-previous-ltr.png gtk-media-next-rtl.png
	copy gtk-media-next-ltr.png gtk-media-previous-rtl.png
	copy gtk-media-forward-ltr.png gtk-media-rewind-rtl.png
	copy gtk-floppy.png gtk-save.png
	cd ..\24
	copy gtk-go-forward-ltr.png gtk-go-back-rtl.png
	copy gtk-go-back-ltr.png gtk-go-forward-rtl.png
	copy gtk-goto-last-ltr.png gtk-goto-first-rtl.png
	copy gtk-goto-first-ltr.png gtk-goto-last-rtl.png
	copy gtk-media-rewind-ltr.png gtk-media-forward-rtl.png
	copy gtk-media-previous-ltr.png gtk-media-next-rtl.png
	copy gtk-media-next-ltr.png gtk-media-previous-rtl.png
	copy gtk-media-forward-ltr.png gtk-media-rewind-rtl.png
	copy gtk-floppy.png gtk-save.png
	cd ..\..
	del gtkicontheme.obj
	gtk-update-icon-cache --force --ignore-theme-index 	\
	   --source builtin_icons stock-icons > gtkbuiltincache.h
69

Tor Lillqvist's avatar
Tor Lillqvist committed
70 71 72
all :						\
	..\config.h				\
	generated				\
73 74
	gtk-update-icon-cache.exe		\
	gtkbuiltincache.h			\
75
	libgtk-win32-$(GTK_VER)-0.dll		\
76
	gtk-query-immodules-$(GTK_VER).exe \
Hans Breuer's avatar
Hans Breuer committed
77 78
#	gtk-win32-$(GTK_VER)s.lib \
#	gtk-x11-$(GTK_VER).dll
Tor Lillqvist's avatar
Tor Lillqvist committed
79

80
gtk_OBJECTS = 					\
Tor Lillqvist's avatar
Tor Lillqvist committed
81
	fnmatch.obj				\
Hans Breuer's avatar
Hans Breuer committed
82
	gtkaboutdialog.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
83 84
	gtkaccelgroup.obj			\
	gtkaccellabel.obj			\
85
	gtkaccelmap.obj	\
86
	gtkaccessible.obj \
Hans Breuer's avatar
Hans Breuer committed
87 88
	gtkaction.obj	\
	gtkactiongroup.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
89 90 91 92
	gtkadjustment.obj			\
	gtkalignment.obj			\
	gtkarrow.obj				\
	gtkaspectframe.obj			\
Hans Breuer's avatar
updated  
Hans Breuer committed
93
	gtkassistant.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
94 95 96 97 98 99
	gtkbin.obj				\
	gtkbindings.obj				\
	gtkbbox.obj				\
	gtkbox.obj				\
	gtkbutton.obj				\
	gtkcalendar.obj				\
Hans Breuer's avatar
Hans Breuer committed
100
	gtkcelleditable.obj			\
101
	gtkcelllayout.obj			\
102
	gtkcellrenderer.obj			\
103
	gtkcellrendereraccel.obj \
104
	gtkcellrenderercombo.obj \
105 106 107
	gtkcellrenderertext.obj			\
	gtkcellrenderertoggle.obj		\
	gtkcellrendererpixbuf.obj		\
108
	gtkcellrendererprogress.obj		\
Hans Breuer's avatar
updated  
Hans Breuer committed
109
	gtkcellrendererspin.obj	\
Hans Breuer's avatar
Hans Breuer committed
110
	gtkcellview.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
111 112 113 114
	gtkcheckbutton.obj			\
	gtkcheckmenuitem.obj			\
	gtkclipboard.obj			\
	gtkclist.obj				\
115
	gtkcolorbutton.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
116 117 118
	gtkcolorsel.obj				\
	gtkcolorseldialog.obj			\
	gtkcombo.obj				\
Hans Breuer's avatar
Hans Breuer committed
119 120
	gtkcombobox.obj			\
	gtkcomboboxentry.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
121 122 123 124 125 126 127 128
	gtkcontainer.obj			\
	gtkctree.obj				\
	gtkcurve.obj				\
	gtkdialog.obj				\
	gtkdnd.obj				\
	gtkdrawingarea.obj			\
	gtkeditable.obj				\
	gtkentry.obj				\
129
	gtkentrycompletion.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
130
	gtkeventbox.obj				\
131
	gtkexpander.obj			\
Hans Breuer's avatar
Hans Breuer committed
132
	gtkfilechooser.obj			\
Hans Breuer's avatar
updated  
Hans Breuer committed
133
	gtkfilechooserbutton.obj	\
Hans Breuer's avatar
Hans Breuer committed
134 135
	gtkfilechooserdefault.obj			\
	gtkfilechooserdialog.obj			\
136
	gtkfilechooserembed.obj		\
Hans Breuer's avatar
Hans Breuer committed
137 138 139 140
	gtkfilechooserentry.obj			\
	gtkfilechooserutils.obj			\
	gtkfilechooserwidget.obj			\
	gtkfilefilter.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
141
	gtkfilesel.obj				\
Hans Breuer's avatar
Hans Breuer committed
142 143 144
	gtkfilesystem.obj				\
	gtkfilesystemmodel.obj				\
	gtkfilesystemwin32.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
145 146
	gtkfixed.obj				\
	gtkfontsel.obj				\
147
	gtkfontbutton.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
148 149 150 151 152 153 154 155 156 157 158 159
	gtkframe.obj				\
	gtkgamma.obj				\
	gtkgc.obj				\
	gtkhandlebox.obj			\
	gtkhbbox.obj				\
	gtkhbox.obj				\
	gtkhpaned.obj				\
	gtkhruler.obj				\
	gtkhscale.obj				\
	gtkhscrollbar.obj			\
	gtkhseparator.obj			\
	gtkhsv.obj				\
Hans Breuer's avatar
updated  
Hans Breuer committed
160
	gtkiconcache.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
161
	gtkiconfactory.obj			\
162
	gtkicontheme.obj			\
163
	gtkiconview.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
164
	gtkimage.obj				\
165
	gtkimagemenuitem.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
166 167
	gtkimcontext.obj			\
	gtkimcontextsimple.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
168
	gtkimmodule.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
169 170 171 172 173
	gtkimmulticontext.obj			\
	gtkinputdialog.obj			\
	gtkinvisible.obj			\
	gtkitem.obj				\
	gtkitemfactory.obj			\
Hans Breuer's avatar
Hans Breuer committed
174
	gtkkeyhash.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
175 176
	gtklabel.obj				\
	gtklayout.obj				\
Hans Breuer's avatar
updated  
Hans Breuer committed
177
	gtklinkbutton.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
178 179
	gtklist.obj				\
	gtklistitem.obj				\
180
	gtkliststore.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
181
	gtkmain.obj				\
182 183
	gtkmarshalers.obj		\
	gtkmarshal.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
184 185 186 187
	gtkmenu.obj				\
	gtkmenubar.obj				\
	gtkmenuitem.obj				\
	gtkmenushell.obj			\
Hans Breuer's avatar
updated  
Hans Breuer committed
188
	gtkmenutoolbutton.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
189 190
	gtkmessagedialog.obj			\
	gtkmisc.obj				\
191
	gtkmnemonichash.obj	\
Hans Breuer's avatar
updated  
Hans Breuer committed
192
	gtkmodules.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
193 194
	gtknotebook.obj				\
	gtkobject.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
195
	gtkoldeditable.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
196 197
	gtkoptionmenu.obj			\
	gtkpaned.obj				\
198
	gtkpathbar.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
199
	gtkpixmap.obj				\
Hans Breuer's avatar
updated  
Hans Breuer committed
200 201
	gtkplug.obj				\
	gtkplug-win32.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
202 203 204
	gtkpreview.obj				\
	gtkprogress.obj				\
	gtkprogressbar.obj			\
Hans Breuer's avatar
Hans Breuer committed
205
	gtkradioaction.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
206
	gtkradiobutton.obj			\
207
	gtkradiotoolbutton.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
208 209
	gtkradiomenuitem.obj			\
	gtkrange.obj				\
210
	gtkrbtree.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
211
	gtkrc.obj				\
Hans Breuer's avatar
updated  
Hans Breuer committed
212 213 214 215 216 217 218 219
	gtkrecentchooserdefault.obj \
	gtkrecentchooserdialog.obj \
	gtkrecentchoosermenu.obj 	\
	gtkrecentchooserwidget.obj \
	gtkrecentchooserutils.obj \
	gtkrecentchooser.obj 	\
	gtkrecentfilter.obj 	\
	gtkrecentmanager.obj 	\
Tor Lillqvist's avatar
Tor Lillqvist committed
220 221 222 223 224 225
	gtkruler.obj				\
	gtkscale.obj				\
	gtkscrollbar.obj			\
	gtkscrolledwindow.obj			\
	gtkselection.obj			\
	gtkseparator.obj			\
226
	gtkseparatormenuitem.obj \
227
	gtkseparatortoolitem.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
228
	gtksequence.obj	\
229
	gtksettings.obj \
Tor Lillqvist's avatar
Tor Lillqvist committed
230
	gtksignal.obj				\
231
	gtksizegroup.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
232 233
	gtksocket.obj				\
	gtksocket-win32.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
234
	gtkspinbutton.obj			\
235
	gtkstatusicon.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
236 237 238 239 240 241 242 243
	gtkstyle.obj				\
	gtkstatusbar.obj			\
	gtkstock.obj				\
	gtktable.obj				\
	gtktearoffmenuitem.obj			\
	gtktext.obj				\
	gtktextbtree.obj			\
	gtktextbuffer.obj			\
Hans Breuer's avatar
updated  
Hans Breuer committed
244 245
	gtktextbufferrichtext.obj	\
	gtktextbufferserialize.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
246 247 248 249 250 251 252 253 254
	gtktextchild.obj			\
	gtktextdisplay.obj			\
	gtktextiter.obj				\
	gtktextlayout.obj			\
	gtktextmark.obj				\
	gtktextsegment.obj			\
	gtktexttag.obj				\
	gtktexttagtable.obj			\
	gtktexttypes.obj			\
255
	gtktextutil.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
256 257 258
	gtktextview.obj				\
	gtkthemes.obj				\
	gtktipsquery.obj			\
Hans Breuer's avatar
Hans Breuer committed
259
	gtktoggleaction.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
260
	gtktogglebutton.obj			\
261
	gtktoggletoolbutton.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
262
	gtktoolbar.obj				\
263 264
	gtktoolbutton.obj				\
	gtktoolitem.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
265
	gtktooltips.obj				\
266
	gtktrayicon-win32.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
267
	gtktree.obj				\
268 269
	gtktreedatalist.obj	\
	gtktreednd.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
270
	gtktreeitem.obj				\
Tor Lillqvist's avatar
Tor Lillqvist committed
271
	gtktreemodel.obj			\
272
	gtktreemodelfilter.obj			\
273 274
	gtktreemodelsort.obj			\
	gtktreeselection.obj			\
275
	gtktreesortable.obj \
276 277 278
	gtktreestore.obj			\
	gtktreeview.obj			\
	gtktreeviewcolumn.obj			\
Tor Lillqvist's avatar
Tor Lillqvist committed
279
	gtktypeutils.obj			\
280
	gtktypebuiltins.obj \
Hans Breuer's avatar
Hans Breuer committed
281
	gtkuimanager.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
282 283 284 285 286 287 288 289 290
	gtkvbbox.obj				\
	gtkvbox.obj				\
	gtkviewport.obj				\
	gtkvpaned.obj				\
	gtkvruler.obj				\
	gtkvscale.obj				\
	gtkvscrollbar.obj			\
	gtkvseparator.obj			\
	gtkwidget.obj				\
Hans Breuer's avatar
updated  
Hans Breuer committed
291
	gtkwin32embed.obj			\
292 293
	gtkwindow.obj				\
	gtkwindow-decorate.obj
Tor Lillqvist's avatar
Tor Lillqvist committed
294 295

# Source headers which are non-autogenerated headers
296
gtk_public_h_sources =		\
Tor Lillqvist's avatar
Tor Lillqvist committed
297
	gtk.h			\
Hans Breuer's avatar
Hans Breuer committed
298
	gtkaboutdialog.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
299 300
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
301
	gtkaccelmap.h		\
302
	gtkaccessible.h \
303 304
	gtkaction.h		\
	gtkactiongroup.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
305 306 307 308
	gtkadjustment.h		\
	gtkalignment.h		\
	gtkarrow.h		\
	gtkaspectframe.h	\
Hans Breuer's avatar
updated  
Hans Breuer committed
309
	gtkassistant.h	\
310
	gtkbbox.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
311 312 313 314 315
	gtkbin.h		\
	gtkbindings.h		\
	gtkbox.h		\
	gtkbutton.h		\
	gtkcalendar.h		\
316 317 318
	gtkcelleditable.h	\
	gtkcelllayout.h		\
	gtkcellrenderer.h	\
319
	gtkcellrendereraccel.h	\
320
	gtkcellrendererpixbuf.h	\
Hans Breuer's avatar
updated  
Hans Breuer committed
321 322
 	gtkcellrendererprogress.h \
	gtkcellrendererspin.h   \
323 324
	gtkcellrenderertext.h	\
	gtkcellrenderertoggle.h	\
325
	gtkcellview.h \
Tor Lillqvist's avatar
Tor Lillqvist committed
326 327
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
328
	gtkclipboard.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
329
	gtkclist.h		\
330
	gtkclipboard.h		\
331
	gtkcolorbutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
332 333 334
	gtkcolorsel.h		\
	gtkcolorseldialog.h	\
	gtkcombo.h		\
335 336
	gtkcombobox.h		\
	gtkcomboboxentry.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
337 338 339 340 341 342 343 344 345
	gtkcontainer.h		\
	gtkctree.h		\
	gtkcurve.h		\
	gtkdebug.h		\
	gtkdialog.h		\
	gtkdnd.h		\
	gtkdrawingarea.h	\
	gtkeditable.h		\
	gtkentry.h		\
346
	gtkentrycompletion.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
347 348
	gtkenums.h		\
	gtkeventbox.h		\
349
	gtkexpander.h		\
Hans Breuer's avatar
Hans Breuer committed
350 351 352 353
	gtkfilechooser.h        \
	gtkfilechooserdialog.h  \
	gtkfilechooserwidget.h  \
	gtkfilefilter.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
354 355
	gtkfilesel.h		\
	gtkfixed.h		\
356
	gtkfontbutton.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
357 358 359 360 361 362 363 364 365 366 367 368
	gtkfontsel.h		\
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
	gtkhandlebox.h		\
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
369
	gtkstatusicon.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
370
	gtkhsv.h		\
371
	gtkiconfactory.h	\
372
	gtkicontheme.h		\
373
	gtkiconview.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
374
	gtkimage.h		\
375
	gtkimagemenuitem.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
376
	gtkimcontext.h		\
377
	gtkimcontextsimple.h	\
378
	gtkimmodule.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
379 380 381 382 383 384 385
	gtkimmulticontext.h	\
	gtkinputdialog.h	\
	gtkinvisible.h		\
	gtkitem.h		\
	gtkitemfactory.h	\
	gtklabel.h		\
	gtklayout.h		\
Hans Breuer's avatar
updated  
Hans Breuer committed
386
	gtklinkbutton.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
387 388
	gtklist.h		\
	gtklistitem.h		\
389
	gtkliststore.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
390
	gtkmain.h		\
391
	gtkmarshal.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
392 393 394 395
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
396
	gtkmessagedialog.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
397 398 399
	gtkmisc.h		\
	gtknotebook.h		\
	gtkobject.h		\
400
	gtkoldeditable.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
401 402 403 404 405 406 407 408
	gtkoptionmenu.h		\
	gtkpaned.h		\
	gtkpixmap.h		\
	gtkplug.h		\
	gtkpreview.h		\
	gtkprivate.h		\
	gtkprogress.h		\
	gtkprogressbar.h	\
409
	gtkradioaction.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
410 411
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
412
	gtkradiotoolbutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
413 414
	gtkrange.h		\
	gtkrc.h			\
Hans Breuer's avatar
updated  
Hans Breuer committed
415 416 417 418 419 420
	gtkrecentchooser.h 	\
	gtkrecentchooserdialog.h \
	gtkrecentchoosermenu.h 	\
	gtkrecentchooserwidget.h \
	gtkrecentfilter.h 	\
	gtkrecentmanager.h 	\
Tor Lillqvist's avatar
Tor Lillqvist committed
421 422 423 424 425 426
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
427 428 429 430
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
	gtksettings.h		\
	gtksignal.h		\
431
	gtksizegroup.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
432 433 434 435
	gtksignal.h		\
	gtksocket.h		\
	gtkspinbutton.h		\
	gtkstatusbar.h		\
436
	gtkstock.h		\
437
	gtkstyle.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
438 439
	gtktable.h		\
	gtktearoffmenuitem.h	\
440
	gtktext.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
441
	gtktextbuffer.h		\
Hans Breuer's avatar
updated  
Hans Breuer committed
442
	gtktextbufferrichtext.h	\
443 444
	gtktextchild.h		\
	gtktextdisplay.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
445
	gtktextiter.h		\
446
	gtktextlayout.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
447 448 449 450 451
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
	gtktipsquery.h		\
452
	gtktoggleaction.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
453
	gtktogglebutton.h	\
454
	gtktoggletoolbutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
455
	gtktoolbar.h		\
456 457
	gtktoolbutton.h		\
	gtktoolitem.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
458 459
	gtktooltips.h		\
	gtktree.h		\
460
	gtktreednd.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
461
	gtktreeitem.h		\
462
	gtktreemodel.h		\
463
	gtktreemodelfilter.h	\
464
	gtktreemodelsort.h	\
465
	gtktreeselection.h	\
466
	gtktreesortable.h	\
467 468 469
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
470
	gtktypeutils.h		\
471
	gtkuimanager.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
472 473 474 475 476 477 478 479 480 481 482
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
	gtkwindow.h

483 484
# these aren't use here, but listed for reference
gtk_extra_sources = \
485
	gtkversion.h		\
486 487 488
	gtk-boxed.defs		\
	gtkmarshal.list		\

Tor Lillqvist's avatar
Tor Lillqvist committed
489 490 491
..\config.h : ..\config.h.win32
	copy ..\config.h.win32 ..\config.h

Hans Breuer's avatar
Hans Breuer committed
492 493 494
GENERATED = \
	gtktypebuiltins.h gtktypebuiltins.c \
	gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c \
495
	gtk.def gtkalias.h gtkaliasdef.c
Tor Lillqvist's avatar
Tor Lillqvist committed
496 497 498 499 500 501 502

#
# Generated source files:
#
generated : $(GENERATED)
	$(TOUCH) generated

503
gtk.def: gtk.symbols makefile.msc
Hans Breuer's avatar
Hans Breuer committed
504
	echo EXPORTS > gtk.def
505 506 507
	cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
		-DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= \
		gtk.symbols >> gtk.def
Hans Breuer's avatar
Hans Breuer committed
508 509 510

gtkalias.h: gtk.symbols
	cl /EP -DG_OS_WIN32 -DGTK_WINDOWING_WIN32 -DINCLUDE_INTERNAL_SYMBOLS gtk.symbols | $(PERL) makegtkalias.pl > gtkalias.h
Tor Lillqvist's avatar
Tor Lillqvist committed
511

512 513 514
gtkaliasdef.c: gtk.symbols
	 perl makegtkalias.pl -def < gtk.symbols > gtkaliasdef.c

Tor Lillqvist's avatar
Tor Lillqvist committed
515
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
516 517 518 519 520 521 522 523 524 525 526
# use 'echo' to work around 'command line too long'
gtktypebuiltins.h: $(gtk_public_h_sources) makefile.msc
	echo #ifndef __GTK_TYPE_BUILTINS_H__ > gtktypebuiltins.h
	echo #define __GTK_TYPE_BUILTINS_H__ >> gtktypebuiltins.h
	echo #include "glib-object.h" >> gtktypebuiltins.h
	echo G_BEGIN_DECLS >> gtktypebuiltins.h
	$(PERL) $(GLIB)\gobject\glib-mkenums \
		--fprod "/* enumerations from \"@filename@\" */\n" \
		--vhead "GType @enum_name@_get_type (void);\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
		--ftail "G_END_DECLS\n\n#endif /* __GTK_TYPE_BUILTINS_H__ */" \
		$(gtk_public_h_sources) >> gtktypebuiltins.h
Tor Lillqvist's avatar
Tor Lillqvist committed
527

528 529 530 531 532 533 534 535 536
gtktypebuiltins.c: $(gtk_public_h_sources) makefile.msc
	$(PERL) $(GLIB)\gobject\glib-mkenums \
		--fhead "#define GTK_ENABLE_BROKEN\n#include \"gtk.h\"\n#include \"gtkprivate.h\"" \
		--fprod "\n/* enumerations from \"@filename@\" */" \
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {" \
		--vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
		$(gtk_public_h_sources) > xgen-gtbc
	copy xgen-gtbc gtktypebuiltins.c
Tor Lillqvist's avatar
Tor Lillqvist committed
537

538 539 540 541 542 543 544 545
# private marshalers
gtkmarshalers.h : gtkmarshalers.list
	$(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --header >>gtkmarshalers.h

gtkmarshalers.c : gtkmarshalers.list
	$(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --body >gtkmarshalers.c

# public, deprecated marshalers
Tor Lillqvist's avatar
Tor Lillqvist committed
546
gtkmarshal.h : gtkmarshal.list
547 548 549
	echo #ifndef GTK_DISABLE_DEPRECATED >gtkmarshal.h
	$(GLIB)\gobject\glib-genmarshal --prefix=gtk_marshal gtkmarshal.list --header >>gtkmarshal.h
	echo #endif /* GTK_DISABLE_DEPRECATED */ >>gtkmarshal.h
Tor Lillqvist's avatar
Tor Lillqvist committed
550 551

gtkmarshal.c : gtkmarshal.list
552 553 554 555
	$(GLIB)\gobject\glib-genmarshal --prefix=gtk_marshal gtkmarshal.list --body >gtkmarshal.c

gtksignal.obj : gtksignal.c gtkmarshal.c gtkmarshal.h
	$(CC) $(CFLAGS) -GD -c -DGTK_COMPILATION -DG_LOG_DOMAIN=\"Gtk\" gtksignal.c
Tor Lillqvist's avatar
Tor Lillqvist committed
556

557 558
gtk-win32.res : gtk-win32.rc
	rc -DBUILDNUMBER=0 -r -fo gtk-win32.res gtk-win32.rc
Hans Breuer's avatar
Hans Breuer committed
559

Tor Lillqvist's avatar
Tor Lillqvist committed
560 561 562
#
# Linking:
#
563
libgtk-win32-$(GTK_VER)-0.dll : $(gtk_OBJECTS) gtk.def gtk-win32.res
564
	$(CC) $(CFLAGS) -LD -Fm -Fe$@ $(gtk_OBJECTS) gtk-win32.res \
565
	$(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(INTL_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) \
566
	$(CAIRO_LIBS) $(PANGOCAIRO_LIBS) \
567
	gdi32.lib user32.lib advapi32.lib wsock32.lib shell32.lib ole32.lib \
568
	$(LDFLAGS) /implib:gtk-win32-$(GTK_VER).lib /def:gtk.def
569 570 571

gtk-win32-$(GTK_VER)s.lib : $(gtk_OBJECTS)
	lib /out:gtk-win32-$(GTK_VER)s.lib $(gtk_OBJECTS)
Tor Lillqvist's avatar
Tor Lillqvist committed
572

573 574 575
gtk-query-immodules-$(GTK_VER).exe : queryimmodules.obj
	$(CC) $(CFLAGS) -Fe$@ queryimmodules.obj $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(LDFLAGS)

576 577 578
gtk-update-icon-cache.exe : updateiconcache.obj
	$(CC) $(CFLAGS) -Fe$@ updateiconcache.obj $(GDK_PIXBUF_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(LDFLAGS)

Hans Breuer's avatar
Hans Breuer committed
579 580 581
gtk-x11-$(GTK_VER).dll : $(gtk_OBJECTS) gtk.def
	$(CC) $(CFLAGS) -LD -Fm -Fegtk-x11-$(GTK_VER).dll $(gtk_OBJECTS) ../gdk/gdk-x11-$(GTK_VER).lib $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(INTL_LIBS) $(GLIB_LIBS) gdi32.lib user32.lib advapi32.lib $(LDFLAGS) /def:gtk.def

Tor Lillqvist's avatar
Tor Lillqvist committed
582 583
# General rule for compiling the objects into the DLL
.c.obj :
584
	$(CC) $(CFLAGS) -Gf -Zm400 -GD -c -DGTK_COMPILATION -DG_LOG_DOMAIN=\"Gtk\" $<
Tor Lillqvist's avatar
Tor Lillqvist committed
585

586 587 588 589 590 591
$(EXAMPLE).obj : ..\examples\$(EXAMPLE)\$(EXAMPLE).c
	$(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(EXAMPLE)\" ..\examples\$(EXAMPLE)\$(EXAMPLE).c

$(EXAMPLE).exe : $(EXAMPLE).obj
	$(CC) $(CFLAGS) $(EXAMPLE).obj $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)