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