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