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