makefile.msc.in 15.9 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
Hans Breuer's avatar
Hans Breuer committed
13
GTK_VER = 3.0
Tor Lillqvist's avatar
Tor Lillqvist committed
14

15

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

# 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
26
INCLUDES = -FImsvc_recommended_pragmas.h -I . -I .. -I ../gdk $(GDK_PIXBUF_CFLAGS)
Hans Breuer's avatar
Hans Breuer committed
27
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) \
28
		$(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS)
29
LDFLAGS = $(ATK_LIBS) /link /machine:ix86 $(LINKDEBUG)
Tor Lillqvist's avatar
Tor Lillqvist committed
30
# Some files use near as an identifier
31
# Don't define GTK_COMPILATION here, because it's for gtk-x.x.dll only
32 33 34
DEFINES = \
	-DHAVE_CONFIG_H \
	$(G_DEBUGGING) -DGTK_DISABLE_COMPAT_H -DG_LOG_DOMAIN=\"Gtk\" -Dnear=xxnear \
Hans Breuer's avatar
Hans Breuer committed
35 36
	-DPANGO_ENABLE_BACKEND \
	-DGTK_VERSION=\"$(GTK_VER)\" -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
Hans Breuer's avatar
Hans Breuer committed
37
	-DGTK_HOST=\"win32\" \
38
	-DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED \
Hans Breuer's avatar
Hans Breuer committed
39 40
	-DGTK_PRINT_BACKENDS=\"file,lpr\" \
	-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED \
41 42
	-DGTK_PRINT_PREVIEW_COMMAND="\"evince --unlink-tempfile --preview %f\"" \
	-DGTK_LIBDIR=\"/magic/path/replaced/at/runtime\"
Tor Lillqvist's avatar
Tor Lillqvist committed
43

Hans Breuer's avatar
Hans Breuer committed
44 45 46 47 48 49 50
EXTRALIBS = \
	$(GDK_LIBS) \
	$(GDK_PIXBUF_LIBS) \
	$(PANGO_LIBS) $(INTL_LIBS) \
	$(GLIB_LIBS) $(GMODULE_LIBS) $(GIO_LIBS) \
	$(CAIRO_LIBS) $(PANGOCAIRO_LIBS) $(CAIRO_GOBJECT_LIBS) \

Tor Lillqvist's avatar
Tor Lillqvist committed
51 52
TOUCH = copy makefile.msc+nul

53 54 55 56
gtkbuiltincache.h: gtk-update-icon-cache.exe
	del gtkicontheme.obj
	gtk-update-icon-cache --force --ignore-theme-index 	\
	   --source builtin_icons stock-icons > gtkbuiltincache.h
57

Hans Breuer's avatar
Hans Breuer committed
58 59
GENERATED = \
	gtktypebuiltins.h gtktypebuiltins.c \
Hans Breuer's avatar
Hans Breuer committed
60 61
	gtkmarshalers.h gtkmarshalers.c \
	gtk.def gtkalias.h gtkaliasdef.c gtktypefuncs.c
Hans Breuer's avatar
Hans Breuer committed
62

Tor Lillqvist's avatar
Tor Lillqvist committed
63 64
all :						\
	..\config.h				\
Hans Breuer's avatar
Hans Breuer committed
65
	$(GENERATED)				\
66 67
	gtk-update-icon-cache.exe		\
	gtkbuiltincache.h			\
68
	libgtk-win32-$(GTK_VER)-0.dll		\
69
	gtk-query-immodules-$(GTK_VER).exe \
Hans Breuer's avatar
Hans Breuer committed
70 71
#	gtk-win32-$(GTK_VER)s.lib \
#	gtk-x11-$(GTK_VER).dll
Tor Lillqvist's avatar
Tor Lillqvist committed
72

73 74 75 76
gtk_OBJECTS_cell = \
	gtkcelleditable.obj \
	gtkcelllayout.obj \
	gtkcellrenderer.obj \
77
	gtkcellrendereraccel.obj \
78
	gtkcellrenderercombo.obj \
79 80 81 82
	gtkcellrenderertext.obj \
	gtkcellrenderertoggle.obj \
	gtkcellrendererpixbuf.obj \
	gtkcellrendererprogress.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
83
	gtkcellrendererspin.obj	\
Hans Breuer's avatar
Hans Breuer committed
84
	gtkcellrendererspinner.obj \
Hans Breuer's avatar
Hans Breuer committed
85
#	gtkcellsizerequest.obj \
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
	gtkcellview.obj \
	gtkliststore.obj \
	gtktreednd.obj \
	gtktreemodel.obj \
	gtktreemodelfilter.obj \
	gtktreemodelsort.obj \
	gtktreeselection.obj \
	gtktreesortable.obj \
	gtktreestore.obj \
	gtktreeview.obj \
	gtktreeviewcolumn.obj \

gtk_OBJECTS_file = \
	gtkfilechooser.obj \
	gtkfilechooserbutton.obj \
	gtkfilechooserdefault.obj \
	gtkfilechooserdialog.obj \
	gtkfilechooserembed.obj \
	gtkfilechooserentry.obj \
Hans Breuer's avatar
Hans Breuer committed
105
#	gtkfilechoosersettings.obj \
106 107 108 109 110 111 112 113 114
	gtkfilechooserutils.obj \
	gtkfilechooserwidget.obj \
	gtkfilefilter.obj \
	gtkfilesystem.obj \
	gtkfilesystemmodel.obj \

gtk_OBJECTS_print = \
	gtkprint-win32.obj \
	gtkprintcontext.obj \
Hans Breuer's avatar
Hans Breuer committed
115
	gtkprintoperation-win32.obj \
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
	gtkprintoperation.obj \
	gtkprintoperationpreview.obj \
	gtkprintsettings.obj \
	gtkprintutils.obj \

gtk_OBJECTS_text = \
	gtktestutils.obj \
	gtktextbtree.obj \
	gtktextbuffer.obj \
	gtktextbufferrichtext.obj \
	gtktextbufferserialize.obj \
	gtktextchild.obj \
	gtktextdisplay.obj \
	gtktextiter.obj \
	gtktextlayout.obj \
	gtktextmark.obj \
	gtktextsegment.obj \
	gtktexttag.obj \
	gtktexttagtable.obj \
	gtktexttypes.obj \
	gtktextutil.obj	\
	gtktextview.obj \

gtk_OBJECTS_recent = \
140
	gtkrecentaction.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
141 142
	gtkrecentchooserdefault.obj \
	gtkrecentchooserdialog.obj \
143
	gtkrecentchoosermenu.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
144 145
	gtkrecentchooserwidget.obj \
	gtkrecentchooserutils.obj \
146 147 148 149 150 151
	gtkrecentchooser.obj \
	gtkrecentfilter.obj \
	gtkrecentmanager.obj \

gtk_OBJECTS = \
	fnmatch.obj \
Hans Breuer's avatar
Hans Breuer committed
152
	gtk9slice.obj \
153 154 155 156 157 158 159
	gtkaboutdialog.obj \
	gtkaccelgroup.obj \
	gtkaccellabel.obj \
	gtkaccelmap.obj	\
	gtkaccessible.obj \
	gtkaction.obj \
	gtkactiongroup.obj \
Hans Breuer's avatar
Hans Breuer committed
160
	gtkactivatable.obj \
161 162
	gtkadjustment.obj \
	gtkalignment.obj \
Hans Breuer's avatar
Hans Breuer committed
163 164 165 166 167 168 169 170 171
	gtkanimationdescription.obj \
	gtkappchooser.obj \
	gtkappchooserbutton.obj \
	gtkappchooserdialog.obj \
	gtkappchoosermodule.obj \
	gtkappchooseronline.obj \
	gtkappchooseronlinepk.obj \
	gtkappchooserwidget.obj \
	gtkapplication.obj \
172 173 174 175 176 177 178
	gtkarrow.obj \
	gtkaspectframe.obj \
	gtkassistant.obj \
	gtkbin.obj \
	gtkbindings.obj \
	gtkbbox.obj \
	gtkbox.obj \
Hans Breuer's avatar
Hans Breuer committed
179
	gtkborder.obj \
180 181 182 183 184
	gtkbuildable.obj \
	gtkbuilder.obj \
	gtkbuilderparser.obj \
	gtkbutton.obj \
	gtkcalendar.obj \
Hans Breuer's avatar
Hans Breuer committed
185 186 187 188
	gtkcellarea.obj \
	gtkcellareabox.obj \
	gtkcellareaboxcontext.obj \
	gtkcellareacontext.obj \
189 190 191 192 193 194 195
	gtkcheckbutton.obj \
	gtkcheckmenuitem.obj \
	gtkclipboard.obj \
	gtkcolorbutton.obj \
	gtkcolorsel.obj \
	gtkcolorseldialog.obj \
	gtkcombobox.obj	\
Hans Breuer's avatar
Hans Breuer committed
196
	gtkcomboboxtext.obj \
197
	gtkcontainer.obj \
Hans Breuer's avatar
Hans Breuer committed
198
	gtkcssprovider.obj \
199 200 201 202 203
	gtkdialog.obj \
	gtkdnd.obj \
	gtkdrawingarea.obj \
	gtkeditable.obj \
	gtkentry.obj \
Hans Breuer's avatar
Hans Breuer committed
204
	gtkentrybuffer.obj \
205 206 207 208 209 210 211
	gtkentrycompletion.obj \
	gtkeventbox.obj \
	gtkexpander.obj \
	gtkfixed.obj \
	gtkfontsel.obj \
	gtkfontbutton.obj \
	gtkframe.obj \
Hans Breuer's avatar
Hans Breuer committed
212 213
	gtkgradient.obj \
	gtkgrid.obj \
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
	gtkhandlebox.obj \
	gtkhbbox.obj \
	gtkhbox.obj \
	gtkhpaned.obj \
	gtkhscale.obj \
	gtkhscrollbar.obj \
	gtkhseparator.obj \
	gtkhsv.obj \
	gtkiconcache.obj \
	gtkiconcachevalidator.obj \
	gtkiconfactory.obj \
	gtkicontheme.obj \
	gtkiconview.obj \
	gtkimage.obj \
	gtkimagemenuitem.obj \
	gtkimcontext.obj \
	gtkimcontextsimple.obj \
	gtkimmodule.obj	\
	gtkimmulticontext.obj \
Hans Breuer's avatar
Hans Breuer committed
233
	gtkinfobar.obj \
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
	gtkinvisible.obj \
	gtkkeyhash.obj	\
	gtklabel.obj \
	gtklayout.obj \
	gtklinkbutton.obj \
	gtkmain.obj \
	gtkmarshalers.obj \
	gtkmenu.obj \
	gtkmenubar.obj \
	gtkmenuitem.obj \
	gtkmenushell.obj \
	gtkmenutoolbutton.obj \
	gtkmessagedialog.obj \
	gtkmisc.obj \
	gtkmnemonichash.obj \
Hans Breuer's avatar
Hans Breuer committed
249
	gtkmodifierstyle.obj \
250 251
	gtkmodules.obj \
	gtkmountoperation.obj \
Hans Breuer's avatar
Hans Breuer committed
252
	gtkmountoperation-stub.obj \
253
	gtknotebook.obj \
Hans Breuer's avatar
Hans Breuer committed
254
	gtkoffscreenwindow.obj \
Hans Breuer's avatar
Hans Breuer committed
255
	gtkorientable.obj \
256 257
	gtkpagesetup.obj \
	gtkpaned.obj \
Hans Breuer's avatar
Hans Breuer committed
258
	gtkpango.obj \
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
	gtkpapersize.obj \
	gtkpathbar.obj \
	gtkplug.obj \
	gtkplug-win32.obj \
	gtkprogressbar.obj \
	gtkquery.obj \
	gtkradioaction.obj \
	gtkradiobutton.obj \
	gtkradiotoolbutton.obj \
	gtkradiomenuitem.obj \
	gtkrange.obj \
	gtkrbtree.obj \
	gtkrc.obj \
	gtkscale.obj \
	gtkscalebutton.obj \
Hans Breuer's avatar
Hans Breuer committed
274
	gtkscrollable.obj \
275 276 277 278 279 280 281 282
	gtkscrollbar.obj \
	gtkscrolledwindow.obj \
	gtksearchengine.obj \
	gtksearchenginebeagle.obj \
	gtksearchenginesimple.obj \
	gtksearchenginetracker.obj \
	gtkselection.obj \
	gtkseparator.obj \
283
	gtkseparatormenuitem.obj \
Hans Breuer's avatar
Hans Breuer committed
284
	gtkseparatortoolitem.obj \
285
	gtksettings.obj \
Hans Breuer's avatar
Hans Breuer committed
286
	gtkshow.obj \
287
	gtksizegroup.obj \
Hans Breuer's avatar
Hans Breuer committed
288
	gtksizerequest.obj \
289 290 291
	gtksocket.obj \
	gtksocket-win32.obj \
	gtkspinbutton.obj \
Hans Breuer's avatar
Hans Breuer committed
292
	gtkspinner.obj \
293 294
	gtkstatusicon.obj \
	gtkstyle.obj \
Hans Breuer's avatar
Hans Breuer committed
295 296 297
	gtkstylecontext.obj \
	gtkstyleproperties.obj \
	gtkstyleprovider.obj \
298 299
	gtkstatusbar.obj \
	gtkstock.obj \
Hans Breuer's avatar
Hans Breuer committed
300 301
	gtkswitch.obj \
	gtksymboliccolor.obj \
302 303
	gtktable.obj \
	gtktearoffmenuitem.obj \
Hans Breuer's avatar
Hans Breuer committed
304 305
	gtkthemingengine.obj \
	gtktimeline.obj \
306 307 308
	gtktoggleaction.obj \
	gtktogglebutton.obj \
	gtktoggletoolbutton.obj \
Hans Breuer's avatar
Hans Breuer committed
309
	gtktoolbar.obj \
310 311
	gtktoolbutton.obj \
	gtktoolitem.obj \
Hans Breuer's avatar
Hans Breuer committed
312 313
	gtktoolitemgroup.obj \
	gtktoolpalette.obj \
314 315 316
	gtktoolshell.obj \
	gtktooltip.obj \
	gtktreedatalist.obj \
317
	gtktypebuiltins.obj \
Hans Breuer's avatar
Hans Breuer committed
318
	gtktypeutils.obj \
319 320 321 322 323 324 325 326 327 328
	gtkuimanager.obj \
	gtkvbbox.obj \
	gtkvbox.obj \
	gtkviewport.obj \
	gtkvolumebutton.obj \
	gtkvpaned.obj \
	gtkvscale.obj \
	gtkvscrollbar.obj \
	gtkvseparator.obj \
	gtkwidget.obj \
Hans Breuer's avatar
Hans Breuer committed
329
	gtkwidgetpath.obj \
330 331 332
	gtkwin32embed.obj \
	gtkwin32embedwidget.obj \
	gtkwindow.obj \
Hans Breuer's avatar
Hans Breuer committed
333
#	gtkwrapbox.obj \
Tor Lillqvist's avatar
Tor Lillqvist committed
334 335

# Source headers which are non-autogenerated headers
Hans Breuer's avatar
Hans Breuer committed
336
gtk_public_h_sources = 		\
Tor Lillqvist's avatar
Tor Lillqvist committed
337
	gtk.h			\
Hans Breuer's avatar
Hans Breuer committed
338
	gtkaboutdialog.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
339 340
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
341
	gtkaccelmap.h		\
Hans Breuer's avatar
Hans Breuer committed
342
	gtkaccessible.h		\
343 344
	gtkaction.h		\
	gtkactiongroup.h	\
Hans Breuer's avatar
Hans Breuer committed
345
	gtkactivatable.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
346 347
	gtkadjustment.h		\
	gtkalignment.h		\
Hans Breuer's avatar
Hans Breuer committed
348 349 350 351 352
	gtkappchooser.h		\
	gtkappchooserbutton.h	\
	gtkappchooserdialog.h	\
	gtkappchooserwidget.h	\
	gtkapplication.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
353 354
	gtkarrow.h		\
	gtkaspectframe.h	\
Hans Breuer's avatar
Hans Breuer committed
355
	gtkassistant.h		\
356
	gtkbbox.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
357 358
	gtkbin.h		\
	gtkbindings.h		\
Hans Breuer's avatar
Hans Breuer committed
359
	gtkborder.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
360
	gtkbox.h		\
Hans Breuer's avatar
Hans Breuer committed
361 362
	gtkbuilder.h		\
	gtkbuildable.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
363 364
	gtkbutton.h		\
	gtkcalendar.h		\
Hans Breuer's avatar
Hans Breuer committed
365 366 367 368
	gtkcellarea.h		\
	gtkcellareacontext.h	\
	gtkcellareabox.h	\
	gtkcellareaboxcontext.h	\
369 370 371
	gtkcelleditable.h	\
	gtkcelllayout.h		\
	gtkcellrenderer.h	\
372
	gtkcellrendereraccel.h	\
Hans Breuer's avatar
Hans Breuer committed
373
	gtkcellrenderercombo.h	\
374
	gtkcellrendererpixbuf.h	\
Hans Breuer's avatar
Hans Breuer committed
375
	gtkcellrendererprogress.h \
Hans Breuer's avatar
Hans Breuer committed
376 377
	gtkcellrendererspin.h	\
	gtkcellrendererspinner.h\
378 379
	gtkcellrenderertext.h	\
	gtkcellrenderertoggle.h	\
Hans Breuer's avatar
Hans Breuer committed
380
	gtkcellview.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
381 382
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
383 384
	gtkclipboard.h		\
	gtkcolorbutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
385 386
	gtkcolorsel.h		\
	gtkcolorseldialog.h	\
387
	gtkcombobox.h		\
Hans Breuer's avatar
Hans Breuer committed
388
	gtkcomboboxtext.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
389
	gtkcontainer.h		\
Hans Breuer's avatar
Hans Breuer committed
390 391
	gtkcssprovider.h	\
	gtkdebug.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
392 393 394
	gtkdialog.h		\
	gtkdnd.h		\
	gtkdrawingarea.h	\
Hans Breuer's avatar
Hans Breuer committed
395
	gtkeditable.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
396
	gtkentry.h		\
Hans Breuer's avatar
Hans Breuer committed
397
	gtkentrybuffer.h	\
398
	gtkentrycompletion.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
399 400
	gtkenums.h		\
	gtkeventbox.h		\
401
	gtkexpander.h		\
Hans Breuer's avatar
Hans Breuer committed
402 403 404 405
	gtkfilechooser.h	\
	gtkfilechooserbutton.h	\
	gtkfilechooserdialog.h	\
	gtkfilechooserwidget.h	\
Hans Breuer's avatar
Hans Breuer committed
406
	gtkfilefilter.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
407
	gtkfixed.h		\
408
	gtkfontbutton.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
409 410
	gtkfontsel.h		\
	gtkframe.h		\
Hans Breuer's avatar
Hans Breuer committed
411 412
	gtkgradient.h		\
	gtkgrid.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
413 414 415 416 417 418 419
	gtkhandlebox.h		\
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
Hans Breuer's avatar
Hans Breuer committed
420
	gtkhsv.h		\
421
	gtkiconfactory.h	\
422
	gtkicontheme.h		\
423
	gtkiconview.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
424
	gtkimage.h		\
425
	gtkimagemenuitem.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
426
	gtkimcontext.h		\
427
	gtkimcontextsimple.h	\
428
	gtkimmodule.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
429
	gtkimmulticontext.h	\
Hans Breuer's avatar
Hans Breuer committed
430
	gtkinfobar.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
431 432
	gtkinvisible.h		\
	gtklabel.h		\
Hans Breuer's avatar
Hans Breuer committed
433
	gtklayout.h		\
Hans Breuer's avatar
updated  
Hans Breuer committed
434
	gtklinkbutton.h		\
435
	gtkliststore.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
436 437 438 439 440
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
Hans Breuer's avatar
Hans Breuer committed
441
	gtkmenutoolbutton.h	\
442
	gtkmessagedialog.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
443
	gtkmisc.h		\
Hans Breuer's avatar
Hans Breuer committed
444
	gtkmodules.h		\
445
	gtkmountoperation.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
446
	gtknotebook.h		\
Hans Breuer's avatar
Hans Breuer committed
447
	gtkoffscreenwindow.h	\
Hans Breuer's avatar
Hans Breuer committed
448
	gtkorientable.h		\
449
	gtkpagesetup.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
450
	gtkpaned.h		\
451
	gtkpapersize.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
452
	gtkplug.h		\
453 454
	gtkprintcontext.h	\
	gtkprintoperation.h	\
Hans Breuer's avatar
Hans Breuer committed
455
	gtkprintoperationpreview.h \
456
	gtkprintsettings.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
457
	gtkprogressbar.h	\
458
	gtkradioaction.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
459 460
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
461
	gtkradiotoolbutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
462 463
	gtkrange.h		\
	gtkrc.h			\
464
	gtkrecentaction.h	\
Hans Breuer's avatar
Hans Breuer committed
465
	gtkrecentchooser.h	\
Hans Breuer's avatar
updated  
Hans Breuer committed
466
	gtkrecentchooserdialog.h \
Hans Breuer's avatar
Hans Breuer committed
467
	gtkrecentchoosermenu.h	\
Hans Breuer's avatar
updated  
Hans Breuer committed
468
	gtkrecentchooserwidget.h \
Hans Breuer's avatar
Hans Breuer committed
469 470
	gtkrecentfilter.h	\
	gtkrecentmanager.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
471
	gtkscale.h		\
472
	gtkscalebutton.h	\
Hans Breuer's avatar
Hans Breuer committed
473
	gtkscrollable.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
474 475 476 477
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
478 479 480
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
	gtksettings.h		\
Hans Breuer's avatar
Hans Breuer committed
481
	gtkshow.h		\
Hans Breuer's avatar
Hans Breuer committed
482
	gtksizegroup.h		\
Hans Breuer's avatar
Hans Breuer committed
483
	gtksizerequest.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
484 485
	gtksocket.h		\
	gtkspinbutton.h		\
Hans Breuer's avatar
Hans Breuer committed
486
	gtkspinner.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
487
	gtkstatusbar.h		\
Hans Breuer's avatar
Hans Breuer committed
488
	gtkstatusicon.h		\
489
	gtkstock.h		\
Hans Breuer's avatar
Hans Breuer committed
490 491 492
	gtkstylecontext.h	\
	gtkstyleproperties.h	\
	gtkstyleprovider.h	\
493
	gtkstyle.h		\
Hans Breuer's avatar
Hans Breuer committed
494 495
	gtkswitch.h		\
	gtksymboliccolor.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
496
	gtktable.h		\
Hans Breuer's avatar
Hans Breuer committed
497 498
	gtktearoffmenuitem.h	\
	gtktestutils.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
499
	gtktextbuffer.h		\
Hans Breuer's avatar
updated  
Hans Breuer committed
500
	gtktextbufferrichtext.h	\
501 502
	gtktextchild.h		\
	gtktextdisplay.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
503 504 505 506 507
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
Hans Breuer's avatar
Hans Breuer committed
508
	gtkthemingengine.h	\
509
	gtktoggleaction.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
510
	gtktogglebutton.h	\
511
	gtktoggletoolbutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
512
	gtktoolbar.h		\
513 514
	gtktoolbutton.h		\
	gtktoolitem.h		\
Hans Breuer's avatar
Hans Breuer committed
515
	gtktoolitemgroup.h	\
Hans Breuer's avatar
Hans Breuer committed
516
	gtktoolpalette.h	\
Hans Breuer's avatar
Hans Breuer committed
517
	gtktoolshell.h		\
Hans Breuer's avatar
Hans Breuer committed
518
	gtktooltip.h		\
519
	gtktreednd.h		\
520
	gtktreemodel.h		\
521
	gtktreemodelfilter.h	\
522
	gtktreemodelsort.h	\
523
	gtktreeselection.h	\
524
	gtktreesortable.h	\
525 526 527
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
528
	gtktypeutils.h		\
Hans Breuer's avatar
Hans Breuer committed
529
	gtkuimanager.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
530 531 532
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
533
	gtkvolumebutton.h	\
Tor Lillqvist's avatar
Tor Lillqvist committed
534 535 536 537 538
	gtkvpaned.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
Hans Breuer's avatar
Hans Breuer committed
539
	gtkwidgetpath.h		\
Tor Lillqvist's avatar
Tor Lillqvist committed
540 541
	gtkwindow.h

542 543
# these aren't use here, but listed for reference
gtk_extra_sources = \
544
	gtkversion.h		\
545 546 547
	gtk-boxed.defs		\
	gtkmarshal.list		\

Tor Lillqvist's avatar
Tor Lillqvist committed
548 549 550
..\config.h : ..\config.h.win32
	copy ..\config.h.win32 ..\config.h

551
gtk.def: gtk.symbols makefile.msc
Hans Breuer's avatar
Hans Breuer committed
552
	echo EXPORTS > gtk.def
Hans Breuer's avatar
Hans Breuer committed
553
	cl /EP -DG_OS_WIN32 -DGDK_WINDOWING_WIN32 \
554 555
		-DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
		-DG_GNUC_PRINTF=;G_GNUC_PRINTF gtk.symbols >> gtk.def
Hans Breuer's avatar
Hans Breuer committed
556

Tor Lillqvist's avatar
Tor Lillqvist committed
557
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
558 559 560 561 562 563 564 565 566 567 568
# 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
569

570 571 572 573 574 575 576 577 578
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
579

580
# private marshalers
Hans Breuer's avatar
Hans Breuer committed
581 582
gtkmarshalers.h : gtkmarshalers.list makefile.msc
	$(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --header >gtkmarshalers.h
583

Hans Breuer's avatar
Hans Breuer committed
584
gtkmarshalers.c : gtkmarshalers.list makefile.msc
585 586
	$(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --body >gtkmarshalers.c

587 588
gtktypefuncs.c : makefile.msc
	echo /*none*/ > gtktypefuncs.c
Tor Lillqvist's avatar
Tor Lillqvist committed
589

590 591
gtk-win32.res : gtk-win32.rc
	rc -DBUILDNUMBER=0 -r -fo gtk-win32.res gtk-win32.rc
Hans Breuer's avatar
Hans Breuer committed
592

593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621
# build some static limits to covercome command line too long
# may also speed up the build

gtk-cell.lib : $(gtk_OBJECTS_cell)
	lib /out:gtk-cell.lib $(gtk_OBJECTS_cell)

gtk-file.lib : $(gtk_OBJECTS_file)
	lib /out:gtk-file.lib $(gtk_OBJECTS_file)

gtk-print.lib : $(gtk_OBJECTS_print)
	lib /out:gtk-print.lib $(gtk_OBJECTS_print)

gtk-recent.lib : $(gtk_OBJECTS_recent)
	lib /out:gtk-recent.lib $(gtk_OBJECTS_recent)

gtk-text.lib : $(gtk_OBJECTS_text)
	lib /out:gtk-text.lib $(gtk_OBJECTS_text)

gtk-core.lib : $(gtk_OBJECTS) 
	lib /out:gtk-core.lib $(gtk_OBJECTS)

gtk_SUBLIBS = \
	gtk-cell.lib \
	gtk-file.lib \
	gtk-print.lib \
	gtk-recent.lib \
	gtk-text.lib \
	gtk-core.lib

Tor Lillqvist's avatar
Tor Lillqvist committed
622 623 624
#
# Linking:
#
625
libgtk-win32-$(GTK_VER)-0.dll : $(gtk_SUBLIBS) gtk.def gtk-win32.res
Hans Breuer's avatar
Hans Breuer committed
626 627 628
	$(CC) $(CFLAGS) -LD -Fm -Fe$@ $(gtk_SUBLIBS) gtk-win32.res $(EXTRALIBS) \
	gdi32.lib user32.lib advapi32.lib wsock32.lib shell32.lib ole32.lib \
	comdlg32.lib winspool.lib comctl32.lib \
629
	$(LDFLAGS) /implib:gtk-win32-$(GTK_VER).lib /def:gtk.def
630 631 632

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
633

634 635 636
gtk-query-immodules-$(GTK_VER).exe : queryimmodules.obj
	$(CC) $(CFLAGS) -Fe$@ queryimmodules.obj $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(LDFLAGS)

637
gtk-update-icon-cache.exe : updateiconcache.obj
638
	$(CC) $(CFLAGS) -Fe$@ updateiconcache.obj $(GDK_PIXBUF_LIBS) $(GLIB_LIBS) $(INTL_LIBS) $(PANGO_LIBS) $(LDFLAGS)
639

Hans Breuer's avatar
Hans Breuer committed
640 641 642
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
643 644
# General rule for compiling the objects into the DLL
.c.obj :
645
	$(CC) $(CFLAGS) -GF -Zm400 -GD -c -DGTK_COMPILATION -DG_LOG_DOMAIN=\"Gtk\" $<
Tor Lillqvist's avatar
Tor Lillqvist committed
646

647 648 649 650 651 652
$(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)