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