]> Pileus Git - ~andy/gtk/blob - gtk/Makefile.am
Bug 520874 - Should use gio directly.
[~andy/gtk] / gtk / Makefile.am
1 # Makefile.am for gtk+/gtk
2 include $(top_srcdir)/Makefile.decl
3
4 xdgmimedir =
5
6 if OS_UNIX
7 xdgmimedir += xdgmime
8 if USE_QUARTZ
9 GTK_PRINT_PREVIEW_COMMAND="open -a /Applications/Preview.app %f"
10 else
11 GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
12 endif
13 endif
14
15 SUBDIRS = theme-bits $(xdgmimedir) . tests
16 DIST_SUBDIRS=theme-bits xdgmime tests
17
18 if HAVE_CUPS
19 GTK_PRINT_BACKENDS=file,cups
20 else
21 GTK_PRINT_BACKENDS=file,lpr
22 endif
23
24 INCLUDES =                                              \
25         -DG_LOG_DOMAIN=\"Gtk\"                          \
26         -DGTK_LIBDIR=\"$(libdir)\"                      \
27         -DGTK_DATADIR=\"$(datadir)\"                    \
28         -DGTK_DATA_PREFIX=\"$(prefix)\"                 \
29         -DGTK_SYSCONFDIR=\"$(sysconfdir)\"              \
30         -DGTK_VERSION=\"$(GTK_VERSION)\"                \
31         -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\"  \
32         -DGTK_HOST=\"$(host)\"                          \
33         -DGTK_COMPILATION                               \
34         -DGTK_PRINT_BACKENDS=\"$(GTK_PRINT_BACKENDS)\"  \
35         -DGTK_PRINT_PREVIEW_COMMAND=\"$(GTK_PRINT_PREVIEW_COMMAND)\"    \
36         -I$(top_builddir)                               \
37         -I$(top_builddir)/gtk                           \
38         -I$(top_srcdir) -I../gdk                        \
39         -I$(top_srcdir)/gdk                             \
40         -I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf      \
41         -DGDK_PIXBUF_DISABLE_DEPRECATED                 \
42         -DGDK_DISABLE_DEPRECATED                        \
43         -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED            \
44         -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED          \
45         $(GTK_DEBUG_FLAGS)                              \
46         $(GTK_DEP_CFLAGS)                               \
47         $(gtk_clipboard_dnd_c_sources_CFLAGS)           \
48         $(INCLUDED_IMMODULE_DEFINE)
49
50 gtarget=$(gdktarget)
51
52 if PLATFORM_WIN32
53 no_undefined = -no-undefined
54 endif
55
56 if OS_WIN32
57 gtk_def = gtk.def
58 gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def
59
60 gtk_win32_res = gtk-win32-res.o
61 gtk_win32_res_ldflag = -Wl,gtk-win32-res.o
62
63 gtk-win32-res.o : gtk-win32.rc
64         $(WINDRES) gtk-win32.rc $@
65
66 install-def-file: gtk.def
67         $(INSTALL) $(srcdir)/gtk.def $(DESTDIR)$(libdir)/gtk-win32-2.0.def
68 uninstall-def-file:
69         -rm $(DESTDIR)$(libdir)/gtk-win32-2.0.def
70 else
71 install-def-file:
72 uninstall-def-file:
73 endif
74
75 if MS_LIB_AVAILABLE
76 noinst_DATA = gtk-win32-$(GTK_API_VERSION).lib
77
78 gtk-win32-$(GTK_API_VERSION).lib: libgtk-win32-$(GTK_API_VERSION).la gtk.def
79         lib -name:libgtk-win32-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gtk.def -out:$@
80
81 install-ms-lib:
82         $(INSTALL) gtk-win32-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
83
84 uninstall-ms-lib:
85         -rm $(DESTDIR)$(libdir)/gtk-win32-$(GTK_API_VERSION).lib
86 else
87 install-ms-lib:
88 uninstall-ms-lib:
89 endif
90
91 # This places the generated .def file in srcdir, since it is expected to be there.
92 # (The one from a tarball is)
93 gtk.def: gtk.symbols
94         (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') > $(srcdir)/gtk.def
95
96 gtkalias.h: gtk.symbols
97           $(PERL) $(srcdir)/makegtkalias.pl < $(srcdir)/gtk.symbols > gtkalias.h
98 gtkaliasdef.c: gtk.symbols
99           $(PERL) $(srcdir)/makegtkalias.pl -def < $(srcdir)/gtk.symbols > gtkaliasdef.c
100
101 check-aliases:
102         @$(TESTS_ENVIRONMENT) $(srcdir)/aliasfilescheck.sh
103
104 .PHONY: check-aliases
105
106 TESTS_ENVIRONMENT = srcdir="$(srcdir)" gtk_all_c_sources="$(gtk_all_c_sources)"
107 TESTS = aliasfilescheck.sh
108 if OS_LINUX
109 TESTS += abicheck.sh pltcheck.sh
110 endif
111
112 libgtkincludedir = $(includedir)/gtk-2.0/gtk
113 libadd =                                                                \
114         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
115         $(top_builddir)/gdk/$(gdktargetlib)                             \
116         $(GTK_DEP_LIBS)
117 deps =
118
119 if OS_UNIX
120 libadd += xdgmime/libxdgmime.la
121 endif
122
123 # libtool stuff: set version and export symbols for resolving
124 # since automake doesn't support conditionalized libsomething_la_LDFLAGS
125 # we use the general approach here
126 libtool_opts =                                                  \
127   -version-info $(LT_VERSION_INFO)                              \
128   -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)     \
129   -rpath $(libdir) $(libgtk_target_ldflags)
130
131
132 included-modules:
133 if HAVE_INCLUDED_IMMMODULES
134         @cd $(top_builddir)/modules/input && $(MAKE) $(AM_MAKEFLAGS) included-modules
135
136 libadd += $(INCLUDED_IMMODULE_OBJ)
137 deps += $(INCLUDED_IMMODULE_OBJ)
138
139 $(INCLUDED_IMMODULE_OBJ): included-modules
140         @true
141 endif
142
143 .PHONY: included-modules
144
145 #
146 # setup source file variables
147 #
148
149 # GTK+ header files for public installation (non-generated, or generated
150 # by configure)
151 gtk_public_h_sources =          \
152         gtk.h                   \
153         gtkaboutdialog.h        \
154         gtkaccelgroup.h         \
155         gtkaccellabel.h         \
156         gtkaccelmap.h           \
157         gtkaccessible.h         \
158         gtkaction.h             \
159         gtkactiongroup.h        \
160         gtkadjustment.h         \
161         gtkalignment.h          \
162         gtkarrow.h              \
163         gtkaspectframe.h        \
164         gtkassistant.h          \
165         gtkbbox.h               \
166         gtkbin.h                \
167         gtkbindings.h           \
168         gtkbox.h                \
169         gtkbuilder.h            \
170         gtkbuildable.h          \
171         gtkbutton.h             \
172         gtkcalendar.h           \
173         gtkcelleditable.h       \
174         gtkcelllayout.h         \
175         gtkcellrenderer.h       \
176         gtkcellrendereraccel.h  \
177         gtkcellrenderercombo.h  \
178         gtkcellrendererpixbuf.h \
179         gtkcellrendererprogress.h \
180         gtkcellrendererspin.h   \
181         gtkcellrenderertext.h   \
182         gtkcellrenderertoggle.h \
183         gtkcellview.h           \
184         gtkcheckbutton.h        \
185         gtkcheckmenuitem.h      \
186         gtkclipboard.h          \
187         gtkcolorbutton.h        \
188         gtkcolorsel.h           \
189         gtkcolorseldialog.h     \
190         gtkcombobox.h           \
191         gtkcomboboxentry.h      \
192         gtkcontainer.h          \
193         gtkcurve.h              \
194         gtkdebug.h              \
195         gtkdialog.h             \
196         gtkdnd.h                \
197         gtkdrawingarea.h        \
198         gtkeditable.h           \
199         gtkentry.h              \
200         gtkentrycompletion.h    \
201         gtkenums.h              \
202         gtkeventbox.h           \
203         gtkexpander.h           \
204         gtkfilechooser.h        \
205         gtkfilechooserbutton.h  \
206         gtkfilechooserdialog.h  \
207         gtkfilechooserwidget.h  \
208         gtkfilefilter.h         \
209         gtkfixed.h              \
210         gtkfontbutton.h         \
211         gtkfontsel.h            \
212         gtkframe.h              \
213         gtkgamma.h              \
214         gtkgc.h                 \
215         gtkhandlebox.h          \
216         gtkhbbox.h              \
217         gtkhbox.h               \
218         gtkhpaned.h             \
219         gtkhruler.h             \
220         gtkhscale.h             \
221         gtkhscrollbar.h         \
222         gtkhseparator.h         \
223         gtkiconfactory.h        \
224         gtkicontheme.h          \
225         gtkiconview.h           \
226         gtkimage.h              \
227         gtkimagemenuitem.h      \
228         gtkimcontext.h          \
229         gtkimcontextsimple.h    \
230         gtkimmodule.h           \
231         gtkimmulticontext.h     \
232         gtkinputdialog.h        \
233         gtkinvisible.h          \
234         gtkitem.h               \
235         gtklabel.h              \
236         gtklayout.h             \
237         gtklinkbutton.h         \
238         gtkliststore.h          \
239         gtkmain.h               \
240         gtkmenu.h               \
241         gtkmenubar.h            \
242         gtkmenuitem.h           \
243         gtkmenushell.h          \
244         gtkmenutoolbutton.h     \
245         gtkmessagedialog.h      \
246         gtkmisc.h               \
247         gtkmodules.h            \
248         gtkmountoperation.h     \
249         gtknotebook.h           \
250         gtkobject.h             \
251         gtkpagesetup.h          \
252         gtkpaned.h              \
253         gtkpapersize.h          \
254         gtkplug.h               \
255         gtkprintcontext.h       \
256         gtkprintoperation.h     \
257         gtkprintoperationpreview.h      \
258         gtkprintsettings.h      \
259         gtkprivate.h            \
260         gtkprogressbar.h        \
261         gtkradioaction.h        \
262         gtkradiobutton.h        \
263         gtkradiomenuitem.h      \
264         gtkradiotoolbutton.h    \
265         gtkrange.h              \
266         gtkrc.h                 \
267         gtkrecentaction.h       \
268         gtkrecentchooser.h      \
269         gtkrecentchooserdialog.h \
270         gtkrecentchoosermenu.h  \
271         gtkrecentchooserwidget.h \
272         gtkrecentfilter.h       \
273         gtkrecentmanager.h      \
274         gtkruler.h              \
275         gtkscale.h              \
276         gtkscalebutton.h        \
277         gtkscrollbar.h          \
278         gtkscrolledwindow.h     \
279         gtkselection.h          \
280         gtkseparator.h          \
281         gtkseparatormenuitem.h  \
282         gtkseparatortoolitem.h  \
283         gtkshow.h               \
284         gtksettings.h           \
285         gtksizegroup.h          \
286         gtksocket.h             \
287         gtkspinbutton.h         \
288         gtkstatusbar.h          \
289         gtkstatusicon.h         \
290         gtkstock.h              \
291         gtkstyle.h              \
292         gtktable.h              \
293         gtktearoffmenuitem.h    \
294         gtktestutils.h          \
295         gtktextbuffer.h         \
296         gtktextbufferrichtext.h \
297         gtktextchild.h          \
298         gtktextdisplay.h        \
299         gtktextiter.h           \
300         gtktextmark.h           \
301         gtktexttag.h            \
302         gtktexttagtable.h       \
303         gtktextview.h           \
304         gtktoggleaction.h       \
305         gtktogglebutton.h       \
306         gtktoggletoolbutton.h   \
307         gtktoolbar.h            \
308         gtktoolbutton.h         \
309         gtktoolitem.h           \
310         gtktoolshell.h          \
311         gtktooltip.h            \
312         gtktreednd.h            \
313         gtktreemodel.h          \
314         gtktreemodelfilter.h    \
315         gtktreemodelsort.h      \
316         gtktreeselection.h      \
317         gtktreesortable.h       \
318         gtktreestore.h          \
319         gtktreeview.h           \
320         gtktreeviewcolumn.h     \
321         gtktypeutils.h          \
322         gtkuimanager.h          \
323         gtkvbbox.h              \
324         gtkvbox.h               \
325         gtkviewport.h           \
326         gtkvolumebutton.h       \
327         gtkvpaned.h             \
328         gtkvruler.h             \
329         gtkvscale.h             \
330         gtkvscrollbar.h         \
331         gtkvseparator.h         \
332         gtkwidget.h             \
333         gtkwindow.h
334
335 if OS_UNIX
336 gtk_unix_print_public_h_sources =    \
337         gtkpagesetupunixdialog.h        \
338         gtkprintunixdialog.h            \
339         gtkprinter.h                    \
340         gtkprintjob.h                   \
341         gtkunixprint.h
342 endif
343
344 # Installed header files without compatibility guarantees
345 # that are not included in gtk/gtk.h
346 gtk_semi_private_h_sources =    \
347         gtktextlayout.h
348
349 # GTK+ header files that don't get installed
350 gtk_private_h_sources =         \
351         gtkquery.h              \
352         gtksearchengine.h       \
353         gtksearchenginesimple.h \
354         gtkdndcursors.h         \
355         gtkentryprivate.h       \
356         gtkbuilderprivate.h     \
357         gtkfilechooserdefault.h \
358         gtkfilechooserembed.h   \
359         gtkfilechooserentry.h   \
360         gtkfilechooserprivate.h \
361         gtkfilechoosersettings.h \
362         gtkfilechooserutils.h   \
363         gtkfilesystem.h         \
364         gtkfilesystemmodel.h    \
365         gtkhsv.h                \
366         gtkiconcache.h          \
367         gtkintl.h               \
368         gtkkeyhash.h            \
369         gtkmnemonichash.h       \
370         gtkpathbar.h            \
371         gtkplugprivate.h        \
372         gtkprintoperation-private.h\
373         gtkprintutils.h         \
374         gtkrbtree.h             \
375         gtkrecentchooserdefault.h \
376         gtkrecentchooserprivate.h \
377         gtkrecentchooserutils.h \
378         gtksocketprivate.h      \
379         gtktextbtree.h          \
380         gtktextbufferserialize.h\
381         gtktextchildprivate.h   \
382         gtktextiterprivate.h    \
383         gtktextmarkprivate.h    \
384         gtktextsegment.h        \
385         gtktexttagprivate.h     \
386         gtktexttypes.h          \
387         gtktextutil.h           \
388         gtkthemes.h             \
389         gtktoggleactionprivate.h\
390         gtktreedatalist.h       \
391         gtktreeprivate.h        \
392         gtkwindow-decorate.h
393
394 # GTK+ C sources to build the library from
395 gtk_base_c_sources =            \
396         gtkquery.c              \
397         gtksearchengine.c       \
398         gtksearchenginesimple.c \
399         fnmatch.c               \
400         gtkaboutdialog.c        \
401         gtkaccelgroup.c         \
402         gtkaccellabel.c         \
403         gtkaccelmap.c           \
404         gtkaccessible.c         \
405         gtkaction.c             \
406         gtkactiongroup.c        \
407         gtkadjustment.c         \
408         gtkalignment.c          \
409         gtkarrow.c              \
410         gtkaspectframe.c        \
411         gtkassistant.c          \
412         gtkbbox.c               \
413         gtkbin.c                \
414         gtkbindings.c           \
415         gtkbox.c                \
416         gtkbuildable.c          \
417         gtkbuilder.c            \
418         gtkbuilderparser.c      \
419         gtkbutton.c             \
420         gtkcalendar.c           \
421         gtkcelleditable.c       \
422         gtkcelllayout.c         \
423         gtkcellrenderer.c       \
424         gtkcellrendereraccel.c  \
425         gtkcellrenderercombo.c  \
426         gtkcellrendererpixbuf.c \
427         gtkcellrendererprogress.c \
428         gtkcellrendererspin.c   \
429         gtkcellrenderertext.c   \
430         gtkcellrenderertoggle.c \
431         gtkcellview.c           \
432         gtkcheckbutton.c        \
433         gtkcheckmenuitem.c      \
434         gtkcolorbutton.c        \
435         gtkcolorsel.c           \
436         gtkcolorseldialog.c     \
437         gtkcombobox.c           \
438         gtkcomboboxentry.c      \
439         gtkcontainer.c          \
440         gtkcurve.c              \
441         gtkdialog.c             \
442         gtkdrawingarea.c        \
443         gtkeditable.c           \
444         gtkentry.c              \
445         gtkentrycompletion.c    \
446         gtkeventbox.c           \
447         gtkexpander.c           \
448         gtkfilechooser.c        \
449         gtkfilechooserbutton.c  \
450         gtkfilechooserdefault.c \
451         gtkfilechooserdialog.c  \
452         gtkfilechooserembed.c   \
453         gtkfilechooserentry.c   \
454         gtkfilechoosersettings.c \
455         gtkfilechooserutils.c   \
456         gtkfilechooserwidget.c  \
457         gtkfilefilter.c         \
458         gtkfilesystem.c         \
459         gtkfilesystemmodel.c    \
460         gtkfixed.c              \
461         gtkfontbutton.c         \
462         gtkfontsel.c            \
463         gtkframe.c              \
464         gtkgamma.c              \
465         gtkgc.c                 \
466         gtkhandlebox.c          \
467         gtkhbbox.c              \
468         gtkhbox.c               \
469         gtkhpaned.c             \
470         gtkhruler.c             \
471         gtkhscale.c             \
472         gtkhscrollbar.c         \
473         gtkhseparator.c         \
474         gtkhsv.c                \
475         gtkiconcache.c          \
476         gtkiconcachevalidator.c \
477         gtkiconfactory.c        \
478         gtkicontheme.c          \
479         gtkiconview.c           \
480         gtkimage.c              \
481         gtkimagemenuitem.c      \
482         gtkimcontext.c          \
483         gtkimcontextsimple.c    \
484         gtkimmodule.c           \
485         gtkimmulticontext.c     \
486         gtkinputdialog.c        \
487         gtkinvisible.c          \
488         gtkitem.c               \
489         gtkkeyhash.c            \
490         gtklabel.c              \
491         gtklayout.c             \
492         gtklinkbutton.c         \
493         gtkliststore.c          \
494         gtkmain.c               \
495         gtkmarshal.c            \
496         gtkmarshalers.c         \
497         gtkmenu.c               \
498         gtkmenubar.c            \
499         gtkmenuitem.c           \
500         gtkmenushell.c          \
501         gtkmenutoolbutton.c     \
502         gtkmessagedialog.c      \
503         gtkmisc.c               \
504         gtkmnemonichash.c       \
505         gtkmodules.c            \
506         gtkmountoperation.c     \
507         gtknotebook.c           \
508         gtkobject.c             \
509         gtkpagesetup.c          \
510         gtkpaned.c              \
511         gtkpapersize.c          \
512         gtkpathbar.c            \
513         gtkplug.c               \
514         gtkprintcontext.c       \
515         gtkprintoperation.c     \
516         gtkprintoperationpreview.c      \
517         gtkprintsettings.c      \
518         gtkprintutils.c         \
519         gtkprogressbar.c        \
520         gtkradioaction.c        \
521         gtkradiobutton.c        \
522         gtkradiomenuitem.c      \
523         gtkradiotoolbutton.c    \
524         gtkrange.c              \
525         gtkrbtree.c             \
526         gtkrc.c                 \
527         gtkrecentaction.c       \
528         gtkrecentchooserdefault.c \
529         gtkrecentchooserdialog.c \
530         gtkrecentchoosermenu.c  \
531         gtkrecentchooserwidget.c \
532         gtkrecentchooserutils.c \
533         gtkrecentchooser.c      \
534         gtkrecentfilter.c       \
535         gtkrecentmanager.c      \
536         gtkruler.c              \
537         gtkscale.c              \
538         gtkscalebutton.c        \
539         gtkscrollbar.c          \
540         gtkscrolledwindow.c     \
541         gtkselection.c          \
542         gtkseparator.c          \
543         gtkseparatormenuitem.c  \
544         gtkseparatortoolitem.c  \
545         gtksettings.c           \
546         gtksizegroup.c          \
547         gtkshow.c               \
548         gtksocket.c             \
549         gtkspinbutton.c         \
550         gtkstatusbar.c          \
551         gtkstatusicon.c         \
552         gtkstock.c              \
553         gtkstyle.c              \
554         gtktable.c              \
555         gtktearoffmenuitem.c    \
556         gtktestutils.c          \
557         gtktextbtree.c          \
558         gtktextbuffer.c         \
559         gtktextbufferrichtext.c \
560         gtktextbufferserialize.c\
561         gtktextchild.c          \
562         gtktextdisplay.c        \
563         gtktextiter.c           \
564         gtktextlayout.c         \
565         gtktextmark.c           \
566         gtktextsegment.c        \
567         gtktexttag.c            \
568         gtktexttagtable.c       \
569         gtktexttypes.c          \
570         gtktextutil.c           \
571         gtktextview.c           \
572         gtkthemes.c             \
573         gtktoggleaction.c       \
574         gtktogglebutton.c       \
575         gtktoggletoolbutton.c   \
576         gtktoolbar.c            \
577         gtktoolbutton.c         \
578         gtktoolitem.c           \
579         gtktoolshell.c          \
580         gtktooltip.c            \
581         gtktreedatalist.c       \
582         gtktreednd.c            \
583         gtktreemodel.c          \
584         gtktreemodelfilter.c    \
585         gtktreemodelsort.c      \
586         gtktreeselection.c      \
587         gtktreesortable.c       \
588         gtktreestore.c          \
589         gtktreeview.c           \
590         gtktreeviewcolumn.c     \
591         gtktypebuiltins.c       \
592         gtktypeutils.c          \
593         gtkuimanager.c          \
594         gtkvbbox.c              \
595         gtkvbox.c               \
596         gtkvolumebutton.c       \
597         gtkviewport.c           \
598         gtkvpaned.c             \
599         gtkvruler.c             \
600         gtkvscale.c             \
601         gtkvscrollbar.c         \
602         gtkvseparator.c         \
603         gtkwidget.c             \
604         gtkwindow-decorate.c    \
605         gtkwindow.c             \
606         $(gtk_clipboard_dnd_c_sources)
607
608 # Broken
609 gtk_public_h_sources += \
610         gtktext.h               \
611         gtktree.h               \
612         gtktreeitem.h
613 gtk_base_c_sources += \
614         gtktext.c               \
615         gtktree.c               \
616         gtktreeitem.c
617
618 # Deprecated
619 gtk_public_h_sources += \
620         gtkclist.h              \
621         gtkcombo.h              \
622         gtkctree.h              \
623         gtkfilesel.h            \
624         gtkitemfactory.h        \
625         gtklist.h               \
626         gtklistitem.h           \
627         gtkoldeditable.h        \
628         gtkoptionmenu.h         \
629         gtkpixmap.h             \
630         gtkpreview.h            \
631         gtkprogress.h           \
632         gtksignal.h             \
633         gtktipsquery.h          \
634         gtktooltips.h
635 gtk_base_c_sources += \
636         gtkclist.c              \
637         gtkcombo.c              \
638         gtkctree.c              \
639         gtkfilesel.c            \
640         gtkitemfactory.c        \
641         gtklist.c               \
642         gtklistitem.c           \
643         gtkoldeditable.c        \
644         gtkoptionmenu.c         \
645         gtkpixmap.c             \
646         gtkpreview.c            \
647         gtkprogress.c           \
648         gtksignal.c             \
649         gtktipsquery.c          \
650         gtktooltips.c
651
652 gtk_c_sources = $(gtk_base_c_sources)
653 gtk_all_c_sources = $(gtk_base_c_sources)
654
655 gtk_os_unix_c_sources = \
656         gtkpagesetupunixdialog.c        \
657         gtkprinter.c                    \
658         gtkprinteroption.c              \
659         gtkprinteroptionset.c           \
660         gtkprinteroptionwidget.c        \
661         gtkprintjob.c                   \
662         gtkprintoperation-unix.c        \
663         gtkprintunixdialog.c            \
664         gtkprintbackend.c               \
665         gtksearchenginebeagle.c         \
666         gtksearchenginetracker.c
667 gtk_all_c_sources += $(gtk_os_unix_c_sources)
668 if OS_UNIX
669 gtk_private_h_sources += \
670         gtkiconcachevalidator.h         \
671         gtkprintbackend.h               \
672         gtkprinter-private.h            \
673         gtkprinteroption.h              \
674         gtkprinteroptionset.h           \
675         gtkprinteroptionwidget.h        \
676         gtksearchenginebeagle.h         \
677         gtksearchenginetracker.h
678 gtk_c_sources += $(gtk_os_unix_c_sources)
679 endif
680
681 gtk_os_win32_c_sources = \
682         gtkprint-win32.c                \
683         gtkprintoperation-win32.c
684 gtk_all_c_sources += $(gtk_os_win32_c_sources)
685 if OS_WIN32
686 gtk_private_h_sources += gtkprint-win32.h
687 gtk_c_sources += $(gtk_os_win32_c_sources)
688 endif
689
690 gtk_use_x11_c_sources = \
691         gtkplug-x11.c   \
692         gtksocket-x11.c \
693         gtkxembed.c     \
694         gtktrayicon-x11.c
695 gtk_use_win32_c_sources = \
696         gtkplug-win32.c   \
697         gtksocket-win32.c \
698         gtkwin32embed.c   \
699         gtkwin32embedwidget.c
700 gtk_use_quartz_c_sources =      \
701         gtksearchenginequartz.c \
702         gtkplug-stub.c          \
703         gtksocket-stub.c
704 gtk_use_stub_c_sources = \
705         gtkplug-stub.c   \
706         gtksocket-stub.c
707 gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
708 if USE_X11
709 gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
710 gtk_c_sources += $(gtk_use_x11_c_sources)
711 else
712 if USE_WIN32
713 gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
714 gtk_c_sources += $(gtk_use_win32_c_sources)
715 else
716 if USE_QUARTZ
717 gtk_private_h_sources += gtksearchenginequartz.h
718 gtk_c_sources += $(gtk_use_quartz_c_sources)
719 gtk_use_quartz_c_sources_CFLAGS = "-xobjective-c"
720 else
721 gtk_c_sources += $(gtk_use_stub_c_sources)
722 endif
723 endif
724 endif
725
726 if USE_QUARTZ
727 gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c gtkquartz.h
728 gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
729 else
730 gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
731 gtk_clipboard_dnd_c_sources_CFLAGS = 
732 endif
733
734 # we use our own built_sources variable rules to avoid automake's
735 # BUILT_SOURCES oddities
736 # we generate frequently rebuild files piggyback on a stamp file, so sources
737 # depending on them only get rebuild when the built source actually changed
738 # content
739
740 # built sources that get installed with the header files
741 gtk_built_public_sources =                      \
742         gtkmarshal.h                            \
743         gtktypebuiltins.h
744
745 # built headers that don't get installed
746 gtk_built_private_headers =                     \
747         gtkalias.h                              \
748         gtkmarshalers.h                         \
749         gtkbuiltincache.h                       \
750         gtkimcontextsimpleseqs.h
751
752 gtk_built_sources =                             \
753         gtkaliasdef.c                           \
754         gtktypebuiltins.c                       \
755         gtktypefuncs.c                          \
756         gtkmarshalers.c                         \
757         gtkmarshal.c                            \
758         ${gtk_built_private_headers}            \
759         ${gtk_built_public_sources}
760
761 stamp_files =                                   \
762         stamp-gtkmarshalers.h                   \
763         stamp-gtkmarshal.h                      \
764         stamp-gtktypebuiltins.h                 \
765         stamp-icons
766
767 # non-header sources (headers should be specified in the above variables)
768 # that don't serve as direct make target sources, i.e. they don't have
769 # their own .lo rules and don't get publically installed
770 gtk_extra_sources =                             \
771         paper_names.c                           \
772         paper_names_offsets.c                   \
773         gen-paper-names.c                       \
774         gtkstatusicon-quartz.c                  \
775         gtk.symbols                             \
776         gtkversion.h.in                         \
777         gtkmarshalers.list                      \
778         gtkmarshal.list
779
780 #
781 # setup GTK+ sources and their dependencies
782 #
783 MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS)
784 EXTRA_HEADERS =
785 EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
786 EXTRA_DIST += $(gtk_built_sources)
787 EXTRA_DIST += $(STOCK_ICONS)
788
789 #
790 # rules to generate built sources
791 #
792 # setup autogeneration dependencies
793 gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc xgen-gtfsrc.c xgen-gtf
794 CLEANFILES = $(gen_sources)
795
796 BUILT_SOURCES = $(gtk_built_sources)
797
798 # all autogenerated files need to be generated in the srcdir,
799 # so old versions get remade and are not confused with newer
800 # versions in the build dir. thus a development setup requires
801 # srcdir to be writable, passing --disable-rebuilds to
802 # ../configure will supress all autogeneration rules.
803 gtkmarshalers.h: stamp-gtkmarshalers.h
804         @true
805 stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
806         $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
807         && (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
808         && rm -f xgen-gmlh \
809         && echo timestamp > $(@F)       
810 gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
811         (echo "#include \"gtkmarshalers.h\""; \
812          echo "#include \"gtkalias.h\""; \
813          $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
814         && cp xgen-gmlc gtkmarshalers.c \
815         && rm -f xgen-gmlc
816
817 gtkmarshal.h: stamp-gtkmarshal.h
818         @true
819 stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list
820         echo "#ifndef GTK_DISABLE_DEPRECATED" > xgen-gmh                                        \
821         && $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --header >> xgen-gmh \
822         && echo "#endif /* GTK_DISABLE_DEPRECATED */" >> xgen-gmh \
823         && (cmp -s xgen-gmh gtkmarshal.h || cp xgen-gmh gtkmarshal.h) \
824         && rm -f xgen-gmh \
825         && echo timestamp > $(@F)
826 gtkmarshal.c: @REBUILD@ gtkmarshal.list
827         (echo "#include \"gtkmarshal.h\""; \
828          echo "#include \"gtkalias.h\""; \
829          $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --body; \
830          echo "#define __gtk_marshal_MARSHAL_C__"; \
831          echo "#include \"gtkaliasdef.c\"") >> xgen-gmc \
832         && cp xgen-gmc gtkmarshal.c \
833         && rm -f xgen-gmc
834
835 gtktypebuiltins.h: stamp-gtktypebuiltins.h
836         @true
837 stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
838         ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
839                 $(gtk_public_h_sources) ) >> xgen-gtbh \
840         && (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
841         && rm -f xgen-gtbh \
842         && echo timestamp > $(@F)
843 gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
844         ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
845                 $(gtk_public_h_sources) ) > xgen-gtbc \
846         && cp xgen-gtbc gtktypebuiltins.c  \
847         && rm -f xgen-gtbc
848
849 gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
850         echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
851           ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
852           grep -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
853           sort | uniq | \
854           sed '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \
855         && cp xgen-gtf $@ && rm -f xgen-gtf
856 gtktestutils.c: gtktypefuncs.c
857
858 # target platform:
859 lib_LTLIBRARIES = $(gtktargetlib)
860
861 gtkincludedir = $(includedir)/gtk-2.0/gtk
862 gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
863
864 gtkunixprintincludedir = $(includedir)/gtk-unix-print-2.0/gtk
865 gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)
866
867 libgtk_x11_2_0_la_SOURCES = $(gtk_c_sources)
868 libgtk_win32_2_0_la_SOURCES = $(gtk_c_sources)
869 libgtk_quartz_2_0_la_SOURCES = $(gtk_c_sources)
870 libgtk_directfb_2_0_la_SOURCES = $(gtk_c_sources)
871
872 libgtk_x11_2_0_la_LDFLAGS = $(libtool_opts)
873 libgtk_win32_2_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid
874 libgtk_quartz_2_0_la_LDFLAGS = $(libtool_opts)
875 libgtk_directfb_2_0_la_LDFLAGS = $(libtool_opts)
876
877 libgtk_x11_2_0_la_LIBADD = $(libadd)
878 libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
879 libgtk_quartz_2_0_la_LIBADD = $(libadd)
880 libgtk_directfb_2_0_la_LIBADD = $(libadd)
881
882 libgtk_x11_2_0_la_DEPENDENCIES = $(deps)
883 libgtk_win32_2_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res) $(deps)
884 libgtk_quartz_2_0_la_DEPENDENCIES = $(deps)
885 libgtk_directfb_2_0_la_DEPENDENCIES = $(deps)
886
887 if USE_WIN32
888 libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
889 endif
890 EXTRA_LTLIBRARIES = libgtk-x11-2.0.la libgtk-win32-2.0.la libgtk-quartz-2.0.la libgtk-directfb-2.0.la
891
892 install-exec-hook: 
893 if DISABLE_EXPLICIT_DEPS
894         $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$(gtktargetlib)
895 endif
896
897 # Install a RC file for the default GTK+ theme, and key themes
898 install-data-local: install-ms-lib install-def-file
899         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0
900         $(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
901         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key
902         $(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
903         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key
904         $(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
905
906 uninstall-local: uninstall-ms-lib uninstall-def-file
907         rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
908         rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
909         rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
910
911 # if srcdir!=builddir, clean out maintainer-clean files from builddir
912 # this allows dist to pass.
913 distclean-local:
914         if test $(srcdir) != .; then \
915           rm -f $(MAINTAINERCLEANFILES); \
916         fi
917
918 DEPS = $(gtktargetlib) $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(top_builddir)/gdk/$(gdktargetlib)
919
920 TEST_DEPS = $(DEPS) gtk.immodules
921
922 LDADDS =                                                                \
923         $(gtktargetlib)                                                 \
924         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
925         $(top_builddir)/gdk/$(gdktargetlib)
926
927 #
928 # Installed tools
929 #
930 bin_PROGRAMS = \
931         gtk-query-immodules-2.0 \
932         gtk-update-icon-cache
933 bin_SCRIPTS = gtk-builder-convert
934
935 gtk_query_immodules_2_0_DEPENDENCIES = $(DEPS)
936 gtk_query_immodules_2_0_LDADD = $(LDADDS)
937
938 gtk_query_immodules_2_0_SOURCES = queryimmodules.c
939
940 gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
941
942 gtk_update_icon_cache_SOURCES = \
943         updateiconcache.c 
944
945 .PHONY: files test test-debug
946
947 files:
948         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
949           echo $$p; \
950         done
951
952 STOCK_ICONS = \
953         stock-icons/16/document-open-recent.png         \
954         stock-icons/16/gtk-about.png                    \
955         stock-icons/16/gtk-add.png                      \
956         stock-icons/16/gtk-cdrom.png                    \
957         stock-icons/16/gtk-close.png                    \
958         stock-icons/16/gtk-connect.png                  \
959         stock-icons/16/gtk-convert.png                  \
960         stock-icons/16/gtk-copy.png                     \
961         stock-icons/16/gtk-cut.png                      \
962         stock-icons/16/gtk-delete.png                   \
963         stock-icons/16/gtk-directory.png                \
964         stock-icons/16/gtk-disconnect.png               \
965         stock-icons/16/gtk-edit.png                     \
966         stock-icons/16/gtk-execute.png                  \
967         stock-icons/16/gtk-file.png                     \
968         stock-icons/16/gtk-find-and-replace.png         \
969         stock-icons/16/gtk-find.png                     \
970         stock-icons/16/gtk-floppy.png                   \
971         stock-icons/16/gtk-fullscreen.png               \
972         stock-icons/16/gtk-go-back-ltr.png              \
973         stock-icons/16/gtk-go-down.png                  \
974         stock-icons/16/gtk-go-forward-ltr.png           \
975         stock-icons/16/gtk-goto-bottom.png              \
976         stock-icons/16/gtk-goto-first-ltr.png           \
977         stock-icons/16/gtk-goto-last-ltr.png            \
978         stock-icons/16/gtk-goto-top.png                 \
979         stock-icons/16/gtk-go-up.png                    \
980         stock-icons/16/gtk-harddisk.png                 \
981         stock-icons/16/gtk-help.png                     \
982         stock-icons/16/gtk-home.png                     \
983         stock-icons/16/gtk-indent-ltr.png               \
984         stock-icons/16/gtk-indent-rtl.png               \
985         stock-icons/16/gtk-index.png                    \
986         stock-icons/16/gtk-info.png                     \
987         stock-icons/16/gtk-jump-to-ltr.png              \
988         stock-icons/16/gtk-jump-to-rtl.png              \
989         stock-icons/16/gtk-justify-center.png           \
990         stock-icons/16/gtk-justify-fill.png             \
991         stock-icons/16/gtk-justify-left.png             \
992         stock-icons/16/gtk-justify-right.png            \
993         stock-icons/16/gtk-leave-fullscreen.png         \
994         stock-icons/16/gtk-media-forward-ltr.png        \
995         stock-icons/16/gtk-media-next-ltr.png           \
996         stock-icons/16/gtk-media-pause.png              \
997         stock-icons/16/gtk-media-play-ltr.png           \
998         stock-icons/16/gtk-media-play-rtl.png           \
999         stock-icons/16/gtk-media-previous-ltr.png       \
1000         stock-icons/16/gtk-media-record.png             \
1001         stock-icons/16/gtk-media-rewind-ltr.png         \
1002         stock-icons/16/gtk-media-stop.png               \
1003         stock-icons/16/gtk-missing-image.png            \
1004         stock-icons/16/gtk-network.png                  \
1005         stock-icons/16/gtk-new.png                      \
1006         stock-icons/16/gtk-open.png                     \
1007         stock-icons/16/gtk-page-setup.png               \
1008         stock-icons/16/gtk-paste.png                    \
1009         stock-icons/16/gtk-preferences.png              \
1010         stock-icons/16/gtk-print.png                    \
1011         stock-icons/16/gtk-print-error.png              \
1012         stock-icons/16/gtk-print-preview.png            \
1013         stock-icons/16/gtk-print-report.png             \
1014         stock-icons/16/gtk-print-warning.png            \
1015         stock-icons/16/gtk-properties.png               \
1016         stock-icons/16/gtk-quit.png                     \
1017         stock-icons/16/gtk-redo-ltr.png                 \
1018         stock-icons/16/gtk-redo-rtl.png                 \
1019         stock-icons/16/gtk-refresh.png                  \
1020         stock-icons/16/gtk-remove.png                   \
1021         stock-icons/16/gtk-revert-to-saved-ltr.png      \
1022         stock-icons/16/gtk-revert-to-saved-rtl.png      \
1023         stock-icons/16/gtk-save-as.png                  \
1024         stock-icons/16/gtk-select-all.png               \
1025         stock-icons/16/gtk-select-color.png             \
1026         stock-icons/16/gtk-select-font.png              \
1027         stock-icons/16/gtk-sort-ascending.png           \
1028         stock-icons/16/gtk-sort-descending.png          \
1029         stock-icons/16/gtk-spell-check.png              \
1030         stock-icons/16/gtk-stop.png                     \
1031         stock-icons/16/gtk-strikethrough.png            \
1032         stock-icons/16/gtk-font.png                     \
1033         stock-icons/16/gtk-undelete-ltr.png             \
1034         stock-icons/16/gtk-undelete-rtl.png             \
1035         stock-icons/16/gtk-underline.png                \
1036         stock-icons/16/gtk-undo-ltr.png                 \
1037         stock-icons/16/gtk-undo-rtl.png                 \
1038         stock-icons/16/gtk-unindent-ltr.png             \
1039         stock-icons/16/gtk-unindent-rtl.png             \
1040         stock-icons/16/gtk-zoom-100.png                 \
1041         stock-icons/16/gtk-zoom-fit.png                 \
1042         stock-icons/16/gtk-zoom-in.png                  \
1043         stock-icons/16/gtk-zoom-out.png                 \
1044         stock-icons/16/gtk-italic.png                   \
1045         stock-icons/16/gtk-bold.png                     \
1046         stock-icons/20/gtk-apply.png                    \
1047         stock-icons/20/gtk-cancel.png                   \
1048         stock-icons/20/gtk-close.png                    \
1049         stock-icons/20/gtk-no.png                       \
1050         stock-icons/20/gtk-ok.png                       \
1051         stock-icons/20/gtk-yes.png                      \
1052         stock-icons/24/document-open-recent.png         \
1053         stock-icons/24/gtk-about.png                    \
1054         stock-icons/24/gtk-add.png                      \
1055         stock-icons/24/gtk-bold.png                     \
1056         stock-icons/24/gtk-cdrom.png                    \
1057         stock-icons/24/gtk-clear.png                    \
1058         stock-icons/24/gtk-close.png                    \
1059         stock-icons/24/gtk-color-picker.png             \
1060         stock-icons/24/gtk-connect.png                  \
1061         stock-icons/24/gtk-convert.png                  \
1062         stock-icons/24/gtk-copy.png                     \
1063         stock-icons/24/gtk-cut.png                      \
1064         stock-icons/24/gtk-directory.png                \
1065         stock-icons/24/gtk-disconnect.png               \
1066         stock-icons/24/gtk-edit.png                     \
1067         stock-icons/24/gtk-execute.png                  \
1068         stock-icons/24/gtk-file.png                     \
1069         stock-icons/24/gtk-find-and-replace.png         \
1070         stock-icons/24/gtk-find.png                     \
1071         stock-icons/24/gtk-font.png                     \
1072         stock-icons/24/gtk-fullscreen.png               \
1073         stock-icons/24/gtk-go-back-ltr.png              \
1074         stock-icons/24/gtk-goto-top.png                 \
1075         stock-icons/24/gtk-go-down.png                  \
1076         stock-icons/24/gtk-goto-bottom.png              \
1077         stock-icons/24/gtk-goto-first-ltr.png           \
1078         stock-icons/24/gtk-goto-last-ltr.png            \
1079         stock-icons/24/gtk-go-up.png                    \
1080         stock-icons/24/gtk-harddisk.png                 \
1081         stock-icons/24/gtk-help.png                     \
1082         stock-icons/24/gtk-home.png                     \
1083         stock-icons/24/gtk-indent-ltr.png               \
1084         stock-icons/24/gtk-indent-rtl.png               \
1085         stock-icons/24/gtk-index.png                    \
1086         stock-icons/24/gtk-info.png                     \
1087         stock-icons/24/gtk-italic.png                   \
1088         stock-icons/24/gtk-jump-to-ltr.png              \
1089         stock-icons/24/gtk-jump-to-rtl.png              \
1090         stock-icons/24/gtk-justify-center.png           \
1091         stock-icons/24/gtk-justify-fill.png             \
1092         stock-icons/24/gtk-justify-left.png             \
1093         stock-icons/24/gtk-justify-right.png            \
1094         stock-icons/24/gtk-leave-fullscreen.png         \
1095         stock-icons/24/gtk-media-forward-ltr.png        \
1096         stock-icons/24/gtk-media-next-ltr.png           \
1097         stock-icons/24/gtk-media-pause.png              \
1098         stock-icons/24/gtk-media-play-ltr.png           \
1099         stock-icons/24/gtk-media-play-rtl.png           \
1100         stock-icons/24/gtk-media-previous-ltr.png       \
1101         stock-icons/24/gtk-media-record.png             \
1102         stock-icons/24/gtk-media-rewind-ltr.png         \
1103         stock-icons/24/gtk-media-stop.png               \
1104         stock-icons/24/gtk-missing-image.png            \
1105         stock-icons/24/gtk-network.png                  \
1106         stock-icons/24/gtk-new.png                      \
1107         stock-icons/24/gtk-open.png                     \
1108         stock-icons/24/gtk-orientation-reverse-landscape.png \
1109         stock-icons/24/gtk-orientation-landscape.png    \
1110         stock-icons/24/gtk-orientation-reverse-portrait.png     \
1111         stock-icons/24/gtk-orientation-portrait.png     \
1112         stock-icons/24/gtk-page-setup.png               \
1113         stock-icons/24/gtk-paste.png                    \
1114         stock-icons/24/gtk-preferences.png              \
1115         stock-icons/24/gtk-print.png                    \
1116         stock-icons/24/gtk-print-preview.png            \
1117         stock-icons/24/gtk-properties.png               \
1118         stock-icons/24/gtk-quit.png                     \
1119         stock-icons/24/gtk-redo-ltr.png                 \
1120         stock-icons/24/gtk-redo-rtl.png                 \
1121         stock-icons/24/gtk-refresh.png                  \
1122         stock-icons/24/gtk-remove.png                   \
1123         stock-icons/24/gtk-revert-to-saved-ltr.png      \
1124         stock-icons/24/gtk-revert-to-saved-rtl.png      \
1125         stock-icons/24/gtk-select-font.png              \
1126         stock-icons/24/gtk-save-as.png                  \
1127         stock-icons/24/gtk-floppy.png                   \
1128         stock-icons/24/gtk-select-all.png               \
1129         stock-icons/24/gtk-select-color.png             \
1130         stock-icons/24/gtk-sort-ascending.png           \
1131         stock-icons/24/gtk-sort-descending.png          \
1132         stock-icons/24/gtk-spell-check.png              \
1133         stock-icons/24/gtk-stop.png                     \
1134         stock-icons/24/gtk-strikethrough.png            \
1135         stock-icons/24/gtk-delete.png                   \
1136         stock-icons/24/gtk-undelete-ltr.png             \
1137         stock-icons/24/gtk-undelete-rtl.png             \
1138         stock-icons/24/gtk-underline.png                \
1139         stock-icons/24/gtk-undo-ltr.png                 \
1140         stock-icons/24/gtk-undo-rtl.png                 \
1141         stock-icons/24/gtk-unindent-ltr.png             \
1142         stock-icons/24/gtk-unindent-rtl.png             \
1143         stock-icons/24/gtk-zoom-100.png                 \
1144         stock-icons/24/gtk-zoom-fit.png                 \
1145         stock-icons/24/gtk-zoom-in.png                  \
1146         stock-icons/24/gtk-zoom-out.png                 \
1147         stock-icons/24/gtk-go-forward-ltr.png           \
1148         stock-icons/32/gtk-dnd-multiple.png             \
1149         stock-icons/32/gtk-dnd.png                      \
1150         stock-icons/48/gtk-dialog-authentication.png    \
1151         stock-icons/48/gtk-dialog-error.png             \
1152         stock-icons/48/gtk-dialog-info.png              \
1153         stock-icons/48/gtk-dialog-question.png          \
1154         stock-icons/48/gtk-dialog-warning.png
1155
1156 GENERATED_ICONS = \
1157         stock-icons/16/gtk-go-back-rtl.png              \
1158         stock-icons/16/gtk-go-forward-rtl.png           \
1159         stock-icons/16/gtk-goto-first-rtl.png           \
1160         stock-icons/16/gtk-goto-last-rtl.png            \
1161         stock-icons/16/gtk-media-forward-rtl.png        \
1162         stock-icons/16/gtk-media-next-rtl.png           \
1163         stock-icons/16/gtk-media-previous-rtl.png       \
1164         stock-icons/16/gtk-media-rewind-rtl.png         \
1165         stock-icons/16/gtk-save.png                     \
1166         stock-icons/24/gtk-go-back-rtl.png              \
1167         stock-icons/24/gtk-go-forward-rtl.png           \
1168         stock-icons/24/gtk-goto-first-rtl.png           \
1169         stock-icons/24/gtk-goto-last-rtl.png            \
1170         stock-icons/24/gtk-media-forward-rtl.png        \
1171         stock-icons/24/gtk-media-next-rtl.png           \
1172         stock-icons/24/gtk-media-previous-rtl.png       \
1173         stock-icons/24/gtk-media-rewind-rtl.png         \
1174         stock-icons/24/gtk-save.png
1175
1176 # need to copy the icons so that we can replace the generated ones with
1177 # symlinks, even in the readonly srcdir case
1178 stamp-icons: $(STOCK_ICONS)
1179         if [ ! -d stock-icons ]; then                                   \
1180           for d in 16 20 24 32 48; do                                   \
1181             mkdir -p stock-icons/$$d;                                   \
1182           done;                                                         \
1183           for f in $(STOCK_ICONS); do                                   \
1184             cp $(srcdir)/$$f $$(dirname $$f);                           \
1185           done;                                                         \
1186           chmod -R u+w stock-icons;                                     \
1187         fi &&                                                           \
1188         for i in 16 24; do                                              \
1189            (cd stock-icons/$$i                                          \
1190            && $(RM) gtk-go-back-rtl.png                                 \
1191            && $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png        \
1192            && $(RM) gtk-go-forward-rtl.png                              \
1193            && $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png        \
1194            && $(RM) gtk-goto-first-rtl.png                              \
1195            && $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png      \
1196            && $(RM) gtk-goto-last-rtl.png                               \
1197            && $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png      \
1198            && $(RM) gtk-media-forward-rtl.png                           \
1199            && $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png\
1200            && $(RM) gtk-media-next-rtl.png                              \
1201            && $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png \
1202            && $(RM) gtk-media-previous-rtl.png                          \
1203            && $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png \
1204            && $(RM) gtk-media-rewind-rtl.png                            \
1205            && $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png\
1206            && $(RM) gtk-save.png                                        \
1207            && $(LN_S) gtk-floppy.png gtk-save.png)                      \
1208         done                                                            \
1209         && touch stamp-icons
1210
1211 if CROSS_COMPILING
1212 gtk_update_icon_cache_program = $(GTK_UPDATE_ICON_CACHE)
1213 else
1214 gtk_update_icon_cache_program =                                                 \
1215         GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders    \
1216            ./gtk-update-icon-cache
1217 endif
1218
1219 gtkbuiltincache.h: @REBUILD@ stamp-icons
1220         $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
1221         $(gtk_update_icon_cache_program) --force --ignore-theme-index           \
1222            --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
1223         mv gtkbuiltincache.h.tmp gtkbuiltincache.h
1224
1225 EXTRA_DIST +=                   \
1226         $(STOCK_ICONS)          \
1227         $(GENERATED_ICONS)      \
1228         line-arrow.xbm          \
1229         line-wrap.xbm           \
1230         tree_plus.xbm           \
1231         tree_minus.xbm          \
1232         tree_minus.xpm          \
1233         tree_plus.xpm           \
1234         gtk.def                 \
1235         gtk-builder-convert     \
1236         gtk-win32.rc            \
1237         gtk-win32.rc.in         \
1238         gtkwin32embed.h         \
1239         gtkwin32embedwidget.h   \
1240         gtkwin32embedwidget.c   \
1241         gtkprint-win32.h        \
1242         gtkprint-win32.c        \
1243         gtksearchenginequartz.h \
1244         gtkrc.default           \
1245         gtkrc.key.default       \
1246         gtkrc.key.emacs         \
1247         makefile.msc            \
1248         makefile.msc.in         \
1249         makegtkalias.pl         \
1250         aliasfilescheck.sh      \
1251         abicheck.sh             \
1252         pltcheck.sh             \
1253         gtktypebuiltins.c.template      \
1254         gtktypebuiltins.h.template
1255
1256
1257 install-data-local: