]> Pileus Git - ~andy/gtk/blob - gtk/Makefile.am
Bug 319607 – Add a throbber (activity widget) to GTK+
[~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         gtkcurve.h              \
195         gtkdebug.h              \
196         gtkdialog.h             \
197         gtkdnd.h                \
198         gtkdrawingarea.h        \
199         gtkeditable.h           \
200         gtkentry.h              \
201         gtkentrybuffer.h        \
202         gtkentrycompletion.h    \
203         gtkenums.h              \
204         gtkeventbox.h           \
205         gtkexpander.h           \
206         gtkfilechooser.h        \
207         gtkfilechooserbutton.h  \
208         gtkfilechooserdialog.h  \
209         gtkfilechooserwidget.h  \
210         gtkfilefilter.h         \
211         gtkfixed.h              \
212         gtkfontbutton.h         \
213         gtkfontsel.h            \
214         gtkframe.h              \
215         gtkgamma.h              \
216         gtkgc.h                 \
217         gtkhandlebox.h          \
218         gtkhbbox.h              \
219         gtkhbox.h               \
220         gtkhpaned.h             \
221         gtkhruler.h             \
222         gtkhscale.h             \
223         gtkhscrollbar.h         \
224         gtkhseparator.h         \
225         gtkhsv.h                \
226         gtkiconfactory.h        \
227         gtkicontheme.h          \
228         gtkiconview.h           \
229         gtkimage.h              \
230         gtkimagemenuitem.h      \
231         gtkimcontext.h          \
232         gtkimcontextsimple.h    \
233         gtkimmodule.h           \
234         gtkimmulticontext.h     \
235         gtkinfobar.h            \
236         gtkinputdialog.h        \
237         gtkinvisible.h          \
238         gtkitem.h               \
239         gtklabel.h              \
240         gtklayout.h             \
241         gtklinkbutton.h         \
242         gtkliststore.h          \
243         gtkmain.h               \
244         gtkmenu.h               \
245         gtkmenubar.h            \
246         gtkmenuitem.h           \
247         gtkmenushell.h          \
248         gtkmenutoolbutton.h     \
249         gtkmessagedialog.h      \
250         gtkmisc.h               \
251         gtkmodules.h            \
252         gtkmountoperation.h     \
253         gtknotebook.h           \
254         gtkobject.h             \
255         gtkorientable.h         \
256         gtkpagesetup.h          \
257         gtkpaned.h              \
258         gtkpapersize.h          \
259         gtkplug.h               \
260         gtkprintcontext.h       \
261         gtkprintoperation.h     \
262         gtkprintoperationpreview.h      \
263         gtkprintsettings.h      \
264         gtkprivate.h            \
265         gtkprogressbar.h        \
266         gtkradioaction.h        \
267         gtkradiobutton.h        \
268         gtkradiomenuitem.h      \
269         gtkradiotoolbutton.h    \
270         gtkrange.h              \
271         gtkrc.h                 \
272         gtkrecentaction.h       \
273         gtkrecentchooser.h      \
274         gtkrecentchooserdialog.h \
275         gtkrecentchoosermenu.h  \
276         gtkrecentchooserwidget.h \
277         gtkrecentfilter.h       \
278         gtkrecentmanager.h      \
279         gtkruler.h              \
280         gtkscale.h              \
281         gtkscalebutton.h        \
282         gtkscrollbar.h          \
283         gtkscrolledwindow.h     \
284         gtkselection.h          \
285         gtkseparator.h          \
286         gtkseparatormenuitem.h  \
287         gtkseparatortoolitem.h  \
288         gtkshow.h               \
289         gtksettings.h           \
290         gtksizegroup.h          \
291         gtksocket.h             \
292         gtkspinbutton.h         \
293         gtkspinner.h            \
294         gtkstatusbar.h          \
295         gtkstatusicon.h         \
296         gtkstock.h              \
297         gtkstyle.h              \
298         gtktable.h              \
299         gtktearoffmenuitem.h    \
300         gtktestutils.h          \
301         gtktextbuffer.h         \
302         gtktextbufferrichtext.h \
303         gtktextchild.h          \
304         gtktextdisplay.h        \
305         gtktextiter.h           \
306         gtktextmark.h           \
307         gtktexttag.h            \
308         gtktexttagtable.h       \
309         gtktextview.h           \
310         gtktoggleaction.h       \
311         gtktogglebutton.h       \
312         gtktoggletoolbutton.h   \
313         gtktoolbar.h            \
314         gtktoolbutton.h         \
315         gtktoolitem.h           \
316         gtktoolshell.h          \
317         gtktooltip.h            \
318         gtktreednd.h            \
319         gtktreemodel.h          \
320         gtktreemodelfilter.h    \
321         gtktreemodelsort.h      \
322         gtktreeselection.h      \
323         gtktreesortable.h       \
324         gtktreestore.h          \
325         gtktreeview.h           \
326         gtktreeviewcolumn.h     \
327         gtktypeutils.h          \
328         gtkuimanager.h          \
329         gtkvbbox.h              \
330         gtkvbox.h               \
331         gtkviewport.h           \
332         gtkvolumebutton.h       \
333         gtkvpaned.h             \
334         gtkvruler.h             \
335         gtkvscale.h             \
336         gtkvscrollbar.h         \
337         gtkvseparator.h         \
338         gtkwidget.h             \
339         gtkwindow.h
340
341 if OS_UNIX
342 gtk_unix_print_public_h_sources =    \
343         gtkpagesetupunixdialog.h        \
344         gtkprintunixdialog.h            \
345         gtkprinter.h                    \
346         gtkprintjob.h                   \
347         gtkunixprint.h
348 endif
349
350 # Installed header files without compatibility guarantees
351 # that are not included in gtk/gtk.h
352 gtk_semi_private_h_sources =    \
353         gtktextlayout.h
354
355 # GTK+ header files that don't get installed
356 gtk_private_h_sources =         \
357         gtkquery.h              \
358         gtksearchengine.h       \
359         gtksearchenginesimple.h \
360         gtkdndcursors.h         \
361         gtkentryprivate.h       \
362         gtkbuilderprivate.h     \
363         gtkcustompaperunixdialog.h\
364         gtkfilechooserdefault.h \
365         gtkfilechooserembed.h   \
366         gtkfilechooserentry.h   \
367         gtkfilechooserprivate.h \
368         gtkfilechoosersettings.h \
369         gtkfilechooserutils.h   \
370         gtkfilesystem.h         \
371         gtkfilesystemmodel.h    \
372         gtkiconcache.h          \
373         gtkintl.h               \
374         gtkkeyhash.h            \
375         gtkmnemonichash.h       \
376         gtkmountoperationprivate.h \
377         gtkpathbar.h            \
378         gtkplugprivate.h        \
379         gtkprintoperation-private.h\
380         gtkprintutils.h         \
381         gtkrbtree.h             \
382         gtkrecentchooserdefault.h \
383         gtkrecentchooserprivate.h \
384         gtkrecentchooserutils.h \
385         gtksocketprivate.h      \
386         gtktextbtree.h          \
387         gtktextbufferserialize.h\
388         gtktextchildprivate.h   \
389         gtktextiterprivate.h    \
390         gtktextmarkprivate.h    \
391         gtktextsegment.h        \
392         gtktexttagprivate.h     \
393         gtktexttypes.h          \
394         gtktextutil.h           \
395         gtkthemes.h             \
396         gtktoggleactionprivate.h\
397         gtktreedatalist.h       \
398         gtktreeprivate.h        \
399         gtkwindow-decorate.h    \
400         $(gtk_clipboard_dnd_h_sources)
401
402 # GTK+ C sources to build the library from
403 gtk_base_c_sources =            \
404         gtkquery.c              \
405         gtksearchengine.c       \
406         gtksearchenginesimple.c \
407         fnmatch.c               \
408         gtkaboutdialog.c        \
409         gtkaccelgroup.c         \
410         gtkaccellabel.c         \
411         gtkaccelmap.c           \
412         gtkaccessible.c         \
413         gtkaction.c             \
414         gtkactiongroup.c        \
415         gtkactivatable.c        \
416         gtkadjustment.c         \
417         gtkalignment.c          \
418         gtkarrow.c              \
419         gtkaspectframe.c        \
420         gtkassistant.c          \
421         gtkbbox.c               \
422         gtkbin.c                \
423         gtkbindings.c           \
424         gtkbox.c                \
425         gtkbuildable.c          \
426         gtkbuilder.c            \
427         gtkbuilderparser.c      \
428         gtkbutton.c             \
429         gtkcalendar.c           \
430         gtkcelleditable.c       \
431         gtkcelllayout.c         \
432         gtkcellrenderer.c       \
433         gtkcellrendereraccel.c  \
434         gtkcellrenderercombo.c  \
435         gtkcellrendererpixbuf.c \
436         gtkcellrendererprogress.c \
437         gtkcellrendererspin.c   \
438         gtkcellrendererspinner.c\
439         gtkcellrenderertext.c   \
440         gtkcellrenderertoggle.c \
441         gtkcellview.c           \
442         gtkcheckbutton.c        \
443         gtkcheckmenuitem.c      \
444         gtkcolorbutton.c        \
445         gtkcolorsel.c           \
446         gtkcolorseldialog.c     \
447         gtkcombobox.c           \
448         gtkcomboboxentry.c      \
449         gtkcontainer.c          \
450         gtkcurve.c              \
451         gtkdialog.c             \
452         gtkdrawingarea.c        \
453         gtkeditable.c           \
454         gtkentry.c              \
455         gtkentrybuffer.c        \
456         gtkentrycompletion.c    \
457         gtkeventbox.c           \
458         gtkexpander.c           \
459         gtkfilechooser.c        \
460         gtkfilechooserbutton.c  \
461         gtkfilechooserdefault.c \
462         gtkfilechooserdialog.c  \
463         gtkfilechooserembed.c   \
464         gtkfilechooserentry.c   \
465         gtkfilechoosersettings.c \
466         gtkfilechooserutils.c   \
467         gtkfilechooserwidget.c  \
468         gtkfilefilter.c         \
469         gtkfilesystem.c         \
470         gtkfilesystemmodel.c    \
471         gtkfixed.c              \
472         gtkfontbutton.c         \
473         gtkfontsel.c            \
474         gtkframe.c              \
475         gtkgamma.c              \
476         gtkgc.c                 \
477         gtkhandlebox.c          \
478         gtkhbbox.c              \
479         gtkhbox.c               \
480         gtkhpaned.c             \
481         gtkhruler.c             \
482         gtkhscale.c             \
483         gtkhscrollbar.c         \
484         gtkhseparator.c         \
485         gtkhsv.c                \
486         gtkiconcache.c          \
487         gtkiconcachevalidator.c \
488         gtkiconfactory.c        \
489         gtkicontheme.c          \
490         gtkiconview.c           \
491         gtkimage.c              \
492         gtkimagemenuitem.c      \
493         gtkimcontext.c          \
494         gtkimcontextsimple.c    \
495         gtkimmodule.c           \
496         gtkimmulticontext.c     \
497         gtkinfobar.c            \
498         gtkinputdialog.c        \
499         gtkinvisible.c          \
500         gtkitem.c               \
501         gtkkeyhash.c            \
502         gtklabel.c              \
503         gtklayout.c             \
504         gtklinkbutton.c         \
505         gtkliststore.c          \
506         gtkmain.c               \
507         gtkmarshal.c            \
508         gtkmarshalers.c         \
509         gtkmenu.c               \
510         gtkmenubar.c            \
511         gtkmenuitem.c           \
512         gtkmenushell.c          \
513         gtkmenutoolbutton.c     \
514         gtkmessagedialog.c      \
515         gtkmisc.c               \
516         gtkmnemonichash.c       \
517         gtkmodules.c            \
518         gtkmountoperation.c     \
519         gtknotebook.c           \
520         gtkobject.c             \
521         gtkorientable.c         \
522         gtkpagesetup.c          \
523         gtkpaned.c              \
524         gtkpapersize.c          \
525         gtkpathbar.c            \
526         gtkplug.c               \
527         gtkprintcontext.c       \
528         gtkprintoperation.c     \
529         gtkprintoperationpreview.c      \
530         gtkprintsettings.c      \
531         gtkprintutils.c         \
532         gtkprogressbar.c        \
533         gtkradioaction.c        \
534         gtkradiobutton.c        \
535         gtkradiomenuitem.c      \
536         gtkradiotoolbutton.c    \
537         gtkrange.c              \
538         gtkrbtree.c             \
539         gtkrc.c                 \
540         gtkrecentaction.c       \
541         gtkrecentchooserdefault.c \
542         gtkrecentchooserdialog.c \
543         gtkrecentchoosermenu.c  \
544         gtkrecentchooserwidget.c \
545         gtkrecentchooserutils.c \
546         gtkrecentchooser.c      \
547         gtkrecentfilter.c       \
548         gtkrecentmanager.c      \
549         gtkruler.c              \
550         gtkscale.c              \
551         gtkscalebutton.c        \
552         gtkscrollbar.c          \
553         gtkscrolledwindow.c     \
554         gtkselection.c          \
555         gtkseparator.c          \
556         gtkseparatormenuitem.c  \
557         gtkseparatortoolitem.c  \
558         gtksettings.c           \
559         gtksizegroup.c          \
560         gtkshow.c               \
561         gtksocket.c             \
562         gtkspinbutton.c         \
563         gtkspinner.c            \
564         gtkstatusbar.c          \
565         gtkstatusicon.c         \
566         gtkstock.c              \
567         gtkstyle.c              \
568         gtktable.c              \
569         gtktearoffmenuitem.c    \
570         gtktestutils.c          \
571         gtktextbtree.c          \
572         gtktextbuffer.c         \
573         gtktextbufferrichtext.c \
574         gtktextbufferserialize.c\
575         gtktextchild.c          \
576         gtktextdisplay.c        \
577         gtktextiter.c           \
578         gtktextlayout.c         \
579         gtktextmark.c           \
580         gtktextsegment.c        \
581         gtktexttag.c            \
582         gtktexttagtable.c       \
583         gtktexttypes.c          \
584         gtktextutil.c           \
585         gtktextview.c           \
586         gtkthemes.c             \
587         gtktoggleaction.c       \
588         gtktogglebutton.c       \
589         gtktoggletoolbutton.c   \
590         gtktoolbar.c            \
591         gtktoolbutton.c         \
592         gtktoolitem.c           \
593         gtktoolshell.c          \
594         gtktooltip.c            \
595         gtktreedatalist.c       \
596         gtktreednd.c            \
597         gtktreemodel.c          \
598         gtktreemodelfilter.c    \
599         gtktreemodelsort.c      \
600         gtktreeselection.c      \
601         gtktreesortable.c       \
602         gtktreestore.c          \
603         gtktreeview.c           \
604         gtktreeviewcolumn.c     \
605         gtktypebuiltins.c       \
606         gtktypeutils.c          \
607         gtkuimanager.c          \
608         gtkvbbox.c              \
609         gtkvbox.c               \
610         gtkvolumebutton.c       \
611         gtkviewport.c           \
612         gtkvpaned.c             \
613         gtkvruler.c             \
614         gtkvscale.c             \
615         gtkvscrollbar.c         \
616         gtkvseparator.c         \
617         gtkwidget.c             \
618         gtkwindow-decorate.c    \
619         gtkwindow.c             \
620         $(gtk_clipboard_dnd_c_sources)
621
622 # Broken
623 gtk_public_h_sources += \
624         gtktext.h               \
625         gtktree.h               \
626         gtktreeitem.h
627 gtk_base_c_sources += \
628         gtktext.c               \
629         gtktree.c               \
630         gtktreeitem.c
631
632 # Deprecated
633 gtk_public_h_sources += \
634         gtkclist.h              \
635         gtkcombo.h              \
636         gtkctree.h              \
637         gtkfilesel.h            \
638         gtkitemfactory.h        \
639         gtklist.h               \
640         gtklistitem.h           \
641         gtkoldeditable.h        \
642         gtkoptionmenu.h         \
643         gtkpixmap.h             \
644         gtkpreview.h            \
645         gtkprogress.h           \
646         gtksignal.h             \
647         gtktipsquery.h          \
648         gtktooltips.h
649 gtk_base_c_sources += \
650         gtkclist.c              \
651         gtkcombo.c              \
652         gtkctree.c              \
653         gtkfilesel.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 # Install a RC file for the default GTK+ theme, and key themes
919 install-data-local: install-ms-lib install-def-file
920         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0
921         $(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
922         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key
923         $(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
924         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key
925         $(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
926
927 uninstall-local: uninstall-ms-lib uninstall-def-file
928         rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
929         rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
930         rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
931
932 # if srcdir!=builddir, clean out maintainer-clean files from builddir
933 # this allows dist to pass.
934 distclean-local:
935         if test $(srcdir) != .; then \
936           rm -f $(MAINTAINERCLEANFILES); \
937         fi
938
939 DEPS = $(gtktargetlib) $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(top_builddir)/gdk/$(gdktargetlib)
940
941 TEST_DEPS = $(DEPS) gtk.immodules
942
943 LDADDS =                                                                \
944         $(gtktargetlib)                                                 \
945         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
946         $(top_builddir)/gdk/$(gdktargetlib)
947
948 #
949 # Installed tools
950 #
951 bin_PROGRAMS = \
952         gtk-query-immodules-2.0 \
953         gtk-update-icon-cache
954
955 bin_SCRIPTS = gtk-builder-convert
956
957 if OS_WIN32
958
959 # Workaround for UAC silliness: programs with "update" in their name
960 # are believed to be installers and require elevated privileges to be
961 # used... Use a manifest file to tell Windows that
962 # gtk-update-icon-cache.exe doesn't require any special privileges.
963
964 GTK_UPDATE_ICON_CACHE_MANIFEST = gtk-update-icon-cache.exe.manifest
965
966 bin_SCRIPTS += \
967         $(GTK_UPDATE_ICON_CACHE_MANIFEST)
968
969 gtk-update-icon-cache.exe.manifest:
970         (echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ; \
971          echo '<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">' ; \
972          echo '  <assemblyIdentity version="1.0.0.0"' ; \
973          echo '     processorArchitecture="'$(LIB_EXE_MACHINE_FLAG)'"' ; \
974          echo '     name="gtk-update-icon-cache.exe"' ; \
975          echo '     type="win32"/>' ; \
976          echo '  <!-- Identify the application security requirements. -->' ; \
977          echo '  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">' ; \
978          echo '    <security>' ; \
979          echo '      <requestedPrivileges>' ; \
980          echo '        <requestedExecutionLevel' ; \
981          echo '          level="asInvoker"' ; \
982          echo '          uiAccess="false"/>' ; \
983          echo '        </requestedPrivileges>' ; \
984          echo '       </security>' ; \
985          echo '  </trustInfo>' ; \
986          echo '</assembly>' ) >$@
987
988 endif
989
990 gtk_query_immodules_2_0_DEPENDENCIES = $(DEPS)
991 gtk_query_immodules_2_0_LDADD = $(LDADDS)
992
993 gtk_query_immodules_2_0_SOURCES = queryimmodules.c
994
995 gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
996
997 gtk_update_icon_cache_SOURCES = \
998         updateiconcache.c 
999
1000 .PHONY: files test test-debug
1001
1002 files:
1003         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
1004           echo $$p; \
1005         done
1006
1007 STOCK_ICONS = \
1008         stock-icons/16/document-open-recent.png         \
1009         stock-icons/16/gtk-about.png                    \
1010         stock-icons/16/gtk-add.png                      \
1011         stock-icons/16/gtk-cdrom.png                    \
1012         stock-icons/16/gtk-close.png                    \
1013         stock-icons/16/gtk-connect.png                  \
1014         stock-icons/16/gtk-convert.png                  \
1015         stock-icons/16/gtk-copy.png                     \
1016         stock-icons/16/gtk-cut.png                      \
1017         stock-icons/16/gtk-delete.png                   \
1018         stock-icons/16/gtk-directory.png                \
1019         stock-icons/16/gtk-disconnect.png               \
1020         stock-icons/16/gtk-edit.png                     \
1021         stock-icons/16/gtk-execute.png                  \
1022         stock-icons/16/gtk-file.png                     \
1023         stock-icons/16/gtk-find-and-replace.png         \
1024         stock-icons/16/gtk-find.png                     \
1025         stock-icons/16/gtk-floppy.png                   \
1026         stock-icons/16/gtk-fullscreen.png               \
1027         stock-icons/16/gtk-go-back-ltr.png              \
1028         stock-icons/16/gtk-go-down.png                  \
1029         stock-icons/16/gtk-go-forward-ltr.png           \
1030         stock-icons/16/gtk-goto-bottom.png              \
1031         stock-icons/16/gtk-goto-first-ltr.png           \
1032         stock-icons/16/gtk-goto-last-ltr.png            \
1033         stock-icons/16/gtk-goto-top.png                 \
1034         stock-icons/16/gtk-go-up.png                    \
1035         stock-icons/16/gtk-harddisk.png                 \
1036         stock-icons/16/gtk-help.png                     \
1037         stock-icons/16/gtk-home.png                     \
1038         stock-icons/16/gtk-indent-ltr.png               \
1039         stock-icons/16/gtk-indent-rtl.png               \
1040         stock-icons/16/gtk-index.png                    \
1041         stock-icons/16/gtk-info.png                     \
1042         stock-icons/16/gtk-jump-to-ltr.png              \
1043         stock-icons/16/gtk-jump-to-rtl.png              \
1044         stock-icons/16/gtk-justify-center.png           \
1045         stock-icons/16/gtk-justify-fill.png             \
1046         stock-icons/16/gtk-justify-left.png             \
1047         stock-icons/16/gtk-justify-right.png            \
1048         stock-icons/16/gtk-leave-fullscreen.png         \
1049         stock-icons/16/gtk-media-forward-ltr.png        \
1050         stock-icons/16/gtk-media-next-ltr.png           \
1051         stock-icons/16/gtk-media-pause.png              \
1052         stock-icons/16/gtk-media-play-ltr.png           \
1053         stock-icons/16/gtk-media-play-rtl.png           \
1054         stock-icons/16/gtk-media-previous-ltr.png       \
1055         stock-icons/16/gtk-media-record.png             \
1056         stock-icons/16/gtk-media-rewind-ltr.png         \
1057         stock-icons/16/gtk-media-stop.png               \
1058         stock-icons/16/gtk-missing-image.png            \
1059         stock-icons/16/gtk-network.png                  \
1060         stock-icons/16/gtk-new.png                      \
1061         stock-icons/16/gtk-open.png                     \
1062         stock-icons/16/gtk-page-setup.png               \
1063         stock-icons/16/gtk-paste.png                    \
1064         stock-icons/16/gtk-preferences.png              \
1065         stock-icons/16/gtk-print.png                    \
1066         stock-icons/16/gtk-print-error.png              \
1067         stock-icons/16/gtk-print-paused.png             \
1068         stock-icons/16/gtk-print-preview.png            \
1069         stock-icons/16/gtk-print-report.png             \
1070         stock-icons/16/gtk-print-warning.png            \
1071         stock-icons/16/gtk-properties.png               \
1072         stock-icons/16/gtk-quit.png                     \
1073         stock-icons/16/gtk-redo-ltr.png                 \
1074         stock-icons/16/gtk-redo-rtl.png                 \
1075         stock-icons/16/gtk-refresh.png                  \
1076         stock-icons/16/gtk-remove.png                   \
1077         stock-icons/16/gtk-revert-to-saved-ltr.png      \
1078         stock-icons/16/gtk-revert-to-saved-rtl.png      \
1079         stock-icons/16/gtk-save-as.png                  \
1080         stock-icons/16/gtk-select-all.png               \
1081         stock-icons/16/gtk-select-color.png             \
1082         stock-icons/16/gtk-select-font.png              \
1083         stock-icons/16/gtk-sort-ascending.png           \
1084         stock-icons/16/gtk-sort-descending.png          \
1085         stock-icons/16/gtk-spell-check.png              \
1086         stock-icons/16/gtk-stop.png                     \
1087         stock-icons/16/gtk-strikethrough.png            \
1088         stock-icons/16/gtk-font.png                     \
1089         stock-icons/16/gtk-undelete-ltr.png             \
1090         stock-icons/16/gtk-undelete-rtl.png             \
1091         stock-icons/16/gtk-underline.png                \
1092         stock-icons/16/gtk-undo-ltr.png                 \
1093         stock-icons/16/gtk-undo-rtl.png                 \
1094         stock-icons/16/gtk-unindent-ltr.png             \
1095         stock-icons/16/gtk-unindent-rtl.png             \
1096         stock-icons/16/gtk-zoom-100.png                 \
1097         stock-icons/16/gtk-zoom-fit.png                 \
1098         stock-icons/16/gtk-zoom-in.png                  \
1099         stock-icons/16/gtk-zoom-out.png                 \
1100         stock-icons/16/gtk-italic.png                   \
1101         stock-icons/16/gtk-bold.png                     \
1102         stock-icons/20/gtk-apply.png                    \
1103         stock-icons/20/gtk-cancel.png                   \
1104         stock-icons/20/gtk-close.png                    \
1105         stock-icons/20/gtk-no.png                       \
1106         stock-icons/20/gtk-ok.png                       \
1107         stock-icons/20/gtk-yes.png                      \
1108         stock-icons/24/audio-volume-high.png            \
1109         stock-icons/24/audio-volume-low.png             \
1110         stock-icons/24/audio-volume-medium.png          \
1111         stock-icons/24/audio-volume-muted.png           \
1112         stock-icons/24/document-open-recent.png         \
1113         stock-icons/24/gtk-about.png                    \
1114         stock-icons/24/gtk-add.png                      \
1115         stock-icons/24/gtk-bold.png                     \
1116         stock-icons/24/gtk-cdrom.png                    \
1117         stock-icons/24/gtk-clear.png                    \
1118         stock-icons/24/gtk-close.png                    \
1119         stock-icons/24/gtk-color-picker.png             \
1120         stock-icons/24/gtk-connect.png                  \
1121         stock-icons/24/gtk-convert.png                  \
1122         stock-icons/24/gtk-copy.png                     \
1123         stock-icons/24/gtk-cut.png                      \
1124         stock-icons/24/gtk-directory.png                \
1125         stock-icons/24/gtk-disconnect.png               \
1126         stock-icons/24/gtk-edit.png                     \
1127         stock-icons/24/gtk-execute.png                  \
1128         stock-icons/24/gtk-file.png                     \
1129         stock-icons/24/gtk-find-and-replace.png         \
1130         stock-icons/24/gtk-find.png                     \
1131         stock-icons/24/gtk-font.png                     \
1132         stock-icons/24/gtk-fullscreen.png               \
1133         stock-icons/24/gtk-go-back-ltr.png              \
1134         stock-icons/24/gtk-goto-top.png                 \
1135         stock-icons/24/gtk-go-down.png                  \
1136         stock-icons/24/gtk-goto-bottom.png              \
1137         stock-icons/24/gtk-goto-first-ltr.png           \
1138         stock-icons/24/gtk-goto-last-ltr.png            \
1139         stock-icons/24/gtk-go-up.png                    \
1140         stock-icons/24/gtk-harddisk.png                 \
1141         stock-icons/24/gtk-help.png                     \
1142         stock-icons/24/gtk-home.png                     \
1143         stock-icons/24/gtk-indent-ltr.png               \
1144         stock-icons/24/gtk-indent-rtl.png               \
1145         stock-icons/24/gtk-index.png                    \
1146         stock-icons/24/gtk-info.png                     \
1147         stock-icons/24/gtk-italic.png                   \
1148         stock-icons/24/gtk-jump-to-ltr.png              \
1149         stock-icons/24/gtk-jump-to-rtl.png              \
1150         stock-icons/24/gtk-justify-center.png           \
1151         stock-icons/24/gtk-justify-fill.png             \
1152         stock-icons/24/gtk-justify-left.png             \
1153         stock-icons/24/gtk-justify-right.png            \
1154         stock-icons/24/gtk-leave-fullscreen.png         \
1155         stock-icons/24/gtk-media-forward-ltr.png        \
1156         stock-icons/24/gtk-media-next-ltr.png           \
1157         stock-icons/24/gtk-media-pause.png              \
1158         stock-icons/24/gtk-media-play-ltr.png           \
1159         stock-icons/24/gtk-media-play-rtl.png           \
1160         stock-icons/24/gtk-media-previous-ltr.png       \
1161         stock-icons/24/gtk-media-record.png             \
1162         stock-icons/24/gtk-media-rewind-ltr.png         \
1163         stock-icons/24/gtk-media-stop.png               \
1164         stock-icons/24/gtk-missing-image.png            \
1165         stock-icons/24/gtk-network.png                  \
1166         stock-icons/24/gtk-new.png                      \
1167         stock-icons/24/gtk-open.png                     \
1168         stock-icons/24/gtk-orientation-reverse-landscape.png \
1169         stock-icons/24/gtk-orientation-landscape.png    \
1170         stock-icons/24/gtk-orientation-reverse-portrait.png     \
1171         stock-icons/24/gtk-orientation-portrait.png     \
1172         stock-icons/24/gtk-page-setup.png               \
1173         stock-icons/24/gtk-paste.png                    \
1174         stock-icons/24/gtk-preferences.png              \
1175         stock-icons/24/gtk-print.png                    \
1176         stock-icons/24/gtk-print-error.png              \
1177         stock-icons/24/gtk-print-paused.png             \
1178         stock-icons/24/gtk-print-preview.png            \
1179         stock-icons/24/gtk-print-report.png             \
1180         stock-icons/24/gtk-print-warning.png            \
1181         stock-icons/24/gtk-properties.png               \
1182         stock-icons/24/gtk-quit.png                     \
1183         stock-icons/24/gtk-redo-ltr.png                 \
1184         stock-icons/24/gtk-redo-rtl.png                 \
1185         stock-icons/24/gtk-refresh.png                  \
1186         stock-icons/24/gtk-remove.png                   \
1187         stock-icons/24/gtk-revert-to-saved-ltr.png      \
1188         stock-icons/24/gtk-revert-to-saved-rtl.png      \
1189         stock-icons/24/gtk-select-font.png              \
1190         stock-icons/24/gtk-save-as.png                  \
1191         stock-icons/24/gtk-floppy.png                   \
1192         stock-icons/24/gtk-select-all.png               \
1193         stock-icons/24/gtk-select-color.png             \
1194         stock-icons/24/gtk-sort-ascending.png           \
1195         stock-icons/24/gtk-sort-descending.png          \
1196         stock-icons/24/gtk-spell-check.png              \
1197         stock-icons/24/gtk-stop.png                     \
1198         stock-icons/24/gtk-strikethrough.png            \
1199         stock-icons/24/gtk-delete.png                   \
1200         stock-icons/24/gtk-undelete-ltr.png             \
1201         stock-icons/24/gtk-undelete-rtl.png             \
1202         stock-icons/24/gtk-underline.png                \
1203         stock-icons/24/gtk-undo-ltr.png                 \
1204         stock-icons/24/gtk-undo-rtl.png                 \
1205         stock-icons/24/gtk-unindent-ltr.png             \
1206         stock-icons/24/gtk-unindent-rtl.png             \
1207         stock-icons/24/gtk-zoom-100.png                 \
1208         stock-icons/24/gtk-zoom-fit.png                 \
1209         stock-icons/24/gtk-zoom-in.png                  \
1210         stock-icons/24/gtk-zoom-out.png                 \
1211         stock-icons/24/gtk-go-forward-ltr.png           \
1212         stock-icons/32/gtk-dnd-multiple.png             \
1213         stock-icons/32/gtk-dnd.png                      \
1214         stock-icons/48/gtk-dialog-authentication.png    \
1215         stock-icons/48/gtk-dialog-error.png             \
1216         stock-icons/48/gtk-dialog-info.png              \
1217         stock-icons/48/gtk-dialog-question.png          \
1218         stock-icons/48/gtk-dialog-warning.png
1219
1220 GENERATED_ICONS = \
1221         stock-icons/16/gtk-go-back-rtl.png              \
1222         stock-icons/16/gtk-go-forward-rtl.png           \
1223         stock-icons/16/gtk-goto-first-rtl.png           \
1224         stock-icons/16/gtk-goto-last-rtl.png            \
1225         stock-icons/16/gtk-media-forward-rtl.png        \
1226         stock-icons/16/gtk-media-next-rtl.png           \
1227         stock-icons/16/gtk-media-previous-rtl.png       \
1228         stock-icons/16/gtk-media-rewind-rtl.png         \
1229         stock-icons/16/gtk-save.png                     \
1230         stock-icons/16/drive-harddisk.png               \
1231         stock-icons/16/folder.png                       \
1232         stock-icons/16/folder-remote.png                \
1233         stock-icons/16/user-home.png                    \
1234         stock-icons/16/user-desktop.png                 \
1235         stock-icons/16/text-x-generic.png               \
1236         stock-icons/24/gtk-go-back-rtl.png              \
1237         stock-icons/24/gtk-go-forward-rtl.png           \
1238         stock-icons/24/gtk-goto-first-rtl.png           \
1239         stock-icons/24/gtk-goto-last-rtl.png            \
1240         stock-icons/24/gtk-media-forward-rtl.png        \
1241         stock-icons/24/gtk-media-next-rtl.png           \
1242         stock-icons/24/gtk-media-previous-rtl.png       \
1243         stock-icons/24/gtk-media-rewind-rtl.png         \
1244         stock-icons/24/gtk-save.png                     \
1245         stock-icons/24/drive-harddisk.png               \
1246         stock-icons/24/folder.png                       \
1247         stock-icons/24/folder-remote.png                \
1248         stock-icons/24/user-home.png                    \
1249         stock-icons/24/user-desktop.png                 \
1250         stock-icons/24/text-x-generic.png
1251
1252 # need to copy the icons so that we can replace the generated ones with
1253 # symlinks, even in the readonly srcdir case
1254 stamp-icons: $(STOCK_ICONS)
1255         if [ ! -d stock-icons ]; then                                   \
1256           for d in 16 20 24 32 48; do                                   \
1257             mkdir -p stock-icons/$$d;                                   \
1258           done;                                                         \
1259           for f in $(STOCK_ICONS); do                                   \
1260             cp $(srcdir)/$$f $$(dirname $$f);                           \
1261           done;                                                         \
1262           chmod -R u+w stock-icons;                                     \
1263         fi &&                                                           \
1264         for i in 16 24; do                                              \
1265            (cd stock-icons/$$i                                          \
1266            && $(RM) gtk-go-back-rtl.png                                 \
1267            && $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png        \
1268            && $(RM) gtk-go-forward-rtl.png                              \
1269            && $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png        \
1270            && $(RM) gtk-goto-first-rtl.png                              \
1271            && $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png      \
1272            && $(RM) gtk-goto-last-rtl.png                               \
1273            && $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png      \
1274            && $(RM) gtk-media-forward-rtl.png                           \
1275            && $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png\
1276            && $(RM) gtk-media-next-rtl.png                              \
1277            && $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png \
1278            && $(RM) gtk-media-previous-rtl.png                          \
1279            && $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png \
1280            && $(RM) gtk-media-rewind-rtl.png                            \
1281            && $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png\
1282            && $(RM) gtk-save.png                                        \
1283            && $(LN_S) gtk-floppy.png gtk-save.png                       \
1284            && $(RM) drive-harddisk.png                                  \
1285            && $(LN_S) gtk-harddisk.png drive-harddisk.png               \
1286            && $(RM) folder.png                                          \
1287            && $(LN_S) gtk-directory.png folder.png                      \
1288            && $(RM) folder-remote.png                                   \
1289            && $(LN_S) gtk-directory.png folder-remote.png               \
1290            && $(RM) user-home.png                                       \
1291            && $(LN_S) gtk-directory.png user-home.png                   \
1292            && $(RM) user-desktop.png                                    \
1293            && $(LN_S) gtk-directory.png user-desktop.png                \
1294            && $(RM) text-x-generic.png                                  \
1295            && $(LN_S) gtk-file.png text-x-generic.png                   \
1296         ) done                                                          \
1297         && touch stamp-icons
1298
1299 if CROSS_COMPILING
1300 gtk_update_icon_cache_program = $(GTK_UPDATE_ICON_CACHE)
1301 else
1302 gtk_update_icon_cache_program =                                                 \
1303         GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders    \
1304            ./gtk-update-icon-cache
1305 endif
1306
1307 gtkbuiltincache.h: @REBUILD@ stamp-icons
1308         $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT) $(GTK_UPDATE_ICON_CACHE_MANIFEST)
1309         $(gtk_update_icon_cache_program) --force --ignore-theme-index           \
1310            --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
1311         mv gtkbuiltincache.h.tmp gtkbuiltincache.h
1312
1313 EXTRA_DIST +=                   \
1314         $(STOCK_ICONS)          \
1315         $(GENERATED_ICONS)      \
1316         line-arrow.xbm          \
1317         line-wrap.xbm           \
1318         tree_plus.xbm           \
1319         tree_minus.xbm          \
1320         tree_minus.xpm          \
1321         tree_plus.xpm           \
1322         gtk.def                 \
1323         gtk-builder-convert     \
1324         gtk-win32.rc            \
1325         gtk-win32.rc.in         \
1326         gtkwin32embed.h         \
1327         gtkwin32embedwidget.h   \
1328         gtkwin32embedwidget.c   \
1329         gtkprint-win32.h        \
1330         gtkprint-win32.c        \
1331         gtksearchenginequartz.h \
1332         gtkrc.default           \
1333         gtkrc.key.default       \
1334         gtkrc.key.emacs         \
1335         makefile.msc            \
1336         makefile.msc.in         \
1337         makegtkalias.pl         \
1338         aliasfilescheck.sh      \
1339         abicheck.sh             \
1340         pltcheck.sh             \
1341         gtktypebuiltins.c.template      \
1342         gtktypebuiltins.h.template
1343
1344
1345 install-data-local:
1346
1347 -include $(top_srcdir)/git.mk