]> Pileus Git - ~andy/gtk/blob - gtk/Makefile.am
Use standard mac shortcuts
[~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         gtkcellrendererspinner.h\
182         gtkcellrenderertext.h   \
183         gtkcellrenderertoggle.h \
184         gtkcellview.h           \
185         gtkcheckbutton.h        \
186         gtkcheckmenuitem.h      \
187         gtkclipboard.h          \
188         gtkcolorbutton.h        \
189         gtkcolorsel.h           \
190         gtkcolorseldialog.h     \
191         gtkcombobox.h           \
192         gtkcomboboxentry.h      \
193         gtkcontainer.h          \
194         gtkdebug.h              \
195         gtkdialog.h             \
196         gtkdnd.h                \
197         gtkdrawingarea.h        \
198         gtkeditable.h           \
199         gtkentry.h              \
200         gtkentrybuffer.h        \
201         gtkentrycompletion.h    \
202         gtkenums.h              \
203         gtkeventbox.h           \
204         gtkexpander.h           \
205         gtkfilechooser.h        \
206         gtkfilechooserbutton.h  \
207         gtkfilechooserdialog.h  \
208         gtkfilechooserwidget.h  \
209         gtkfilefilter.h         \
210         gtkfixed.h              \
211         gtkfontbutton.h         \
212         gtkfontsel.h            \
213         gtkframe.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         gtkinfobar.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         gtkspinner.h            \
291         gtkstatusbar.h          \
292         gtkstatusicon.h         \
293         gtkstock.h              \
294         gtkstyle.h              \
295         gtktable.h              \
296         gtktearoffmenuitem.h    \
297         gtktestutils.h          \
298         gtktextbuffer.h         \
299         gtktextbufferrichtext.h \
300         gtktextchild.h          \
301         gtktextdisplay.h        \
302         gtktextiter.h           \
303         gtktextmark.h           \
304         gtktexttag.h            \
305         gtktexttagtable.h       \
306         gtktextview.h           \
307         gtktoggleaction.h       \
308         gtktogglebutton.h       \
309         gtktoggletoolbutton.h   \
310         gtktoolbar.h            \
311         gtktoolbutton.h         \
312         gtktoolitem.h           \
313         gtktoolshell.h          \
314         gtktooltip.h            \
315         gtktreednd.h            \
316         gtktreemodel.h          \
317         gtktreemodelfilter.h    \
318         gtktreemodelsort.h      \
319         gtktreeselection.h      \
320         gtktreesortable.h       \
321         gtktreestore.h          \
322         gtktreeview.h           \
323         gtktreeviewcolumn.h     \
324         gtktypeutils.h          \
325         gtkuimanager.h          \
326         gtkvbbox.h              \
327         gtkvbox.h               \
328         gtkviewport.h           \
329         gtkvolumebutton.h       \
330         gtkvpaned.h             \
331         gtkvruler.h             \
332         gtkvscale.h             \
333         gtkvscrollbar.h         \
334         gtkvseparator.h         \
335         gtkwidget.h             \
336         gtkwindow.h
337
338 if OS_UNIX
339 gtk_unix_print_public_h_sources =    \
340         gtkpagesetupunixdialog.h        \
341         gtkprintunixdialog.h            \
342         gtkprinter.h                    \
343         gtkprintjob.h                   \
344         gtkunixprint.h
345 endif
346
347 # Installed header files without compatibility guarantees
348 # that are not included in gtk/gtk.h
349 gtk_semi_private_h_sources =    \
350         gtktextlayout.h
351
352 # GTK+ header files that don't get installed
353 gtk_private_h_sources =         \
354         gtkquery.h              \
355         gtksearchengine.h       \
356         gtksearchenginesimple.h \
357         gtkdndcursors.h         \
358         gtkentryprivate.h       \
359         gtkbuilderprivate.h     \
360         gtkcustompaperunixdialog.h\
361         gtkfilechooserdefault.h \
362         gtkfilechooserembed.h   \
363         gtkfilechooserentry.h   \
364         gtkfilechooserprivate.h \
365         gtkfilechoosersettings.h \
366         gtkfilechooserutils.h   \
367         gtkfilesystem.h         \
368         gtkfilesystemmodel.h    \
369         gtkiconcache.h          \
370         gtkintl.h               \
371         gtkkeyhash.h            \
372         gtkmnemonichash.h       \
373         gtkmountoperationprivate.h \
374         gtkpathbar.h            \
375         gtkplugprivate.h        \
376         gtkprintoperation-private.h\
377         gtkprintutils.h         \
378         gtkrbtree.h             \
379         gtkrecentchooserdefault.h \
380         gtkrecentchooserprivate.h \
381         gtkrecentchooserutils.h \
382         gtksocketprivate.h      \
383         gtktextbtree.h          \
384         gtktextbufferserialize.h\
385         gtktextchildprivate.h   \
386         gtktextiterprivate.h    \
387         gtktextmarkprivate.h    \
388         gtktextsegment.h        \
389         gtktexttagprivate.h     \
390         gtktexttypes.h          \
391         gtktextutil.h           \
392         gtkthemes.h             \
393         gtktoggleactionprivate.h\
394         gtktreedatalist.h       \
395         gtktreeprivate.h        \
396         gtkwindow-decorate.h    \
397         $(gtk_clipboard_dnd_h_sources)
398
399 # GTK+ C sources to build the library from
400 gtk_base_c_sources =            \
401         gtkquery.c              \
402         gtksearchengine.c       \
403         gtksearchenginesimple.c \
404         fnmatch.c               \
405         gtkaboutdialog.c        \
406         gtkaccelgroup.c         \
407         gtkaccellabel.c         \
408         gtkaccelmap.c           \
409         gtkaccessible.c         \
410         gtkaction.c             \
411         gtkactiongroup.c        \
412         gtkactivatable.c        \
413         gtkadjustment.c         \
414         gtkalignment.c          \
415         gtkarrow.c              \
416         gtkaspectframe.c        \
417         gtkassistant.c          \
418         gtkbbox.c               \
419         gtkbin.c                \
420         gtkbindings.c           \
421         gtkbox.c                \
422         gtkbuildable.c          \
423         gtkbuilder.c            \
424         gtkbuilderparser.c      \
425         gtkbutton.c             \
426         gtkcalendar.c           \
427         gtkcelleditable.c       \
428         gtkcelllayout.c         \
429         gtkcellrenderer.c       \
430         gtkcellrendereraccel.c  \
431         gtkcellrenderercombo.c  \
432         gtkcellrendererpixbuf.c \
433         gtkcellrendererprogress.c \
434         gtkcellrendererspin.c   \
435         gtkcellrendererspinner.c\
436         gtkcellrenderertext.c   \
437         gtkcellrenderertoggle.c \
438         gtkcellview.c           \
439         gtkcheckbutton.c        \
440         gtkcheckmenuitem.c      \
441         gtkcolorbutton.c        \
442         gtkcolorsel.c           \
443         gtkcolorseldialog.c     \
444         gtkcombobox.c           \
445         gtkcomboboxentry.c      \
446         gtkcontainer.c          \
447         gtkdialog.c             \
448         gtkdrawingarea.c        \
449         gtkeditable.c           \
450         gtkentry.c              \
451         gtkentrybuffer.c        \
452         gtkentrycompletion.c    \
453         gtkeventbox.c           \
454         gtkexpander.c           \
455         gtkfilechooser.c        \
456         gtkfilechooserbutton.c  \
457         gtkfilechooserdefault.c \
458         gtkfilechooserdialog.c  \
459         gtkfilechooserembed.c   \
460         gtkfilechooserentry.c   \
461         gtkfilechoosersettings.c \
462         gtkfilechooserutils.c   \
463         gtkfilechooserwidget.c  \
464         gtkfilefilter.c         \
465         gtkfilesystem.c         \
466         gtkfilesystemmodel.c    \
467         gtkfixed.c              \
468         gtkfontbutton.c         \
469         gtkfontsel.c            \
470         gtkframe.c              \
471         gtkgc.c                 \
472         gtkhandlebox.c          \
473         gtkhbbox.c              \
474         gtkhbox.c               \
475         gtkhpaned.c             \
476         gtkhruler.c             \
477         gtkhscale.c             \
478         gtkhscrollbar.c         \
479         gtkhseparator.c         \
480         gtkhsv.c                \
481         gtkiconcache.c          \
482         gtkiconcachevalidator.c \
483         gtkiconfactory.c        \
484         gtkicontheme.c          \
485         gtkiconview.c           \
486         gtkimage.c              \
487         gtkimagemenuitem.c      \
488         gtkimcontext.c          \
489         gtkimcontextsimple.c    \
490         gtkimmodule.c           \
491         gtkimmulticontext.c     \
492         gtkinfobar.c            \
493         gtkinputdialog.c        \
494         gtkinvisible.c          \
495         gtkitem.c               \
496         gtkkeyhash.c            \
497         gtklabel.c              \
498         gtklayout.c             \
499         gtklinkbutton.c         \
500         gtkliststore.c          \
501         gtkmain.c               \
502         gtkmarshal.c            \
503         gtkmarshalers.c         \
504         gtkmenu.c               \
505         gtkmenubar.c            \
506         gtkmenuitem.c           \
507         gtkmenushell.c          \
508         gtkmenutoolbutton.c     \
509         gtkmessagedialog.c      \
510         gtkmisc.c               \
511         gtkmnemonichash.c       \
512         gtkmodules.c            \
513         gtkmountoperation.c     \
514         gtknotebook.c           \
515         gtkobject.c             \
516         gtkorientable.c         \
517         gtkpagesetup.c          \
518         gtkpaned.c              \
519         gtkpapersize.c          \
520         gtkpathbar.c            \
521         gtkplug.c               \
522         gtkprintcontext.c       \
523         gtkprintoperation.c     \
524         gtkprintoperationpreview.c      \
525         gtkprintsettings.c      \
526         gtkprintutils.c         \
527         gtkprogressbar.c        \
528         gtkradioaction.c        \
529         gtkradiobutton.c        \
530         gtkradiomenuitem.c      \
531         gtkradiotoolbutton.c    \
532         gtkrange.c              \
533         gtkrbtree.c             \
534         gtkrc.c                 \
535         gtkrecentaction.c       \
536         gtkrecentchooserdefault.c \
537         gtkrecentchooserdialog.c \
538         gtkrecentchoosermenu.c  \
539         gtkrecentchooserwidget.c \
540         gtkrecentchooserutils.c \
541         gtkrecentchooser.c      \
542         gtkrecentfilter.c       \
543         gtkrecentmanager.c      \
544         gtkruler.c              \
545         gtkscale.c              \
546         gtkscalebutton.c        \
547         gtkscrollbar.c          \
548         gtkscrolledwindow.c     \
549         gtkselection.c          \
550         gtkseparator.c          \
551         gtkseparatormenuitem.c  \
552         gtkseparatortoolitem.c  \
553         gtksettings.c           \
554         gtksizegroup.c          \
555         gtkshow.c               \
556         gtksocket.c             \
557         gtkspinbutton.c         \
558         gtkspinner.c            \
559         gtkstatusbar.c          \
560         gtkstatusicon.c         \
561         gtkstock.c              \
562         gtkstyle.c              \
563         gtktable.c              \
564         gtktearoffmenuitem.c    \
565         gtktestutils.c          \
566         gtktextbtree.c          \
567         gtktextbuffer.c         \
568         gtktextbufferrichtext.c \
569         gtktextbufferserialize.c\
570         gtktextchild.c          \
571         gtktextdisplay.c        \
572         gtktextiter.c           \
573         gtktextlayout.c         \
574         gtktextmark.c           \
575         gtktextsegment.c        \
576         gtktexttag.c            \
577         gtktexttagtable.c       \
578         gtktexttypes.c          \
579         gtktextutil.c           \
580         gtktextview.c           \
581         gtkthemes.c             \
582         gtktoggleaction.c       \
583         gtktogglebutton.c       \
584         gtktoggletoolbutton.c   \
585         gtktoolbar.c            \
586         gtktoolbutton.c         \
587         gtktoolitem.c           \
588         gtktoolshell.c          \
589         gtktooltip.c            \
590         gtktreedatalist.c       \
591         gtktreednd.c            \
592         gtktreemodel.c          \
593         gtktreemodelfilter.c    \
594         gtktreemodelsort.c      \
595         gtktreeselection.c      \
596         gtktreesortable.c       \
597         gtktreestore.c          \
598         gtktreeview.c           \
599         gtktreeviewcolumn.c     \
600         gtktypebuiltins.c       \
601         gtktypeutils.c          \
602         gtkuimanager.c          \
603         gtkvbbox.c              \
604         gtkvbox.c               \
605         gtkvolumebutton.c       \
606         gtkviewport.c           \
607         gtkvpaned.c             \
608         gtkvruler.c             \
609         gtkvscale.c             \
610         gtkvscrollbar.c         \
611         gtkvseparator.c         \
612         gtkwidget.c             \
613         gtkwindow-decorate.c    \
614         gtkwindow.c             \
615         $(gtk_clipboard_dnd_c_sources)
616
617 # Broken
618 gtk_public_h_sources += \
619         gtktext.h               \
620         gtktree.h               \
621         gtktreeitem.h
622 gtk_base_c_sources += \
623         gtktext.c               \
624         gtktree.c               \
625         gtktreeitem.c
626
627 # Deprecated
628 gtk_public_h_sources += \
629         gtkclist.h              \
630         gtkcombo.h              \
631         gtkctree.h              \
632         gtkcurve.h              \
633         gtkfilesel.h            \
634         gtkgamma.h              \
635         gtkinputdialog.h        \
636         gtkitemfactory.h        \
637         gtklist.h               \
638         gtklistitem.h           \
639         gtkoldeditable.h        \
640         gtkoptionmenu.h         \
641         gtkpixmap.h             \
642         gtkpreview.h            \
643         gtkprogress.h           \
644         gtksignal.h             \
645         gtktipsquery.h          \
646         gtktooltips.h
647 gtk_base_c_sources += \
648         gtkclist.c              \
649         gtkcombo.c              \
650         gtkctree.c              \
651         gtkcurve.c              \
652         gtkfilesel.c            \
653         gtkgamma.c              \
654         gtkitemfactory.c        \
655         gtklist.c               \
656         gtklistitem.c           \
657         gtkoldeditable.c        \
658         gtkoptionmenu.c         \
659         gtkpixmap.c             \
660         gtkpreview.c            \
661         gtkprogress.c           \
662         gtksignal.c             \
663         gtktipsquery.c          \
664         gtktooltips.c
665
666 gtk_c_sources = $(gtk_base_c_sources)
667 gtk_all_c_sources = $(gtk_base_c_sources)
668
669 gtk_os_unix_c_sources = \
670         gtkcustompaperunixdialog.c      \
671         gtkpagesetupunixdialog.c        \
672         gtkprinter.c                    \
673         gtkprinteroption.c              \
674         gtkprinteroptionset.c           \
675         gtkprinteroptionwidget.c        \
676         gtkprintjob.c                   \
677         gtkprintoperation-unix.c        \
678         gtkprintunixdialog.c            \
679         gtkprintbackend.c               \
680         gtksearchenginebeagle.c         \
681         gtksearchenginetracker.c
682 gtk_all_c_sources += $(gtk_os_unix_c_sources)
683 if OS_UNIX
684 gtk_private_h_sources += \
685         gtkiconcachevalidator.h         \
686         gtkprintbackend.h               \
687         gtkprinter-private.h            \
688         gtkprinteroption.h              \
689         gtkprinteroptionset.h           \
690         gtkprinteroptionwidget.h        \
691         gtksearchenginebeagle.h         \
692         gtksearchenginetracker.h
693 gtk_c_sources += $(gtk_os_unix_c_sources)
694 endif
695
696 gtk_os_win32_c_sources = \
697         gtkprint-win32.c                \
698         gtkprintoperation-win32.c
699 gtk_all_c_sources += $(gtk_os_win32_c_sources)
700 if OS_WIN32
701 gtk_private_h_sources += gtkprint-win32.h
702 gtk_c_sources += $(gtk_os_win32_c_sources)
703 endif
704
705 gtk_use_x11_c_sources = \
706         gtkplug-x11.c   \
707         gtksocket-x11.c \
708         gtkxembed.c     \
709         gtktrayicon-x11.c \
710         gtkmountoperation-x11.c
711 gtk_use_win32_c_sources = \
712         gtkplug-win32.c   \
713         gtksocket-win32.c \
714         gtkwin32embed.c   \
715         gtkwin32embedwidget.c \
716         gtkmountoperation-stub.c
717 gtk_use_quartz_c_sources =      \
718         gtksearchenginequartz.c \
719         gtkplug-stub.c          \
720         gtksocket-stub.c        \
721         gtkmountoperation-stub.c
722 gtk_use_stub_c_sources = \
723         gtkplug-stub.c   \
724         gtksocket-stub.c \
725         gtkmountoperation-stub.c
726 gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
727 if USE_X11
728 gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
729 gtk_c_sources += $(gtk_use_x11_c_sources)
730 else
731 if USE_WIN32
732 gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
733 gtk_c_sources += $(gtk_use_win32_c_sources)
734 else
735 if USE_QUARTZ
736 gtk_private_h_sources += gtksearchenginequartz.h
737 gtk_c_sources += $(gtk_use_quartz_c_sources)
738 gtk_use_quartz_c_sources_CFLAGS = "-xobjective-c"
739 else
740 gtk_c_sources += $(gtk_use_stub_c_sources)
741 endif
742 endif
743 endif
744
745 if USE_QUARTZ
746 gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c
747 gtk_clipboard_dnd_h_sources = gtkquartz.h
748 gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
749 else
750 gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
751 gtk_clipboard_dnd_c_sources_CFLAGS =
752 endif
753 EXTRA_DIST += gtkquartz.h
754
755 # we use our own built_sources variable rules to avoid automake's
756 # BUILT_SOURCES oddities
757 # we generate frequently rebuild files piggyback on a stamp file, so sources
758 # depending on them only get rebuild when the built source actually changed
759 # content
760
761 # built sources that get installed with the header files
762 gtk_built_public_sources =                      \
763         gtkmarshal.h                            \
764         gtktypebuiltins.h
765
766 # built headers that don't get installed
767 gtk_built_private_headers =                     \
768         gtkalias.h                              \
769         gtkmarshalers.h                         \
770         gtkbuiltincache.h                       \
771         gtkimcontextsimpleseqs.h
772
773 gtk_built_sources =                             \
774         gtkaliasdef.c                           \
775         gtktypebuiltins.c                       \
776         gtktypefuncs.c                          \
777         gtkmarshalers.c                         \
778         gtkmarshal.c                            \
779         ${gtk_built_private_headers}            \
780         ${gtk_built_public_sources}
781
782 stamp_files =                                   \
783         stamp-gtkmarshalers.h                   \
784         stamp-gtkmarshal.h                      \
785         stamp-gtktypebuiltins.h                 \
786         stamp-icons
787
788 # non-header sources (headers should be specified in the above variables)
789 # that don't serve as direct make target sources, i.e. they don't have
790 # their own .lo rules and don't get publically installed
791 gtk_extra_sources =                             \
792         paper_names.c                           \
793         paper_names_offsets.c                   \
794         gen-paper-names.c                       \
795         gtkstatusicon-quartz.c                  \
796         gtk.symbols                             \
797         gtkversion.h.in                         \
798         gtkmarshalers.list                      \
799         gtkmarshal.list
800
801 #
802 # setup GTK+ sources and their dependencies
803 #
804 MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
805 EXTRA_HEADERS =
806 EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
807 EXTRA_DIST += $(gtk_built_sources)
808 EXTRA_DIST += $(STOCK_ICONS)
809
810 #
811 # rules to generate built sources
812 #
813 # setup autogeneration dependencies
814 gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc xgen-gtfsrc.c xgen-gtf
815 CLEANFILES = $(gen_sources)
816
817 BUILT_SOURCES = $(gtk_built_sources)
818
819 # all autogenerated files need to be generated in the srcdir,
820 # so old versions get remade and are not confused with newer
821 # versions in the build dir. thus a development setup requires
822 # srcdir to be writable, passing --disable-rebuilds to
823 # ../configure will supress all autogeneration rules.
824 gtkmarshalers.h: stamp-gtkmarshalers.h
825         @true
826 stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
827         $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
828         && (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
829         && rm -f xgen-gmlh \
830         && echo timestamp > $(@F)       
831 gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
832         (echo "#include \"gtkmarshalers.h\""; \
833          echo "#include \"gtkalias.h\""; \
834          $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
835         && cp xgen-gmlc gtkmarshalers.c \
836         && rm -f xgen-gmlc
837
838 gtkmarshal.h: stamp-gtkmarshal.h
839         @true
840 stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list
841         echo "#ifndef GTK_DISABLE_DEPRECATED" > xgen-gmh                                        \
842         && $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --header >> xgen-gmh \
843         && echo "#endif /* GTK_DISABLE_DEPRECATED */" >> xgen-gmh \
844         && (cmp -s xgen-gmh gtkmarshal.h || cp xgen-gmh gtkmarshal.h) \
845         && rm -f xgen-gmh \
846         && echo timestamp > $(@F)
847 gtkmarshal.c: @REBUILD@ gtkmarshal.list
848         (echo "#include \"gtkmarshal.h\""; \
849          echo "#include \"gtkalias.h\""; \
850          $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --body; \
851          echo "#define __gtk_marshal_MARSHAL_C__"; \
852          echo "#include \"gtkaliasdef.c\"") >> xgen-gmc \
853         && cp xgen-gmc gtkmarshal.c \
854         && rm -f xgen-gmc
855
856 gtktypebuiltins.h: stamp-gtktypebuiltins.h
857         @true
858 stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
859         ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
860                 $(gtk_public_h_sources) ) >> xgen-gtbh \
861         && (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
862         && rm -f xgen-gtbh \
863         && echo timestamp > $(@F)
864 gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
865         ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
866                 $(gtk_public_h_sources) ) > xgen-gtbc \
867         && cp xgen-gtbc gtktypebuiltins.c  \
868         && rm -f xgen-gtbc
869
870 gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
871         echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
872           ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
873           grep -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
874           sort | uniq | \
875           sed '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \
876         && cp xgen-gtf $@ && rm -f xgen-gtf
877 gtktestutils.c: gtktypefuncs.c
878
879 # target platform:
880 lib_LTLIBRARIES = $(gtktargetlib)
881
882 gtkincludedir = $(includedir)/gtk-2.0/gtk
883 gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
884
885 gtkunixprintincludedir = $(includedir)/gtk-unix-print-2.0/gtk
886 gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)
887
888 libgtk_x11_2_0_la_SOURCES = $(gtk_c_sources)
889 libgtk_win32_2_0_la_SOURCES = $(gtk_c_sources)
890 libgtk_quartz_2_0_la_SOURCES = $(gtk_c_sources)
891 libgtk_directfb_2_0_la_SOURCES = $(gtk_c_sources)
892
893 libgtk_x11_2_0_la_LDFLAGS = $(libtool_opts)
894 libgtk_win32_2_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid
895 libgtk_quartz_2_0_la_LDFLAGS = $(libtool_opts)
896 libgtk_directfb_2_0_la_LDFLAGS = $(libtool_opts)
897
898 libgtk_x11_2_0_la_LIBADD = $(libadd)
899 libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
900 libgtk_quartz_2_0_la_LIBADD = $(libadd)
901 libgtk_directfb_2_0_la_LIBADD = $(libadd)
902
903 libgtk_x11_2_0_la_DEPENDENCIES = $(deps)
904 libgtk_win32_2_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res) $(deps)
905 libgtk_quartz_2_0_la_DEPENDENCIES = $(deps)
906 libgtk_directfb_2_0_la_DEPENDENCIES = $(deps)
907
908 if USE_WIN32
909 libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
910 endif
911 EXTRA_LTLIBRARIES = libgtk-x11-2.0.la libgtk-win32-2.0.la libgtk-quartz-2.0.la libgtk-directfb-2.0.la
912
913 install-exec-hook: 
914 if DISABLE_EXPLICIT_DEPS
915         $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$(gtktargetlib)
916 endif
917
918 if USE_QUARTZ
919 install-mac-key-theme:
920         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Mac/gtk-2.0-key
921         $(INSTALL_DATA) $(srcdir)/gtkrc.key.mac $(DESTDIR)$(datadir)/themes/Mac/gtk-2.0-key/gtkrc
922 uninstall-mac-key-theme:
923         rm -f $(DESTDIR)$(datadir)/themes/Mac/gtk-2.0-key/gtkrc
924 else
925 install-mac-key-theme:
926 uninstall-mac-key-theme:
927 endif
928
929 # Install a RC file for the default GTK+ theme, and key themes
930 install-data-local: install-ms-lib install-def-file install-mac-key-theme
931         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0
932         $(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
933         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key
934         $(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
935         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key
936         $(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
937
938 uninstall-local: uninstall-ms-lib uninstall-def-file uninstall-mac-key-theme
939         rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
940         rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
941         rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
942
943 # if srcdir!=builddir, clean out maintainer-clean files from builddir
944 # this allows dist to pass.
945 distclean-local:
946         if test $(srcdir) != .; then \
947           rm -f $(MAINTAINERCLEANFILES); \
948         fi
949
950 DEPS = $(gtktargetlib) $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(top_builddir)/gdk/$(gdktargetlib)
951
952 TEST_DEPS = $(DEPS) gtk.immodules
953
954 LDADDS =                                                                \
955         $(gtktargetlib)                                                 \
956         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
957         $(top_builddir)/gdk/$(gdktargetlib)
958
959 #
960 # Installed tools
961 #
962 bin_PROGRAMS = \
963         gtk-query-immodules-2.0 \
964         gtk-update-icon-cache
965
966 bin_SCRIPTS = gtk-builder-convert
967
968 if OS_WIN32
969
970 # Workaround for UAC silliness: programs with "update" in their name
971 # are believed to be installers and require elevated privileges to be
972 # used... Use a manifest file to tell Windows that
973 # gtk-update-icon-cache.exe doesn't require any special privileges.
974
975 GTK_UPDATE_ICON_CACHE_MANIFEST = gtk-update-icon-cache.exe.manifest
976
977 bin_SCRIPTS += \
978         $(GTK_UPDATE_ICON_CACHE_MANIFEST)
979
980 gtk-update-icon-cache.exe.manifest:
981         (echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ; \
982          echo '<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">' ; \
983          echo '  <assemblyIdentity version="1.0.0.0"' ; \
984          echo '     processorArchitecture="'$(LIB_EXE_MACHINE_FLAG)'"' ; \
985          echo '     name="gtk-update-icon-cache.exe"' ; \
986          echo '     type="win32"/>' ; \
987          echo '  <!-- Identify the application security requirements. -->' ; \
988          echo '  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">' ; \
989          echo '    <security>' ; \
990          echo '      <requestedPrivileges>' ; \
991          echo '        <requestedExecutionLevel' ; \
992          echo '          level="asInvoker"' ; \
993          echo '          uiAccess="false"/>' ; \
994          echo '        </requestedPrivileges>' ; \
995          echo '       </security>' ; \
996          echo '  </trustInfo>' ; \
997          echo '</assembly>' ) >$@
998
999 endif
1000
1001 gtk_query_immodules_2_0_DEPENDENCIES = $(DEPS)
1002 gtk_query_immodules_2_0_LDADD = $(LDADDS)
1003
1004 gtk_query_immodules_2_0_SOURCES = queryimmodules.c
1005
1006 gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
1007
1008 gtk_update_icon_cache_SOURCES = \
1009         updateiconcache.c 
1010
1011 .PHONY: files test test-debug
1012
1013 files:
1014         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
1015           echo $$p; \
1016         done
1017
1018 STOCK_ICONS = \
1019         stock-icons/16/document-open-recent.png         \
1020         stock-icons/16/gtk-about.png                    \
1021         stock-icons/16/gtk-add.png                      \
1022         stock-icons/16/gtk-cdrom.png                    \
1023         stock-icons/16/gtk-close.png                    \
1024         stock-icons/16/gtk-connect.png                  \
1025         stock-icons/16/gtk-convert.png                  \
1026         stock-icons/16/gtk-copy.png                     \
1027         stock-icons/16/gtk-cut.png                      \
1028         stock-icons/16/gtk-delete.png                   \
1029         stock-icons/16/gtk-directory.png                \
1030         stock-icons/16/gtk-disconnect.png               \
1031         stock-icons/16/gtk-edit.png                     \
1032         stock-icons/16/gtk-execute.png                  \
1033         stock-icons/16/gtk-file.png                     \
1034         stock-icons/16/gtk-find-and-replace.png         \
1035         stock-icons/16/gtk-find.png                     \
1036         stock-icons/16/gtk-floppy.png                   \
1037         stock-icons/16/gtk-fullscreen.png               \
1038         stock-icons/16/gtk-go-back-ltr.png              \
1039         stock-icons/16/gtk-go-down.png                  \
1040         stock-icons/16/gtk-go-forward-ltr.png           \
1041         stock-icons/16/gtk-goto-bottom.png              \
1042         stock-icons/16/gtk-goto-first-ltr.png           \
1043         stock-icons/16/gtk-goto-last-ltr.png            \
1044         stock-icons/16/gtk-goto-top.png                 \
1045         stock-icons/16/gtk-go-up.png                    \
1046         stock-icons/16/gtk-harddisk.png                 \
1047         stock-icons/16/gtk-help.png                     \
1048         stock-icons/16/gtk-home.png                     \
1049         stock-icons/16/gtk-indent-ltr.png               \
1050         stock-icons/16/gtk-indent-rtl.png               \
1051         stock-icons/16/gtk-index.png                    \
1052         stock-icons/16/gtk-info.png                     \
1053         stock-icons/16/gtk-jump-to-ltr.png              \
1054         stock-icons/16/gtk-jump-to-rtl.png              \
1055         stock-icons/16/gtk-justify-center.png           \
1056         stock-icons/16/gtk-justify-fill.png             \
1057         stock-icons/16/gtk-justify-left.png             \
1058         stock-icons/16/gtk-justify-right.png            \
1059         stock-icons/16/gtk-leave-fullscreen.png         \
1060         stock-icons/16/gtk-media-forward-ltr.png        \
1061         stock-icons/16/gtk-media-next-ltr.png           \
1062         stock-icons/16/gtk-media-pause.png              \
1063         stock-icons/16/gtk-media-play-ltr.png           \
1064         stock-icons/16/gtk-media-play-rtl.png           \
1065         stock-icons/16/gtk-media-previous-ltr.png       \
1066         stock-icons/16/gtk-media-record.png             \
1067         stock-icons/16/gtk-media-rewind-ltr.png         \
1068         stock-icons/16/gtk-media-stop.png               \
1069         stock-icons/16/gtk-missing-image.png            \
1070         stock-icons/16/gtk-network.png                  \
1071         stock-icons/16/gtk-new.png                      \
1072         stock-icons/16/gtk-open.png                     \
1073         stock-icons/16/gtk-page-setup.png               \
1074         stock-icons/16/gtk-paste.png                    \
1075         stock-icons/16/gtk-preferences.png              \
1076         stock-icons/16/gtk-print.png                    \
1077         stock-icons/16/gtk-print-error.png              \
1078         stock-icons/16/gtk-print-paused.png             \
1079         stock-icons/16/gtk-print-preview.png            \
1080         stock-icons/16/gtk-print-report.png             \
1081         stock-icons/16/gtk-print-warning.png            \
1082         stock-icons/16/gtk-properties.png               \
1083         stock-icons/16/gtk-quit.png                     \
1084         stock-icons/16/gtk-redo-ltr.png                 \
1085         stock-icons/16/gtk-redo-rtl.png                 \
1086         stock-icons/16/gtk-refresh.png                  \
1087         stock-icons/16/gtk-remove.png                   \
1088         stock-icons/16/gtk-revert-to-saved-ltr.png      \
1089         stock-icons/16/gtk-revert-to-saved-rtl.png      \
1090         stock-icons/16/gtk-save-as.png                  \
1091         stock-icons/16/gtk-select-all.png               \
1092         stock-icons/16/gtk-select-color.png             \
1093         stock-icons/16/gtk-select-font.png              \
1094         stock-icons/16/gtk-sort-ascending.png           \
1095         stock-icons/16/gtk-sort-descending.png          \
1096         stock-icons/16/gtk-spell-check.png              \
1097         stock-icons/16/gtk-stop.png                     \
1098         stock-icons/16/gtk-strikethrough.png            \
1099         stock-icons/16/gtk-font.png                     \
1100         stock-icons/16/gtk-undelete-ltr.png             \
1101         stock-icons/16/gtk-undelete-rtl.png             \
1102         stock-icons/16/gtk-underline.png                \
1103         stock-icons/16/gtk-undo-ltr.png                 \
1104         stock-icons/16/gtk-undo-rtl.png                 \
1105         stock-icons/16/gtk-unindent-ltr.png             \
1106         stock-icons/16/gtk-unindent-rtl.png             \
1107         stock-icons/16/gtk-zoom-100.png                 \
1108         stock-icons/16/gtk-zoom-fit.png                 \
1109         stock-icons/16/gtk-zoom-in.png                  \
1110         stock-icons/16/gtk-zoom-out.png                 \
1111         stock-icons/16/gtk-italic.png                   \
1112         stock-icons/16/gtk-bold.png                     \
1113         stock-icons/20/gtk-apply.png                    \
1114         stock-icons/20/gtk-cancel.png                   \
1115         stock-icons/20/gtk-close.png                    \
1116         stock-icons/20/gtk-no.png                       \
1117         stock-icons/20/gtk-ok.png                       \
1118         stock-icons/20/gtk-yes.png                      \
1119         stock-icons/24/audio-volume-high.png            \
1120         stock-icons/24/audio-volume-low.png             \
1121         stock-icons/24/audio-volume-medium.png          \
1122         stock-icons/24/audio-volume-muted.png           \
1123         stock-icons/24/document-open-recent.png         \
1124         stock-icons/24/gtk-about.png                    \
1125         stock-icons/24/gtk-add.png                      \
1126         stock-icons/24/gtk-bold.png                     \
1127         stock-icons/24/gtk-cdrom.png                    \
1128         stock-icons/24/gtk-clear.png                    \
1129         stock-icons/24/gtk-close.png                    \
1130         stock-icons/24/gtk-color-picker.png             \
1131         stock-icons/24/gtk-connect.png                  \
1132         stock-icons/24/gtk-convert.png                  \
1133         stock-icons/24/gtk-copy.png                     \
1134         stock-icons/24/gtk-cut.png                      \
1135         stock-icons/24/gtk-directory.png                \
1136         stock-icons/24/gtk-disconnect.png               \
1137         stock-icons/24/gtk-edit.png                     \
1138         stock-icons/24/gtk-execute.png                  \
1139         stock-icons/24/gtk-file.png                     \
1140         stock-icons/24/gtk-find-and-replace.png         \
1141         stock-icons/24/gtk-find.png                     \
1142         stock-icons/24/gtk-font.png                     \
1143         stock-icons/24/gtk-fullscreen.png               \
1144         stock-icons/24/gtk-go-back-ltr.png              \
1145         stock-icons/24/gtk-goto-top.png                 \
1146         stock-icons/24/gtk-go-down.png                  \
1147         stock-icons/24/gtk-goto-bottom.png              \
1148         stock-icons/24/gtk-goto-first-ltr.png           \
1149         stock-icons/24/gtk-goto-last-ltr.png            \
1150         stock-icons/24/gtk-go-up.png                    \
1151         stock-icons/24/gtk-harddisk.png                 \
1152         stock-icons/24/gtk-help.png                     \
1153         stock-icons/24/gtk-home.png                     \
1154         stock-icons/24/gtk-indent-ltr.png               \
1155         stock-icons/24/gtk-indent-rtl.png               \
1156         stock-icons/24/gtk-index.png                    \
1157         stock-icons/24/gtk-info.png                     \
1158         stock-icons/24/gtk-italic.png                   \
1159         stock-icons/24/gtk-jump-to-ltr.png              \
1160         stock-icons/24/gtk-jump-to-rtl.png              \
1161         stock-icons/24/gtk-justify-center.png           \
1162         stock-icons/24/gtk-justify-fill.png             \
1163         stock-icons/24/gtk-justify-left.png             \
1164         stock-icons/24/gtk-justify-right.png            \
1165         stock-icons/24/gtk-leave-fullscreen.png         \
1166         stock-icons/24/gtk-media-forward-ltr.png        \
1167         stock-icons/24/gtk-media-next-ltr.png           \
1168         stock-icons/24/gtk-media-pause.png              \
1169         stock-icons/24/gtk-media-play-ltr.png           \
1170         stock-icons/24/gtk-media-play-rtl.png           \
1171         stock-icons/24/gtk-media-previous-ltr.png       \
1172         stock-icons/24/gtk-media-record.png             \
1173         stock-icons/24/gtk-media-rewind-ltr.png         \
1174         stock-icons/24/gtk-media-stop.png               \
1175         stock-icons/24/gtk-missing-image.png            \
1176         stock-icons/24/gtk-network.png                  \
1177         stock-icons/24/gtk-new.png                      \
1178         stock-icons/24/gtk-open.png                     \
1179         stock-icons/24/gtk-orientation-reverse-landscape.png \
1180         stock-icons/24/gtk-orientation-landscape.png    \
1181         stock-icons/24/gtk-orientation-reverse-portrait.png     \
1182         stock-icons/24/gtk-orientation-portrait.png     \
1183         stock-icons/24/gtk-page-setup.png               \
1184         stock-icons/24/gtk-paste.png                    \
1185         stock-icons/24/gtk-preferences.png              \
1186         stock-icons/24/gtk-print.png                    \
1187         stock-icons/24/gtk-print-error.png              \
1188         stock-icons/24/gtk-print-paused.png             \
1189         stock-icons/24/gtk-print-preview.png            \
1190         stock-icons/24/gtk-print-report.png             \
1191         stock-icons/24/gtk-print-warning.png            \
1192         stock-icons/24/gtk-properties.png               \
1193         stock-icons/24/gtk-quit.png                     \
1194         stock-icons/24/gtk-redo-ltr.png                 \
1195         stock-icons/24/gtk-redo-rtl.png                 \
1196         stock-icons/24/gtk-refresh.png                  \
1197         stock-icons/24/gtk-remove.png                   \
1198         stock-icons/24/gtk-revert-to-saved-ltr.png      \
1199         stock-icons/24/gtk-revert-to-saved-rtl.png      \
1200         stock-icons/24/gtk-select-font.png              \
1201         stock-icons/24/gtk-save-as.png                  \
1202         stock-icons/24/gtk-floppy.png                   \
1203         stock-icons/24/gtk-select-all.png               \
1204         stock-icons/24/gtk-select-color.png             \
1205         stock-icons/24/gtk-sort-ascending.png           \
1206         stock-icons/24/gtk-sort-descending.png          \
1207         stock-icons/24/gtk-spell-check.png              \
1208         stock-icons/24/gtk-stop.png                     \
1209         stock-icons/24/gtk-strikethrough.png            \
1210         stock-icons/24/gtk-delete.png                   \
1211         stock-icons/24/gtk-undelete-ltr.png             \
1212         stock-icons/24/gtk-undelete-rtl.png             \
1213         stock-icons/24/gtk-underline.png                \
1214         stock-icons/24/gtk-undo-ltr.png                 \
1215         stock-icons/24/gtk-undo-rtl.png                 \
1216         stock-icons/24/gtk-unindent-ltr.png             \
1217         stock-icons/24/gtk-unindent-rtl.png             \
1218         stock-icons/24/gtk-zoom-100.png                 \
1219         stock-icons/24/gtk-zoom-fit.png                 \
1220         stock-icons/24/gtk-zoom-in.png                  \
1221         stock-icons/24/gtk-zoom-out.png                 \
1222         stock-icons/24/gtk-go-forward-ltr.png           \
1223         stock-icons/32/gtk-dnd-multiple.png             \
1224         stock-icons/32/gtk-dnd.png                      \
1225         stock-icons/48/gtk-dialog-authentication.png    \
1226         stock-icons/48/gtk-dialog-error.png             \
1227         stock-icons/48/gtk-dialog-info.png              \
1228         stock-icons/48/gtk-dialog-question.png          \
1229         stock-icons/48/gtk-dialog-warning.png
1230
1231 GENERATED_ICONS = \
1232         stock-icons/16/gtk-go-back-rtl.png              \
1233         stock-icons/16/gtk-go-forward-rtl.png           \
1234         stock-icons/16/gtk-goto-first-rtl.png           \
1235         stock-icons/16/gtk-goto-last-rtl.png            \
1236         stock-icons/16/gtk-media-forward-rtl.png        \
1237         stock-icons/16/gtk-media-next-rtl.png           \
1238         stock-icons/16/gtk-media-previous-rtl.png       \
1239         stock-icons/16/gtk-media-rewind-rtl.png         \
1240         stock-icons/16/gtk-save.png                     \
1241         stock-icons/16/drive-harddisk.png               \
1242         stock-icons/16/folder.png                       \
1243         stock-icons/16/folder-remote.png                \
1244         stock-icons/16/user-home.png                    \
1245         stock-icons/16/user-desktop.png                 \
1246         stock-icons/16/text-x-generic.png               \
1247         stock-icons/24/gtk-go-back-rtl.png              \
1248         stock-icons/24/gtk-go-forward-rtl.png           \
1249         stock-icons/24/gtk-goto-first-rtl.png           \
1250         stock-icons/24/gtk-goto-last-rtl.png            \
1251         stock-icons/24/gtk-media-forward-rtl.png        \
1252         stock-icons/24/gtk-media-next-rtl.png           \
1253         stock-icons/24/gtk-media-previous-rtl.png       \
1254         stock-icons/24/gtk-media-rewind-rtl.png         \
1255         stock-icons/24/gtk-save.png                     \
1256         stock-icons/24/drive-harddisk.png               \
1257         stock-icons/24/folder.png                       \
1258         stock-icons/24/folder-remote.png                \
1259         stock-icons/24/user-home.png                    \
1260         stock-icons/24/user-desktop.png                 \
1261         stock-icons/24/text-x-generic.png
1262
1263 # need to copy the icons so that we can replace the generated ones with
1264 # symlinks, even in the readonly srcdir case
1265 stamp-icons: $(STOCK_ICONS)
1266         if [ ! -d stock-icons ]; then                                   \
1267           for d in 16 20 24 32 48; do                                   \
1268             mkdir -p stock-icons/$$d;                                   \
1269           done;                                                         \
1270           for f in $(STOCK_ICONS); do                                   \
1271             cp $(srcdir)/$$f $$(dirname $$f);                           \
1272           done;                                                         \
1273           chmod -R u+w stock-icons;                                     \
1274         fi &&                                                           \
1275         for i in 16 24; do                                              \
1276            (cd stock-icons/$$i                                          \
1277            && $(RM) gtk-go-back-rtl.png                                 \
1278            && $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png        \
1279            && $(RM) gtk-go-forward-rtl.png                              \
1280            && $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png        \
1281            && $(RM) gtk-goto-first-rtl.png                              \
1282            && $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png      \
1283            && $(RM) gtk-goto-last-rtl.png                               \
1284            && $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png      \
1285            && $(RM) gtk-media-forward-rtl.png                           \
1286            && $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png\
1287            && $(RM) gtk-media-next-rtl.png                              \
1288            && $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png \
1289            && $(RM) gtk-media-previous-rtl.png                          \
1290            && $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png \
1291            && $(RM) gtk-media-rewind-rtl.png                            \
1292            && $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png\
1293            && $(RM) gtk-save.png                                        \
1294            && $(LN_S) gtk-floppy.png gtk-save.png                       \
1295            && $(RM) drive-harddisk.png                                  \
1296            && $(LN_S) gtk-harddisk.png drive-harddisk.png               \
1297            && $(RM) folder.png                                          \
1298            && $(LN_S) gtk-directory.png folder.png                      \
1299            && $(RM) folder-remote.png                                   \
1300            && $(LN_S) gtk-directory.png folder-remote.png               \
1301            && $(RM) user-home.png                                       \
1302            && $(LN_S) gtk-directory.png user-home.png                   \
1303            && $(RM) user-desktop.png                                    \
1304            && $(LN_S) gtk-directory.png user-desktop.png                \
1305            && $(RM) text-x-generic.png                                  \
1306            && $(LN_S) gtk-file.png text-x-generic.png                   \
1307         ) done                                                          \
1308         && touch stamp-icons
1309
1310 if CROSS_COMPILING
1311 gtk_update_icon_cache_program = $(GTK_UPDATE_ICON_CACHE)
1312 else
1313 gtk_update_icon_cache_program =                                                 \
1314         GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders    \
1315            ./gtk-update-icon-cache
1316 endif
1317
1318 gtkbuiltincache.h: @REBUILD@ stamp-icons
1319         $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT) $(GTK_UPDATE_ICON_CACHE_MANIFEST)
1320         $(gtk_update_icon_cache_program) --force --ignore-theme-index           \
1321            --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
1322         mv gtkbuiltincache.h.tmp gtkbuiltincache.h
1323
1324 EXTRA_DIST +=                   \
1325         $(STOCK_ICONS)          \
1326         $(GENERATED_ICONS)      \
1327         line-arrow.xbm          \
1328         line-wrap.xbm           \
1329         tree_plus.xbm           \
1330         tree_minus.xbm          \
1331         tree_minus.xpm          \
1332         tree_plus.xpm           \
1333         gtk.def                 \
1334         gtk-builder-convert     \
1335         gtk-win32.rc            \
1336         gtk-win32.rc.in         \
1337         gtkwin32embed.h         \
1338         gtkwin32embedwidget.h   \
1339         gtkwin32embedwidget.c   \
1340         gtkprint-win32.h        \
1341         gtkprint-win32.c        \
1342         gtksearchenginequartz.h \
1343         gtkrc.default           \
1344         gtkrc.key.default       \
1345         gtkrc.key.emacs         \
1346         gtkrc.key.mac           \
1347         makefile.msc            \
1348         makefile.msc.in         \
1349         makegtkalias.pl         \
1350         aliasfilescheck.sh      \
1351         abicheck.sh             \
1352         pltcheck.sh             \
1353         gtktypebuiltins.c.template      \
1354         gtktypebuiltins.h.template
1355
1356
1357 install-data-local:
1358
1359 -include $(top_srcdir)/git.mk