Makefile.am 31.5 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1
# Makefile.am for gtk+/gtk
Elliot Lee's avatar
Elliot Lee committed
2

3
SUBDIRS=theme-bits
4

5 6
if OS_UNIX
SUBDIRS += xdgmime
7
GTK_PRINT_PREVIEW_COMMAND="evince %f"
8 9
endif

10 11 12 13 14 15 16
DIST_SUBDIRS=theme-bits xdgmime

if HAVE_CUPS
GTK_PRINT_BACKENDS=pdf,cups
else
GTK_PRINT_BACKENDS=pdf,lpr
endif
17

18
INCLUDES =						\
19
	-DG_LOG_DOMAIN=\"Gtk\"				\
20
	-DGTK_LIBDIR=\"$(libdir)\"			\
21
	-DGTK_DATADIR=\"$(datadir)\"			\
22 23
	-DGTK_DATA_PREFIX=\"$(prefix)\"			\
	-DGTK_SYSCONFDIR=\"$(sysconfdir)\"		\
24 25 26
	-DGTK_VERSION=\"$(GTK_VERSION)\"		\
	-DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\"	\
	-DGTK_HOST=\"$(host)\"				\
Tor Lillqvist's avatar
Tor Lillqvist committed
27
	-DGTK_COMPILATION				\
28
	-DGTK_PRINT_BACKENDS=\"$(GTK_PRINT_BACKENDS)\"	\
29
	-DGTK_PRINT_PREVIEW_COMMAND=\"$(GTK_PRINT_PREVIEW_COMMAND)\"	\
Owen Taylor's avatar
Owen Taylor committed
30
	-I$(top_builddir)/gtk				\
31 32
	-I$(top_srcdir) -I../gdk			\
	-I$(top_srcdir)/gdk				\
33
	-I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf	\
Manish Singh's avatar
Manish Singh committed
34
	-DGDK_PIXBUF_DISABLE_DEPRECATED			\
35
	-DGDK_DISABLE_DEPRECATED			\
36
	-DGTK_DISABLE_DEPRECATED			\
37
	-DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED		\
38
	-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED		\
39
	$(GTK_DEBUG_FLAGS)				\
40 41
	$(GTK_DEP_CFLAGS)				\
	$(gtk_clipboard_dnd_c_sources_CFLAGS)
42

43
gtarget=$(gdktarget)
Elliot Lee's avatar
Elliot Lee committed
44

Tor Lillqvist's avatar
Tor Lillqvist committed
45 46 47 48 49 50
if PLATFORM_WIN32
no_undefined = -no-undefined
endif

if OS_WIN32
gtk_def = gtk.def
51
gtk_win32_symbols = -export-symbols $(gtk_def)
Tor Lillqvist's avatar
Tor Lillqvist committed
52

53 54
gtk_win32_res = gtk-win32-res.o
gtk_win32_res_ldflag = -Wl,$(gtk_win32_res)
Tor Lillqvist's avatar
Tor Lillqvist committed
55

56 57
gtk-win32-res.o : gtk-win32.rc
	$(WINDRES) gtk-win32.rc $@
Tor Lillqvist's avatar
Tor Lillqvist committed
58

59 60 61 62
install-def-file: gtk.def
	$(INSTALL) $(gtk_def) $(DESTDIR)$(libdir)/gtk-win32-2.0.def
uninstall-def-file:
	-rm $(DESTDIR)$(libdir)/gtk-win32-2.0.def
Tor Lillqvist's avatar
Tor Lillqvist committed
63
else
64 65
install-def-file:
uninstall-def-file:
Tor Lillqvist's avatar
Tor Lillqvist committed
66 67 68
endif

if MS_LIB_AVAILABLE
Owen Taylor's avatar
Owen Taylor committed
69
noinst_DATA = gtk-win32-$(GTK_API_VERSION).lib
Tor Lillqvist's avatar
Tor Lillqvist committed
70

Owen Taylor's avatar
Owen Taylor committed
71 72
gtk-win32-$(GTK_API_VERSION).lib: libgtk-win32-$(GTK_API_VERSION).la gtk.def
	lib -name:libgtk-win32-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gtk.def -out:$@
Tor Lillqvist's avatar
Tor Lillqvist committed
73 74

install-ms-lib:
Owen Taylor's avatar
Owen Taylor committed
75
	$(INSTALL) gtk-win32-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
Tor Lillqvist's avatar
Tor Lillqvist committed
76 77

uninstall-ms-lib:
Owen Taylor's avatar
Owen Taylor committed
78
	-rm $(DESTDIR)$(libdir)/gtk-win32-$(GTK_API_VERSION).lib
Tor Lillqvist's avatar
Tor Lillqvist committed
79 80 81 82 83
else
install-ms-lib:
uninstall-ms-lib:
endif

84
gtk.def: gtk.symbols
85
	(echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gtk.symbols | sed -e '/^$$/d' -e 's/^/	/' -e 's/G_GNUC_[^ ]*//g') > gtk.def
86 87

gtkalias.h: gtk.symbols
88
	  $(PERL) $(srcdir)/makegtkalias.pl < $(srcdir)/gtk.symbols > gtkalias.h
89 90
gtkaliasdef.c: gtk.symbols
	  $(PERL) $(srcdir)/makegtkalias.pl -def < $(srcdir)/gtk.symbols > gtkaliasdef.c
91

92
if OS_LINUX
93
TESTS = abicheck.sh
94 95
endif

96
# libtool stuff: set version and export symbols for resolving
97 98
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here
99
libgtkincludedir = $(includedir)/gtk-2.0/gtk
100 101 102 103 104
libadd =								\
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la	\
	$(top_builddir)/gdk/$(gdktargetlib)				\
	$(GTK_DEP_LIBS)

105 106 107 108
if OS_UNIX
libadd += xdgmime/libxdgmime.la
endif

109 110 111 112 113 114
# common options for the various packages.
libtool_opts =							\
  -version-info $(LT_VERSION_INFO)				\
  -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)	\
  -rpath $(libdir) $(libgtk_target_ldflags)

115

116 117 118
#
# setup source file variables
#
119

120 121
# GTK+ header files for public installation (non-generated, or generated
# by configure)
122
gtk_public_h_sources =          \
Elliot Lee's avatar
Elliot Lee committed
123
	gtk.h			\
124
	gtkaboutdialog.h	\
Tim Janik's avatar
Tim Janik committed
125 126
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
127
	gtkaccelmap.h		\
128
	gtkaccessible.h		\
129 130
	gtkaction.h		\
	gtkactiongroup.h	\
Elliot Lee's avatar
Elliot Lee committed
131 132 133
	gtkadjustment.h		\
	gtkalignment.h		\
	gtkarrow.h		\
134
	gtkaspectframe.h	\
135
	gtkassistant.h		\
136
	gtkbbox.h		\
Elliot Lee's avatar
Elliot Lee committed
137
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
138
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
139 140
	gtkbox.h		\
	gtkbutton.h		\
141
	gtkcalendar.h		\
142
	gtkcelleditable.h	\
143
	gtkcelllayout.h		\
144
	gtkcellrenderer.h	\
145
	gtkcellrendereraccel.h	\
146
	gtkcellrenderercombo.h	\
147
	gtkcellrendererpixbuf.h	\
148
	gtkcellrendererprogress.h \
149
	gtkcellrendererspin.h   \
150 151
	gtkcellrenderertext.h	\
	gtkcellrenderertoggle.h	\
152
	gtkcellview.h		\
Elliot Lee's avatar
Elliot Lee committed
153 154
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
Owen Taylor's avatar
Owen Taylor committed
155
	gtkclipboard.h		\
156
	gtkclist.h		\
157
	gtkcolorbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
158
	gtkcolorsel.h		\
159
	gtkcolorseldialog.h	\
160
	gtkcombo.h		\
161 162
	gtkcombobox.h		\
	gtkcomboboxentry.h	\
Elliot Lee's avatar
Elliot Lee committed
163
	gtkcontainer.h		\
164
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
165
	gtkcurve.h		\
166
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
167
	gtkdialog.h		\
168
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
169
	gtkdrawingarea.h	\
170
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
171
	gtkentry.h		\
172
	gtkentrycompletion.h	\
Elliot Lee's avatar
Elliot Lee committed
173 174
	gtkenums.h		\
	gtkeventbox.h		\
175
	gtkexpander.h		\
176
	gtkfilechooser.h        \
177
	gtkfilechooserbutton.h  \
178 179 180
	gtkfilechooserdialog.h  \
	gtkfilechooserwidget.h  \
	gtkfilefilter.h		\
Elliot Lee's avatar
Elliot Lee committed
181 182
	gtkfilesel.h		\
	gtkfixed.h		\
183
	gtkfontbutton.h		\
184
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
185 186 187
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
188
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
189 190 191 192 193 194 195
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
196
	gtkiconfactory.h	\
197
	gtkicontheme.h		\
198
	gtkiconview.h		\
Elliot Lee's avatar
Elliot Lee committed
199
	gtkimage.h		\
200
	gtkimagemenuitem.h	\
201
	gtkimcontext.h		\
202
	gtkimcontextsimple.h	\
Owen Taylor's avatar
Owen Taylor committed
203
	gtkimmodule.h		\
204
	gtkimmulticontext.h	\
Elliot Lee's avatar
Elliot Lee committed
205
	gtkinputdialog.h	\
206
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
207
	gtkitem.h		\
Tim Janik's avatar
Tim Janik committed
208
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
209
	gtklabel.h		\
210
	gtklayout.h             \
211
	gtklinkbutton.h		\
Elliot Lee's avatar
Elliot Lee committed
212 213
	gtklist.h		\
	gtklistitem.h		\
214
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
215 216 217 218 219
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
220
	gtkmenutoolbutton.h	\
221
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
222
	gtkmisc.h		\
223
	gtkmodules.h		\
Elliot Lee's avatar
Elliot Lee committed
224 225
	gtknotebook.h		\
	gtkobject.h		\
226
	gtkoldeditable.h	\
Elliot Lee's avatar
Elliot Lee committed
227
	gtkoptionmenu.h		\
228
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
229
	gtkpaned.h		\
230
	gtkpapersize.h		\
Elliot Lee's avatar
Elliot Lee committed
231
	gtkpixmap.h		\
232
	gtkplug.h		\
Elliot Lee's avatar
Elliot Lee committed
233
	gtkpreview.h		\
234 235
	gtkprintcontext.h	\
	gtkprintoperation.h	\
236
	gtkprintoperationpreview.h	\
237
	gtkprintsettings.h	\
238
	gtkprivate.h		\
239
	gtkprogress.h		\
Elliot Lee's avatar
Elliot Lee committed
240
	gtkprogressbar.h	\
241
	gtkradioaction.h	\
Elliot Lee's avatar
Elliot Lee committed
242 243
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
244
	gtkradiotoolbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
245 246
	gtkrange.h		\
	gtkrc.h			\
247 248 249 250 251 252
	gtkrecentchooser.h 	\
	gtkrecentchooserdialog.h \
	gtkrecentchoosermenu.h 	\
	gtkrecentchooserwidget.h \
	gtkrecentfilter.h 	\
	gtkrecentmanager.h 	\
Elliot Lee's avatar
Elliot Lee committed
253 254 255 256 257 258
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
259 260
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
261
	gtksettings.h		\
Elliot Lee's avatar
Elliot Lee committed
262
	gtksignal.h		\
263
	gtksizegroup.h		\
264
	gtksocket.h		\
265
	gtkspinbutton.h		\
266
	gtkstatusbar.h		\
267
	gtkstatusicon.h		\
268
	gtkstock.h		\
269
	gtkstyle.h		\
Elliot Lee's avatar
Elliot Lee committed
270
	gtktable.h		\
271
	gtktearoffmenuitem.h    \
272
	gtktext.h		\
273
	gtktextbuffer.h		\
274
	gtktextbufferrichtext.h	\
275
	gtktextchild.h		\
276
	gtktextdisplay.h	\
277 278 279 280 281
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
282
	gtktipsquery.h		\
283
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
284
	gtktogglebutton.h	\
285
	gtktoggletoolbutton.h	\
286
	gtktoolbar.h		\
287 288
	gtktoolbutton.h		\
	gtktoolitem.h		\
Elliot Lee's avatar
Elliot Lee committed
289 290
	gtktooltips.h		\
	gtktree.h		\
291
	gtktreednd.h		\
Elliot Lee's avatar
Elliot Lee committed
292
	gtktreeitem.h		\
293
	gtktreemodel.h		\
294
	gtktreemodelfilter.h	\
295
	gtktreemodelsort.h	\
296
	gtktreeselection.h	\
297
	gtktreesortable.h	\
298 299 300
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
301
	gtktypeutils.h		\
302
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
303 304 305 306 307 308 309 310 311
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
312 313
	gtkwindow.h

314 315
gtk_unix_print_public_h_sources =    \
	gtkpagesetupunixdialog.h	\
316
	gtkprintunixdialog.h		\
317
	gtkprinter.h			\
318 319
	gtkprintjob.h

320

321 322 323 324 325 326
# Installed header files without compatibility guarantees
# that are not include in gtk/gtk.h
gtk_semi_private_h_sources =    \
	gtktextlayout.h		\
	gtkfilesystem.h

327
# GTK+ header files that don't get installed
Soeren Sandmann's avatar
Soeren Sandmann committed
328
gtk_private_h_sources =		\
Matthias Clasen's avatar
Matthias Clasen committed
329
	gtkdndcursors.h		\
330
	gtkentryprivate.h	\
331
	gtkfilechooserdefault.h	\
332
	gtkfilechooserembed.h	\
333 334
	gtkfilechooserentry.h	\
	gtkfilechooserprivate.h	\
335
	gtkfilechoosersettings.h \
336 337
	gtkfilechooserutils.h	\
	gtkfilesystemmodel.h	\
338
	gtkfilesystemunix.h	\
339
	gtkiconcache.h		\
340
	gtkpathbar.h		\
341
	gtkplugprivate.h	\
342
	gtkprintoperation-private.h\
Matthias Clasen's avatar
Matthias Clasen committed
343
	gtkprintutils.h		\
Soeren Sandmann's avatar
Soeren Sandmann committed
344
	gtkrbtree.h		\
345 346 347
	gtkrecentchooserdefault.h \
	gtkrecentchooserprivate.h \
	gtkrecentchooserutils.h \
Soeren Sandmann's avatar
Soeren Sandmann committed
348
	gtksequence.h		\
349
	gtksocketprivate.h	\
350
	gtktextbtree.h		\
Soeren Sandmann's avatar
Soeren Sandmann committed
351
	gtktextchildprivate.h	\
352 353
	gtktextiterprivate.h	\
	gtktextmarkprivate.h	\
354
	gtktextsegment.h	\
355
	gtktexttagprivate.h	\
356 357
	gtktexttypes.h		\
	gtktextutil.h		\
Owen Taylor's avatar
Owen Taylor committed
358
	gtkthemes.h		\
359
	gtktoggleactionprivate.h\
Owen Taylor's avatar
Owen Taylor committed
360
	gtktreedatalist.h	\
361
	gtktreeprivate.h	\
362
	gtkwindow-decorate.h
363

364
# GTK+ C sources to build the library from
365
gtk_c_sources =                 \
366
	fnmatch.c		\
367
	gtkaboutdialog.c	\
368 369
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
370 371
	gtkaccelmap.c		\
	gtkaccessible.c		\
372 373
	gtkaction.c		\
	gtkactiongroup.c	\
374 375 376 377
	gtkadjustment.c		\
	gtkalignment.c		\
	gtkarrow.c		\
	gtkaspectframe.c	\
378
	gtkassistant.c		\
379
	gtkbbox.c		\
380 381 382 383 384
	gtkbin.c		\
	gtkbindings.c		\
	gtkbox.c		\
	gtkbutton.c		\
	gtkcalendar.c		\
385
	gtkcelleditable.c	\
386
	gtkcelllayout.c		\
387
	gtkcellrenderer.c	\
388
	gtkcellrendereraccel.c	\
389
	gtkcellrenderercombo.c	\
390
	gtkcellrendererpixbuf.c	\
391
	gtkcellrendererprogress.c \
392
	gtkcellrendererspin.c   \
393 394
	gtkcellrenderertext.c	\
	gtkcellrenderertoggle.c	\
395
	gtkcellview.c		\
396 397 398
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
	gtkclist.c		\
399
	gtkcolorbutton.c	\
400
	gtkcolorsel.c		\
401
	gtkcolorseldialog.c	\
402
	gtkcombo.c		\
403 404
	gtkcombobox.c		\
	gtkcomboboxentry.c	\
405 406 407 408 409 410 411
	gtkcontainer.c		\
	gtkctree.c		\
	gtkcurve.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
	gtkeditable.c           \
	gtkentry.c		\
412
	gtkentrycompletion.c	\
413
	gtkeventbox.c		\
414
	gtkexpander.c		\
415
	gtkfilechooser.c	\
416
	gtkfilechooserbutton.c	\
417
	gtkfilechooserdefault.c	\
418
	gtkfilechooserdialog.c	\
419
	gtkfilechooserembed.c	\
420
	gtkfilechooserentry.c	\
421
	gtkfilechoosersettings.c \
422 423 424
	gtkfilechooserutils.c	\
	gtkfilechooserwidget.c	\
	gtkfilefilter.c		\
425
	gtkfilesel.c		\
426 427
	gtkfilesystem.c		\
	gtkfilesystemmodel.c	\
428
	gtkfixed.c		\
429
	gtkfontbutton.c         \
430 431 432 433 434 435 436 437 438 439 440 441
	gtkfontsel.c            \
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
	gtkhandlebox.c		\
	gtkhbbox.c		\
	gtkhbox.c		\
	gtkhpaned.c		\
	gtkhruler.c		\
	gtkhscale.c		\
	gtkhscrollbar.c		\
	gtkhseparator.c		\
442
	gtkhsv.c		\
443
	gtkhsv.h		\
444
	gtkiconcache.c		\
445
	gtkiconfactory.c	\
446
	gtkicontheme.c		\
447
	gtkiconview.c		\
448
	gtkimage.c		\
449
	gtkimagemenuitem.c	\
450 451
	gtkimcontext.c		\
	gtkimcontextsimple.c	\
Owen Taylor's avatar
Owen Taylor committed
452
	gtkimmodule.c		\
453
	gtkimmulticontext.c	\
454 455 456 457 458
	gtkinputdialog.c	\
	gtkintl.h		\
	gtkinvisible.c		\
	gtkitem.c		\
	gtkitemfactory.c	\
459 460
	gtkkeyhash.c		\
	gtkkeyhash.h		\
461 462
	gtklabel.c		\
	gtklayout.c		\
463
	gtklinkbutton.c		\
464 465
	gtklist.c		\
	gtklistitem.c		\
466
	gtkliststore.c		\
467
	gtkmain.c		\
468
	gtkmarshal.c		\
469
	gtkmarshalers.c		\
470 471 472 473
	gtkmenu.c		\
	gtkmenubar.c		\
	gtkmenuitem.c		\
	gtkmenushell.c		\
474
	gtkmenutoolbutton.c	\
475
	gtkmessagedialog.c	\
476
	gtkmisc.c		\
477 478
	gtkmnemonichash.c	\
	gtkmnemonichash.h	\
479
	gtkmodules.c		\
480 481
	gtknotebook.c		\
	gtkobject.c		\
Owen Taylor's avatar
Owen Taylor committed
482
	gtkoldeditable.c	\
483
	gtkoptionmenu.c		\
484
	gtkpagesetup.c		\
485
	gtkpaned.c		\
486
	gtkpapersize.c		\
487
	gtkpathbar.c		\
488
	gtkpixmap.c		\
489
	gtkplug.c		\
490
	gtkpreview.c		\
491 492
	gtkprintcontext.c	\
	gtkprintoperation.c	\
493
	gtkprintoperationpreview.c	\
494
	gtkprintsettings.c	\
Matthias Clasen's avatar
Matthias Clasen committed
495
	gtkprintutils.c		\
496 497
	gtkprogress.c		\
	gtkprogressbar.c	\
498
	gtkradioaction.c	\
499 500
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
501
	gtkradiotoolbutton.c	\
502
	gtkrange.c		\
503
	gtkrbtree.c 		\
504
	gtkrc.c			\
505 506 507 508 509 510 511 512
	gtkrecentchooserdefault.c \
	gtkrecentchooserdialog.c \
	gtkrecentchoosermenu.c 	\
	gtkrecentchooserwidget.c \
	gtkrecentchooserutils.c \
	gtkrecentchooser.c 	\
	gtkrecentfilter.c 	\
	gtkrecentmanager.c 	\
513 514 515 516 517 518
	gtkruler.c		\
	gtkscale.c		\
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
519 520
	gtkseparatormenuitem.c	\
	gtkseparatortoolitem.c	\
521
	gtksequence.c		\
522
	gtksettings.c		\
523
	gtksignal.c		\
524
	gtksizegroup.c		\
525
	gtksocket.c		\
526
	gtkspinbutton.c		\
527
	gtkstatusbar.c		\
528
	gtkstatusicon.c		\
529
	gtkstock.c		\
530 531 532 533
	gtkstyle.c		\
	gtktable.c		\
	gtktearoffmenuitem.c    \
	gtktext.c		\
534 535
	gtktextbtree.c		\
	gtktextbuffer.c		\
536 537 538
	gtktextbufferrichtext.c	\
	gtktextbufferserialize.c\
	gtktextbufferserialize.h\
539 540 541 542 543 544 545 546 547 548 549
	gtktextchild.c		\
	gtktextdisplay.c	\
	gtktextiter.c		\
	gtktextiterprivate.h	\
	gtktextlayout.c		\
	gtktextmark.c		\
	gtktextmarkprivate.h	\
	gtktextsegment.c	\
	gtktexttag.c		\
	gtktexttagtable.c	\
	gtktexttypes.c		\
550
	gtktextutil.c		\
551
	gtktextview.c		\
552 553
	gtkthemes.c		\
	gtktipsquery.c		\
554
	gtktoggleaction.c	\
555
	gtktogglebutton.c	\
556 557 558 559
	gtktoggletoolbutton.c	\
	gtktoolbar.c		\
	gtktoolbutton.c		\
	gtktoolitem.c		\
560 561
	gtktooltips.c		\
	gtktree.c		\
562
	gtktreedatalist.c	\
563
	gtktreednd.c		\
564
	gtktreeitem.c		\
565
	gtktreemodel.c		\
566
	gtktreemodelfilter.c	\
567
	gtktreemodelsort.c	\
568
	gtktreeselection.c	\
569
	gtktreesortable.c	\
570 571 572
	gtktreestore.c		\
	gtktreeview.c		\
	gtktreeviewcolumn.c	\
573
	gtktypebuiltins.c	\
574
	gtktypeutils.c		\
575
	gtkuimanager.c		\
576 577 578 579 580 581 582 583 584
	gtkvbbox.c		\
	gtkvbox.c		\
	gtkviewport.c		\
	gtkvpaned.c		\
	gtkvruler.c		\
	gtkvscale.c		\
	gtkvscrollbar.c		\
	gtkvseparator.c		\
	gtkwidget.c		\
585
	gtkwindow-decorate.c    \
586
	gtkwindow.c		\
Anders Carlsson's avatar
Anders Carlsson committed
587 588
	xembed.h		\
	$(gtk_clipboard_dnd_c_sources)
589

590
if OS_UNIX
591 592 593 594 595 596
gtk_private_h_sources += \
	gtkfilesystemunix.h		\
	gtkprintbackend.h		\
	gtkprinter-private.h		\
	gtkprinteroption.h		\
	gtkprinteroptionset.h		\
597
	gtkprinteroptionwidget.h
598 599 600 601 602 603 604 605 606 607 608 609

gtk_c_sources += \
	gtkfilesystemunix.c		\
	gtkpagesetupunixdialog.c	\
	gtkprinter.c			\
	gtkprinteroption.c		\
	gtkprinteroptionset.c		\
	gtkprinteroptionwidget.c	\
	gtkprintjob.c			\
	gtkprintoperation-unix.c	\
	gtkprintunixdialog.c		\
        gtkprintbackend.c
610 611
endif

612
if OS_WIN32
613
gtk_private_h_sources += gtkfilesystemwin32.h gtkprint-win32.h
614 615 616 617 618

gtk_c_sources += \
	gtkfilesystemwin32.c		\
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
619 620
endif

621
if USE_X11
622 623 624 625 626
gtk_private_h_sources += gtkxembed.h gtktrayicon.h
gtk_c_sources += \
	gtkplug-x11.c   \
	gtksocket-x11.c \
	gtkxembed.c     \
627
	gtktrayicon-x11.c
628 629
else
if USE_WIN32
630 631
gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
gtk_c_sources +=         gtkplug-win32.c gtksocket-win32.c gtkwin32embed.c gtkwin32embedwidget.c
632 633 634 635
else
gtk_c_sources +=         gtkplug-stub.c gtksocket-stub.c
endif
endif
636

Anders Carlsson's avatar
Anders Carlsson committed
637 638 639 640 641
if USE_QUARTZ
gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c gtkquartz.h
gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
else
gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
642
gtk_clipboard_dnd_c_sources_CFLAGS = 
Anders Carlsson's avatar
Anders Carlsson committed
643 644
endif

645 646 647 648 649
# we use our own built_sources variable rules to avoid automake's
# BUILT_SOURCES oddities
# we generate frequently rebuild files piggyback on a stamp file, so sources
# depending on them only get rebuild when the built source actually changed
# content
650 651

# built sources that get installed with the header files
652 653 654 655
gtk_built_public_sources =			\
	gtkmarshal.h				\
	gtktypebuiltins.h

656
# built sources that don't get installed
657
gtk_built_private_headers =			\
658
	gtkalias.h				\
659 660
	gtkmarshalers.h				\
	gtkbuiltincache.h
661 662

gtk_built_sources =				\
663
	gtkaliasdef.c				\
664 665 666 667 668
	gtktypebuiltins.c			\
	gtkmarshalers.c				\
	gtkmarshalers.h				\
	gtkmarshal.c				\
	${gtk_built_private_headers}		\
669 670 671 672 673
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
	stamp-gtkmarshal.h			\
Matthias Clasen's avatar
Matthias Clasen committed
674 675
	stamp-gtktypebuiltins.h			\
	stamp-icons
676

677 678 679
# non-header sources (headers should be specified in the above variables)
# that don't serve as direct make target sources, i.e. they don't have
# their own .lo rules and don't get publically installed
680
gtk_extra_sources =				\
681
	paper_names.c				\
682
	paper_names_offsets.c			\
683
	gen-paper-names.c			\
684
	gtk.symbols				\
685 686 687
	gtkversion.h.in				\
	gtkmarshalers.list			\
	gtkmarshal.list
688

689
#
Kristian Rietveld's avatar
Kristian Rietveld committed
690
# setup GTK+ sources and their dependencies
691
#
Owen Taylor's avatar
Owen Taylor committed
692
MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files)
Matt Wilson's avatar
Matt Wilson committed
693 694
EXTRA_HEADERS =
EXTRA_DIST = $(gtk_private_h_sources) $(gtk_extra_sources)
695
EXTRA_DIST += $(gtk_built_sources)
696
EXTRA_DIST += $(STOCK_ICONS)
697 698 699 700

#
# rules to generate built sources
#
Kristian Rietveld's avatar
Kristian Rietveld committed
701
# setup autogeneration dependencies
702
gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc
Matt Wilson's avatar
Matt Wilson committed
703
CLEANFILES = $(gen_sources)
704

705
BUILT_SOURCES = $(gtk_built_sources)
706

707
# all autogenerated files need to be generated in the srcdir,
Owen Taylor's avatar
Owen Taylor committed
708 709 710 711
# so old versions get remade and are not confused with newer
# versions in the build dir. thus a development setup requires
# srcdir to be writable, passing --disable-rebuilds to
# ../configure will supress all autogeneration rules.
712
gtkmarshalers.h: stamp-gtkmarshalers.h
713 714
	@true
stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
715 716 717
	$(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
	&& (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
	&& rm -f xgen-gmlh \
718
	&& echo timestamp > $(@F)	
719
gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
720
	(echo "#include \"gtkalias.h\""; $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
721
	&& cp xgen-gmlc gtkmarshalers.c \
722 723
	&& rm -f xgen-gmlc

724
gtkmarshal.h: stamp-gtkmarshal.h
725 726
	@true
stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list
727 728 729 730 731
	echo "#ifndef GTK_DISABLE_DEPRECATED" > xgen-gmh					\
        && $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --header >> xgen-gmh \
	&& echo "#endif /* GTK_DISABLE_DEPRECATED */" >> xgen-gmh \
	&& (cmp -s xgen-gmh gtkmarshal.h || cp xgen-gmh gtkmarshal.h) \
	&& rm -f xgen-gmh \
732
	&& echo timestamp > $(@F)
733
gtkmarshal.c: @REBUILD@ gtkmarshal.list
734
	(echo "#include \"gtkalias.h\""; $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --body) >> xgen-gmc \
735
	&& cp xgen-gmc gtkmarshal.c \
736
	&& rm -f xgen-gmc 
737

738
gtktypebuiltins.h: stamp-gtktypebuiltins.h
739 740
	@true
stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) Makefile
741
	( cd $(srcdir) && $(GLIB_MKENUMS) \
742 743
			--fhead "#ifndef __GTK_TYPE_BUILTINS_H__\n#define __GTK_TYPE_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
			--fprod "/* enumerations from \"@filename@\" */\n" \
Matthias Clasen's avatar
Matthias Clasen committed
744
			--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
745 746
			--ftail "G_END_DECLS\n\n#endif /* __GTK_TYPE_BUILTINS_H__ */" \
		$(gtk_public_h_sources) ) >> xgen-gtbh \
747
	&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
748
	&& rm -f xgen-gtbh \
Owen Taylor's avatar
Owen Taylor committed
749
	&& echo timestamp > $(@F)
750
gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) Makefile
751
	( cd $(srcdir) && $(GLIB_MKENUMS) \
752 753
			--fhead "#undef GTK_DISABLE_DEPRECATED\n#define GTK_ENABLE_BROKEN\n#include \"gtk.h\"\n#include \"gtkprivate.h\"\n#include \"gtkalias.h\"\n" \
			--ftail "#define __GTK_TYPE_BUILTINS_C__\n#include \"gtkaliasdef.c\"\n" \
754
			--fprod "\n/* enumerations from \"@filename@\" */" \
755 756
			--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@\" }," \
757
			--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
758
		$(gtk_public_h_sources) ) > xgen-gtbc \
759
	&& cp xgen-gtbc gtktypebuiltins.c  \
760
	&& rm -f xgen-gtbc
761

762
# target platform:
763 764 765
lib_LTLIBRARIES = $(gtktargetlib)

gtkincludedir = $(includedir)/gtk-2.0/gtk
766
gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
767

768 769 770
gtkunixprintincludedir = $(includedir)/gtk-unix-print-2.0/gtk
gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)

771
libgtk_x11_2_0_la_SOURCES = $(gtk_c_sources)
Owen Taylor's avatar
Owen Taylor committed
772 773
libgtk_linux_fb_2_0_la_SOURCES = $(gtk_c_sources)
libgtk_win32_2_0_la_SOURCES = $(gtk_c_sources)
Anders Carlsson's avatar
Anders Carlsson committed
774
libgtk_quartz_2_0_la_SOURCES = $(gtk_c_sources)
775
libgtk_directfb_2_0_la_SOURCES = $(gtk_c_sources)
776

777 778 779
libgtk_x11_2_0_la_LDFLAGS = $(libtool_opts)
libgtk_linux_fb_2_0_la_LDFLAGS = $(libtool_opts)
libgtk_win32_2_0_la_LDFLAGS = $(libtool_opts)
Anders Carlsson's avatar
Anders Carlsson committed
780
libgtk_quartz_2_0_la_LDFLAGS = $(libtool_opts)
781
libgtk_directfb_2_0_la_LDFLAGS = $(libtool_opts)
782 783 784

libgtk_x11_2_0_la_LIBADD = $(libadd)
libgtk_linux_fb_2_0_la_LIBADD = $(libadd)
785
libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
786
libgtk_win32_2_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res)
Anders Carlsson's avatar
Anders Carlsson committed
787
libgtk_quartz_2_0_la_LIBADD = $(libadd)
788
libgtk_directfb_2_0_la_LIBADD = $(libadd)
789 790

if USE_WIN32
791
libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
Tor Lillqvist's avatar
Tor Lillqvist committed
792
endif
793
EXTRA_LTLIBRARIES = libgtk-x11-2.0.la libgtk-linux-fb-2.0.la libgtk-win32-2.0.la libgtk-quartz-2.0.la libgtk-directfb-2.0.la
794

795
install-exec-hook: 
796 797 798 799
if DISABLE_EXPLICIT_DEPS
	$(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$(gtktargetlib)
endif

800
# Install a RC file for the default GTK+ theme, and key themes
801
install-data-local: install-ms-lib install-def-file
802 803
	$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0
	$(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
804
	$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key
805
	$(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
806
	$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key
807
	$(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
808

809
uninstall-local: uninstall-ms-lib uninstall-def-file
810
	rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
811 812
	rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
	rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
Tor Lillqvist's avatar
Tor Lillqvist committed
813

814 815 816 817 818 819 820
# if srcdir!=builddir, clean out maintainer-clean files from builddir
# this allows dist to pass.
distclean-local:
	if test $(srcdir) != .; then \
	  rm -f $(MAINTAINERCLEANFILES); \
	fi

Owen Taylor's avatar
Owen Taylor committed
821
DEPS = $(gtktargetlib) $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(top_builddir)/gdk/$(gdktargetlib)
822

Owen Taylor's avatar
Owen Taylor committed
823 824
TEST_DEPS = $(DEPS) gtk.immodules

825
LDADDS =								\
Owen Taylor's avatar
Owen Taylor committed
826 827
	$(gtktargetlib)							\
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la	\
828
	$(top_builddir)/gdk/$(gdktargetlib)
829

Owen Taylor's avatar
Owen Taylor committed
830 831 832
#
# Installed tools
#
833
bin_PROGRAMS = gtk-query-immodules-2.0 gtk-update-icon-cache
Owen Taylor's avatar
Owen Taylor committed
834 835 836 837 838 839

gtk_query_immodules_2_0_DEPENDENCIES = $(DEPS)
gtk_query_immodules_2_0_LDADD = $(LDADDS)

gtk_query_immodules_2_0_SOURCES = queryimmodules.c

840
gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
841 842 843

gtk_update_icon_cache_SOURCES = updateiconcache.c

844
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
845 846 847 848 849

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done
850

851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879
STOCK_ICONS = \
	stock-icons/16/gtk-about.png  			\
	stock-icons/16/gtk-add.png    			\
	stock-icons/16/gtk-cdrom.png  			\
	stock-icons/16/gtk-connect.png        		\
	stock-icons/16/gtk-convert.png        		\
	stock-icons/16/gtk-copy.png   			\
	stock-icons/16/gtk-cut.png    			\
	stock-icons/16/gtk-delete.png 			\
	stock-icons/16/gtk-directory.png      		\
	stock-icons/16/gtk-disconnect.png     		\
	stock-icons/16/gtk-edit.png   			\
	stock-icons/16/gtk-execute.png        		\
	stock-icons/16/gtk-file.png   			\
	stock-icons/16/gtk-find-and-replace.png       	\
	stock-icons/16/gtk-find.png   			\
	stock-icons/16/gtk-floppy.png 			\
	stock-icons/16/gtk-fullscreen.png     		\
	stock-icons/16/gtk-go-back-ltr.png    		\
	stock-icons/16/gtk-go-down.png        		\
	stock-icons/16/gtk-go-forward-ltr.png 		\
	stock-icons/16/gtk-goto-bottom.png    		\
	stock-icons/16/gtk-goto-first-ltr.png 		\
	stock-icons/16/gtk-goto-last-ltr.png  		\
	stock-icons/16/gtk-goto-top.png       		\
	stock-icons/16/gtk-go-up.png  			\
	stock-icons/16/gtk-harddisk.png       		\
	stock-icons/16/gtk-help.png   			\
	stock-icons/16/gtk-home.png   			\
880 881
	stock-icons/16/gtk-indent-ltr.png		\
	stock-icons/16/gtk-indent-rtl.png		\
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
	stock-icons/16/gtk-index.png  			\
	stock-icons/16/gtk-info.png   			\
	stock-icons/16/gtk-jump-to-ltr.png    		\
	stock-icons/16/gtk-jump-to-rtl.png    		\
	stock-icons/16/gtk-justify-center.png 		\
	stock-icons/16/gtk-justify-fill.png   		\
	stock-icons/16/gtk-justify-left.png   		\
	stock-icons/16/gtk-justify-right.png  		\
	stock-icons/16/gtk-leave-fullscreen.png       	\
	stock-icons/16/gtk-media-forward-ltr.png      	\
	stock-icons/16/gtk-media-next-ltr.png 		\
	stock-icons/16/gtk-media-pause.png    		\
	stock-icons/16/gtk-media-play-ltr.png 		\
	stock-icons/16/gtk-media-play-rtl.png 		\
	stock-icons/16/gtk-media-previous-ltr.png     	\
	stock-icons/16/gtk-media-record.png   		\
	stock-icons/16/gtk-media-rewind-ltr.png       	\
	stock-icons/16/gtk-media-stop.png     		\
	stock-icons/16/gtk-missing-image.png  		\
	stock-icons/16/gtk-network.png        		\
	stock-icons/16/gtk-new.png    			\
	stock-icons/16/gtk-open.png   			\
	stock-icons/16/gtk-paste.png  			\
	stock-icons/16/gtk-preferences.png    		\
	stock-icons/16/gtk-print.png  			\
	stock-icons/16/gtk-print-preview.png  		\
	stock-icons/16/gtk-properties.png     		\
	stock-icons/16/gtk-quit.png   			\
	stock-icons/16/gtk-redo-ltr.png       		\
	stock-icons/16/gtk-redo-rtl.png       		\
	stock-icons/16/gtk-refresh.png        		\
	stock-icons/16/gtk-remove.png 			\
	stock-icons/16/gtk-revert-to-saved-ltr.png    	\
	stock-icons/16/gtk-revert-to-saved-rtl.png    	\
	stock-icons/16/gtk-save-as.png        		\
	stock-icons/16/gtk-select-all.png     		\
	stock-icons/16/gtk-select-font.png    		\
	stock-icons/16/gtk-sort-ascending.png	 	\
	stock-icons/16/gtk-sort-descending.png        	\
	stock-icons/16/gtk-spell-check.png    		\
	stock-icons/16/gtk-stop.png   			\
	stock-icons/16/gtk-strikethrough.png  		\
	stock-icons/16/gtk-font.png   			\
	stock-icons/16/gtk-undelete-ltr.png   		\
	stock-icons/16/gtk-undelete-rtl.png   		\
	stock-icons/16/gtk-underline.png      		\
	stock-icons/16/gtk-undo-ltr.png       		\
	stock-icons/16/gtk-undo-rtl.png       		\
930 931
	stock-icons/16/gtk-unindent-ltr.png    		\
	stock-icons/16/gtk-unindent-rtl.png    		\
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973
	stock-icons/16/gtk-zoom-100.png       		\
	stock-icons/16/gtk-zoom-fit.png       		\
	stock-icons/16/gtk-zoom-in.png        		\
	stock-icons/16/gtk-zoom-out.png       		\
	stock-icons/16/gtk-italic.png 			\
	stock-icons/16/gtk-bold.png   			\
	stock-icons/20/gtk-apply.png  			\
	stock-icons/20/gtk-cancel.png 			\
	stock-icons/20/gtk-close.png  			\
	stock-icons/20/gtk-no.png     			\
	stock-icons/20/gtk-ok.png     			\
	stock-icons/20/gtk-yes.png    			\
	stock-icons/24/gtk-about.png  			\
	stock-icons/24/gtk-add.png    			\
	stock-icons/24/gtk-bold.png   			\
	stock-icons/24/gtk-cdrom.png  			\
	stock-icons/24/gtk-clear.png  			\
	stock-icons/24/gtk-close.png  			\
	stock-icons/24/gtk-color-picker.png   		\
	stock-icons/24/gtk-connect.png        		\
	stock-icons/24/gtk-convert.png        		\
	stock-icons/24/gtk-copy.png   			\
	stock-icons/24/gtk-cut.png    			\
	stock-icons/24/gtk-directory.png      		\
	stock-icons/24/gtk-disconnect.png     		\
	stock-icons/24/gtk-edit.png   			\
	stock-icons/24/gtk-execute.png        		\
	stock-icons/24/gtk-file.png   			\
	stock-icons/24/gtk-find-and-replace.png       	\
	stock-icons/24/gtk-find.png   			\
	stock-icons/24/gtk-font.png   			\
	stock-icons/24/gtk-fullscreen.png     		\
	stock-icons/24/gtk-go-back-ltr.png    		\
	stock-icons/24/gtk-goto-top.png       		\
	stock-icons/24/gtk-go-down.png        		\
	stock-icons/24/gtk-goto-bottom.png    		\
	stock-icons/24/gtk-goto-first-ltr.png 		\
	stock-icons/24/gtk-goto-last-ltr.png  		\
	stock-icons/24/gtk-go-up.png  			\
	stock-icons/24/gtk-harddisk.png       		\
	stock-icons/24/gtk-help.png   			\
	stock-icons/24/gtk-home.png   			\
974 975
	stock-icons/24/gtk-indent-ltr.png 		\
	stock-icons/24/gtk-indent-rtl.png 		\
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998
	stock-icons/24/gtk-index.png  			\
	stock-icons/24/gtk-info.png   			\
	stock-icons/24/gtk-italic.png 			\
	stock-icons/24/gtk-jump-to-ltr.png    		\
	stock-icons/24/gtk-jump-to-rtl.png    		\
	stock-icons/24/gtk-justify-center.png 		\
	stock-icons/24/gtk-justify-fill.png   		\
	stock-icons/24/gtk-justify-left.png   		\
	stock-icons/24/gtk-justify-right.png  		\
	stock-icons/24/gtk-leave-fullscreen.png       	\
	stock-icons/24/gtk-media-forward-ltr.png      	\
	stock-icons/24/gtk-media-next-ltr.png 		\
	stock-icons/24/gtk-media-pause.png    		\
	stock-icons/24/gtk-media-play-ltr.png 		\
	stock-icons/24/gtk-media-play-rtl.png 		\
	stock-icons/24/gtk-media-previous-ltr.png     	\
	stock-icons/24/gtk-media-record.png   		\
	stock-icons/24/gtk-media-rewind-ltr.png       	\
	stock-icons/24/gtk-media-stop.png     		\
	stock-icons/24/gtk-missing-image.png  		\
	stock-icons/24/gtk-network.png        		\
	stock-icons/24/gtk-new.png    			\
	stock-icons/24/gtk-open.png   			\
999 1000
	stock-icons/24/gtk-orientation-reverse-landscape.png \
	stock-icons/24/gtk-orientation-landscape.png	\
1001
	stock-icons/24/gtk-orientation-reverse-portrait.png	\
1002
	stock-icons/24/gtk-orientation-portrait.png	\
1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
	stock-icons/24/gtk-paste.png  			\
	stock-icons/24/gtk-preferences.png    		\
	stock-icons/24/gtk-print.png  			\
	stock-icons/24/gtk-print-preview.png  		\
	stock-icons/24/gtk-properties.png     		\
	stock-icons/24/gtk-quit.png   			\
	stock-icons/24/gtk-redo-ltr.png       		\
	stock-icons/24/gtk-redo-rtl.png       		\
	stock-icons/24/gtk-refresh.png        		\
	stock-icons/24/gtk-remove.png 			\
	stock-icons/24/gtk-revert-to-saved-ltr.png   	\
	stock-icons/24/gtk-revert-to-saved-rtl.png    	\
	stock-icons/24/gtk-select-font.png    		\
	stock-icons/24/gtk-save-as.png        		\
	stock-icons/24/gtk-floppy.png 			\
	stock-icons/24/gtk-select-all.png     		\
	stock-icons/24/gtk-select-color.png   		\
	stock-icons/24/gtk-sort-ascending.png 		\
	stock-icons/24/gtk-sort-descending.png        	\
	stock-icons/24/gtk-spell-check.png    		\
	stock-icons/24/gtk-stop.png   			\
	stock-icons/24/gtk-strikethrough.png  		\
	stock-icons/24/gtk-delete.png 			\
	stock-icons/24/gtk-undelete-ltr.png   		\
	stock-icons/24/gtk-undelete-rtl.png   		\
	stock-icons/24/gtk-underline.png      		\
	stock-icons/24/gtk-undo-ltr.png       		\
	stock-icons/24/gtk-undo-rtl.png       		\
1031 1032
	stock-icons/24/gtk-unindent-ltr.png    		\
	stock-icons/24/gtk-unindent-rtl.png    		\
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
	stock-icons/24/gtk-zoom-100.png       		\
	stock-icons/24/gtk-zoom-fit.png       		\
	stock-icons/24/gtk-zoom-in.png        		\
	stock-icons/24/gtk-zoom-out.png       		\
	stock-icons/24/gtk-go-forward-ltr.png 		\
	stock-icons/32/gtk-dnd-multiple.png   		\
	stock-icons/32/gtk-dnd.png    			\
	stock-icons/48/gtk-dialog-authentication.png  	\
	stock-icons/48/gtk-dialog-error.png   		\
	stock-icons/48/gtk-dialog-info.png    		\
	stock-icons/48/gtk-dialog-question.png        	\
	stock-icons/48/gtk-dialog-warning.png

1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065
GENERATED_ICONS = \
	stock-icons/16/gtk-go-back-rtl.png    		\
	stock-icons/16/gtk-go-forward-rtl.png 		\
	stock-icons/16/gtk-goto-first-rtl.png 		\
	stock-icons/16/gtk-goto-last-rtl.png  		\
	stock-icons/16/gtk-media-forward-rtl.png      	\
	stock-icons/16/gtk-media-next-rtl.png 		\
	stock-icons/16/gtk-media-previous-rtl.png     	\
	stock-icons/16/gtk-media-rewind-rtl.png       	\
	stock-icons/16/gtk-save.png			\
	stock-icons/24/gtk-go-back-rtl.png    		\
	stock-icons/24/gtk-go-forward-rtl.png 		\
	stock-icons/24/gtk-goto-first-rtl.png 		\
	stock-icons/24/gtk-goto-last-rtl.png  		\
	stock-icons/24/gtk-media-forward-rtl.png      	\
	stock-icons/24/gtk-media-next-rtl.png 		\
	stock-icons/24/gtk-media-previous-rtl.png     	\
	stock-icons/24/gtk-media-rewind-rtl.png       	\
	stock-icons/24/gtk-save.png

Matthias Clasen's avatar
Matthias Clasen committed
1066 1067
# need to copy the icons so that we can replace the generated ones with
# symlinks, even in the readonly srcdir case
1068
stamp-icons: $(STOCK_ICONS)
Matthias Clasen's avatar
Matthias Clasen committed
1069 1070 1071 1072
	if [ ! -d stock-icons ]; then 						\
          cp -R $(srcdir)/stock-icons .; 					\
	  chmod -R u+w stock-icons;						\
        fi &&									\
1073
	for i in 16 24; do							\
Matthias Clasen's avatar
Matthias Clasen committed
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
	   (cd stock-icons/$$i							\
	   && $(LN_S) -f gtk-go-forward-ltr.png gtk-go-back-rtl.png		\
	   && $(LN_S) -f gtk-go-back-ltr.png gtk-go-forward-rtl.png		\
	   && $(LN_S) -f gtk-goto-last-ltr.png gtk-goto-first-rtl.png		\
	   && $(LN_S) -f gtk-goto-first-ltr.png gtk-goto-last-rtl.png		\
	   && $(LN_S) -f gtk-media-rewind-ltr.png gtk-media-forward-rtl.png	\
	   && $(LN_S) -f gtk-media-previous-ltr.png gtk-media-next-rtl.png	\
	   && $(LN_S) -f gtk-media-next-ltr.png gtk-media-previous-rtl.png	\
	   && $(LN_S) -f gtk-media-forward-ltr.png gtk-media-rewind-rtl.png	\
	   && $(LN_S) -f gtk-floppy.png gtk-save.png)				\
1084 1085
	done									\
	&& touch stamp-icons
1086

Matthias Clasen's avatar
Matthias Clasen committed
1087 1088
gtkbuiltincache.h: @REBUILD@ stamp-icons
	$(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache
1089
	./gtk-update-icon-cache --force --ignore-theme-index 	\
Matthias Clasen's avatar
Matthias Clasen committed
1090
	   --source builtin_icons stock-icons > gtkbuiltincache.h
1091

1092
EXTRA_DIST +=                   \
1093
	$(STOCK_ICONS)		\
1094
	$(GENERATED_ICONS)	\
1095 1096 1097 1098 1099 1100 1101
	line-arrow.xbm 		\
	line-wrap.xbm 		\
	tree_plus.xbm		\
	tree_minus.xbm          \
	tree_minus.xpm		\
	tree_plus.xpm		\
	gtk.def			\
1102 1103
	gtk-win32.rc		\
	gtk-win32.rc.in		\
1104
	gtkwin32embed.h		\
1105 1106
	gtkfilesystemwin32.h	\
	gtkfilesystemwin32.c	\
1107
	gtkrc.default		\
1108 1109
	gtkrc.key.default	\
	gtkrc.key.emacs		\
1110
	makefile.msc		\
1111 1112 1113
	makefile.msc.in		\
	makegtkalias.pl		\
	abicheck.sh
Owen Taylor's avatar
Owen Taylor committed
1114

1115
install-data-local: