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