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