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