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