]> Pileus Git - ~andy/gtk/blob - gtk/Makefile.am
Merge the gtk-printing branch. For more detailed ChangeLog entries, see
[~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         gtkprinter.h                    \
314         gtkprintunixdialog.h
315
316 # Installed header files without compatibility guarantees
317 # that are not include in gtk/gtk.h
318 gtk_semi_private_h_sources =    \
319         gtktextlayout.h         \
320         gtkfilesystem.h
321
322 # GTK+ header files that don't get installed
323 gtk_private_h_sources =         \
324         gtkdndcursors.h         \
325         gtkentryprivate.h       \
326         gtkfilechooserdefault.h \
327         gtkfilechooserembed.h   \
328         gtkfilechooserentry.h   \
329         gtkfilechooserprivate.h \
330         gtkfilechooserutils.h   \
331         gtkfilesystemmodel.h    \
332         gtkfilesystemunix.h     \
333         gtkiconcache.h          \
334         gtkpathbar.h            \
335         gtkplugprivate.h        \
336         gtkprintoperation-private.h\
337         gtkrbtree.h             \
338         gtkrecentchooserdefault.h \
339         gtkrecentchooserprivate.h \
340         gtkrecentchooserutils.h \
341         gtksequence.h           \
342         gtksocketprivate.h      \
343         gtktextbtree.h          \
344         gtktextchildprivate.h   \
345         gtktextiterprivate.h    \
346         gtktextmarkprivate.h    \
347         gtktextsegment.h        \
348         gtktexttagprivate.h     \
349         gtktexttypes.h          \
350         gtktextutil.h           \
351         gtkthemes.h             \
352         gtktoggleactionprivate.h\
353         gtktreedatalist.h       \
354         gtktreeprivate.h        \
355         gtkwindow-decorate.h
356
357 # GTK+ C sources to build the library from
358 gtk_c_sources =                 \
359         fnmatch.c               \
360         gtkaboutdialog.c        \
361         gtkaccelgroup.c         \
362         gtkaccellabel.c         \
363         gtkaccelmap.c           \
364         gtkaccessible.c         \
365         gtkaction.c             \
366         gtkactiongroup.c        \
367         gtkadjustment.c         \
368         gtkalignment.c          \
369         gtkarrow.c              \
370         gtkaspectframe.c        \
371         gtkassistant.c          \
372         gtkbbox.c               \
373         gtkbin.c                \
374         gtkbindings.c           \
375         gtkbox.c                \
376         gtkbutton.c             \
377         gtkcalendar.c           \
378         gtkcelleditable.c       \
379         gtkcelllayout.c         \
380         gtkcellrenderer.c       \
381         gtkcellrendereraccel.c  \
382         gtkcellrenderercombo.c  \
383         gtkcellrendererpixbuf.c \
384         gtkcellrendererprogress.c \
385         gtkcellrendererspin.c   \
386         gtkcellrenderertext.c   \
387         gtkcellrenderertoggle.c \
388         gtkcellview.c           \
389         gtkcheckbutton.c        \
390         gtkcheckmenuitem.c      \
391         gtkclist.c              \
392         gtkcolorbutton.c        \
393         gtkcolorsel.c           \
394         gtkcolorseldialog.c     \
395         gtkcombo.c              \
396         gtkcombobox.c           \
397         gtkcomboboxentry.c      \
398         gtkcontainer.c          \
399         gtkctree.c              \
400         gtkcurve.c              \
401         gtkdialog.c             \
402         gtkdrawingarea.c        \
403         gtkeditable.c           \
404         gtkentry.c              \
405         gtkentrycompletion.c    \
406         gtkeventbox.c           \
407         gtkexpander.c           \
408         gtkfilechooser.c        \
409         gtkfilechooserbutton.c  \
410         gtkfilechooserdefault.c \
411         gtkfilechooserdialog.c  \
412         gtkfilechooserembed.c   \
413         gtkfilechooserentry.c   \
414         gtkfilechooserutils.c   \
415         gtkfilechooserwidget.c  \
416         gtkfilefilter.c         \
417         gtkfilesel.c            \
418         gtkfilesystem.c         \
419         gtkfilesystemmodel.c    \
420         gtkfixed.c              \
421         gtkfontbutton.c         \
422         gtkfontsel.c            \
423         gtkframe.c              \
424         gtkgamma.c              \
425         gtkgc.c                 \
426         gtkhandlebox.c          \
427         gtkhbbox.c              \
428         gtkhbox.c               \
429         gtkhpaned.c             \
430         gtkhruler.c             \
431         gtkhscale.c             \
432         gtkhscrollbar.c         \
433         gtkhseparator.c         \
434         gtkhsv.c                \
435         gtkhsv.h                \
436         gtkiconcache.c          \
437         gtkiconfactory.c        \
438         gtkicontheme.c          \
439         gtkiconview.c           \
440         gtkimage.c              \
441         gtkimagemenuitem.c      \
442         gtkimcontext.c          \
443         gtkimcontextsimple.c    \
444         gtkimmodule.c           \
445         gtkimmulticontext.c     \
446         gtkinputdialog.c        \
447         gtkintl.h               \
448         gtkinvisible.c          \
449         gtkitem.c               \
450         gtkitemfactory.c        \
451         gtkkeyhash.c            \
452         gtkkeyhash.h            \
453         gtklabel.c              \
454         gtklayout.c             \
455         gtklinkbutton.c         \
456         gtklist.c               \
457         gtklistitem.c           \
458         gtkliststore.c          \
459         gtkmain.c               \
460         gtkmarshal.c            \
461         gtkmarshalers.c         \
462         gtkmenu.c               \
463         gtkmenubar.c            \
464         gtkmenuitem.c           \
465         gtkmenushell.c          \
466         gtkmenutoolbutton.c     \
467         gtkmessagedialog.c      \
468         gtkmisc.c               \
469         gtkmnemonichash.c       \
470         gtkmnemonichash.h       \
471         gtkmodules.c            \
472         gtknotebook.c           \
473         gtkobject.c             \
474         gtkoldeditable.c        \
475         gtkoptionmenu.c         \
476         gtkpagesetup.c          \
477         gtkpaned.c              \
478         gtkpapersize.c          \
479         gtkpathbar.c            \
480         gtkpixmap.c             \
481         gtkplug.c               \
482         gtkpreview.c            \
483         gtkprintcontext.c       \
484         gtkprintoperation.c     \
485         gtkprintsettings.c      \
486         gtkprogress.c           \
487         gtkprogressbar.c        \
488         gtkradioaction.c        \
489         gtkradiobutton.c        \
490         gtkradiomenuitem.c      \
491         gtkradiotoolbutton.c    \
492         gtkrange.c              \
493         gtkrbtree.c             \
494         gtkrc.c                 \
495         gtkrecentchooserdefault.c \
496         gtkrecentchooserdialog.c \
497         gtkrecentchoosermenu.c  \
498         gtkrecentchooserwidget.c \
499         gtkrecentchooserutils.c \
500         gtkrecentchooser.c      \
501         gtkrecentfilter.c       \
502         gtkrecentmanager.c      \
503         gtkruler.c              \
504         gtkscale.c              \
505         gtkscrollbar.c          \
506         gtkscrolledwindow.c     \
507         gtkselection.c          \
508         gtkseparator.c          \
509         gtkseparatormenuitem.c  \
510         gtkseparatortoolitem.c  \
511         gtksequence.c           \
512         gtksettings.c           \
513         gtksignal.c             \
514         gtksizegroup.c          \
515         gtksocket.c             \
516         gtkspinbutton.c         \
517         gtkstatusbar.c          \
518         gtkstatusicon.c         \
519         gtkstock.c              \
520         gtkstyle.c              \
521         gtktable.c              \
522         gtktearoffmenuitem.c    \
523         gtktext.c               \
524         gtktextbtree.c          \
525         gtktextbuffer.c         \
526         gtktextbufferrichtext.c \
527         gtktextbufferserialize.c\
528         gtktextbufferserialize.h\
529         gtktextchild.c          \
530         gtktextdisplay.c        \
531         gtktextiter.c           \
532         gtktextiterprivate.h    \
533         gtktextlayout.c         \
534         gtktextmark.c           \
535         gtktextmarkprivate.h    \
536         gtktextsegment.c        \
537         gtktexttag.c            \
538         gtktexttagtable.c       \
539         gtktexttypes.c          \
540         gtktextutil.c           \
541         gtktextview.c           \
542         gtkthemes.c             \
543         gtktipsquery.c          \
544         gtktoggleaction.c       \
545         gtktogglebutton.c       \
546         gtktoggletoolbutton.c   \
547         gtktoolbar.c            \
548         gtktoolbutton.c         \
549         gtktoolitem.c           \
550         gtktooltips.c           \
551         gtktree.c               \
552         gtktreedatalist.c       \
553         gtktreednd.c            \
554         gtktreeitem.c           \
555         gtktreemodel.c          \
556         gtktreemodelfilter.c    \
557         gtktreemodelsort.c      \
558         gtktreeselection.c      \
559         gtktreesortable.c       \
560         gtktreestore.c          \
561         gtktreeview.c           \
562         gtktreeviewcolumn.c     \
563         gtktypebuiltins.c       \
564         gtktypeutils.c          \
565         gtkuimanager.c          \
566         gtkvbbox.c              \
567         gtkvbox.c               \
568         gtkviewport.c           \
569         gtkvpaned.c             \
570         gtkvruler.c             \
571         gtkvscale.c             \
572         gtkvscrollbar.c         \
573         gtkvseparator.c         \
574         gtkwidget.c             \
575         gtkwindow-decorate.c    \
576         gtkwindow.c             \
577         xembed.h                \
578         $(gtk_clipboard_dnd_c_sources)
579
580 if OS_UNIX
581 gtk_private_h_sources += \
582         gtkfilesystemunix.h             \
583         gtkprintbackend.h               \
584         gtkprinter-private.h            \
585         gtkprinteroption.h              \
586         gtkprinteroptionset.h           \
587         gtkprinteroptionwidget.h        \
588         gtkprintjob.h
589
590 gtk_c_sources += \
591         gtkfilesystemunix.c             \
592         gtkpagesetupunixdialog.c        \
593         gtkprinter.c                    \
594         gtkprinteroption.c              \
595         gtkprinteroptionset.c           \
596         gtkprinteroptionwidget.c        \
597         gtkprintjob.c                   \
598         gtkprintoperation-unix.c        \
599         gtkprintunixdialog.c            \
600         gtkprintbackend.c
601 endif
602
603 if OS_WIN32
604 gtk_private_h_sources +=
605         gtkfilesystemwin32.h    \
606         gtkprint-win32.h
607
608 gtk_c_sources += \
609         gtkfilesystemwin32.c            \
610         gtkprint-win32.c                \
611         gtkprintoperation-win32.c
612 endif
613
614 if USE_X11
615 gtk_private_h_sources += gtkxembed.h gtktrayicon.h
616 gtk_c_sources += \
617         gtkplug-x11.c   \
618         gtksocket-x11.c \
619         gtkxembed.c     \
620         gtktrayicon-x11.c
621 else
622 if USE_WIN32
623 gtk_private_h_sources += gtkwin32embed.h
624 gtk_c_sources +=         gtkplug-win32.c gtksocket-win32.c gtkwin32embed.c
625 else
626 gtk_c_sources +=         gtkplug-stub.c gtksocket-stub.c
627 endif
628 endif
629
630 if USE_QUARTZ
631 gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c gtkquartz.h
632 gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
633 else
634 gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
635 gtk_clipboard_dnd_c_sources_CFLAGS = 
636 endif
637
638 # we use our own built_sources variable rules to avoid automake's
639 # BUILT_SOURCES oddities
640 # we generate frequently rebuild files piggyback on a stamp file, so sources
641 # depending on them only get rebuild when the built source actually changed
642 # content
643
644 # built sources that get installed with the header files
645 gtk_built_public_sources =                      \
646         gtkmarshal.h                            \
647         gtktypebuiltins.h
648
649 # built sources that don't get installed
650 gtk_built_private_headers =                     \
651         gtkalias.h                              \
652         gtkmarshalers.h                         \
653         gtkbuiltincache.h
654
655 gtk_built_sources =                             \
656         gtkaliasdef.c                           \
657         gtktypebuiltins.c                       \
658         gtkmarshalers.c                         \
659         gtkmarshalers.h                         \
660         gtkmarshal.c                            \
661         ${gtk_built_private_headers}            \
662         ${gtk_built_public_sources}
663
664 stamp_files =                                   \
665         stamp-gtkmarshalers.h                   \
666         stamp-gtkmarshal.h                      \
667         stamp-gtktypebuiltins.h
668
669 # non-header sources (headers should be specified in the above variables)
670 # that don't serve as direct make target sources, i.e. they don't have
671 # their own .lo rules and don't get publically installed
672 gtk_extra_sources =                             \
673         paper_names.c                           \
674         paper_names_offsts.c                    \
675         gen-paper-names.c                       \
676         gtk.symbols                             \
677         gtkversion.h.in                         \
678         gtkmarshalers.list                      \
679         gtkmarshal.list
680
681 #
682 # setup GTK+ sources and their dependencies
683 #
684 MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files)
685 EXTRA_HEADERS =
686 EXTRA_DIST = $(gtk_private_h_sources) $(gtk_extra_sources)
687 EXTRA_DIST += $(gtk_built_sources)
688 EXTRA_DIST += $(STOCK_ICONS)
689
690 #
691 # rules to generate built sources
692 #
693 # setup autogeneration dependencies
694 gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc
695 CLEANFILES = $(gen_sources)
696
697 BUILT_SOURCES = $(gtk_built_sources)
698
699 # all autogenerated files need to be generated in the srcdir,
700 # so old versions get remade and are not confused with newer
701 # versions in the build dir. thus a development setup requires
702 # srcdir to be writable, passing --disable-rebuilds to
703 # ../configure will supress all autogeneration rules.
704 gtkmarshalers.h: stamp-gtkmarshalers.h
705         @true
706 stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
707         $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
708         && (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
709         && rm -f xgen-gmlh \
710         && echo timestamp > $(@F)       
711 gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
712         (echo "#include \"gtkalias.h\""; $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
713         && cp xgen-gmlc gtkmarshalers.c \
714         && rm -f xgen-gmlc
715
716 gtkmarshal.h: stamp-gtkmarshal.h
717         @true
718 stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list
719         echo "#ifndef GTK_DISABLE_DEPRECATED" > xgen-gmh                                        \
720         && $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --header >> xgen-gmh \
721         && echo "#endif /* GTK_DISABLE_DEPRECATED */" >> xgen-gmh \
722         && (cmp -s xgen-gmh gtkmarshal.h || cp xgen-gmh gtkmarshal.h) \
723         && rm -f xgen-gmh \
724         && echo timestamp > $(@F)
725 gtkmarshal.c: @REBUILD@ gtkmarshal.list
726         (echo "#include \"gtkalias.h\""; $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --body) >> xgen-gmc \
727         && cp xgen-gmc gtkmarshal.c \
728         && rm -f xgen-gmc 
729
730 gtktypebuiltins.h: stamp-gtktypebuiltins.h
731         @true
732 stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) Makefile
733         ( cd $(srcdir) && $(GLIB_MKENUMS) \
734                         --fhead "#ifndef __GTK_TYPE_BUILTINS_H__\n#define __GTK_TYPE_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
735                         --fprod "/* enumerations from \"@filename@\" */\n" \
736                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
737                         --ftail "G_END_DECLS\n\n#endif /* __GTK_TYPE_BUILTINS_H__ */" \
738                 $(gtk_public_h_sources) ) >> xgen-gtbh \
739         && (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
740         && rm -f xgen-gtbh \
741         && echo timestamp > $(@F)
742 gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) Makefile
743         ( cd $(srcdir) && $(GLIB_MKENUMS) \
744                         --fhead "#undef GTK_DISABLE_DEPRECATED\n#define GTK_ENABLE_BROKEN\n#include \"gtk.h\"\n#include \"gtkprivate.h\"\n#include \"gtkalias.h\"\n" \
745                         --ftail "#define __GTK_TYPE_BUILTINS_C__\n#include \"gtkaliasdef.c\"\n" \
746                         --fprod "\n/* enumerations from \"@filename@\" */" \
747                         --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[] = {" \
748                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
749                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
750                 $(gtk_public_h_sources) ) > xgen-gtbc \
751         && cp xgen-gtbc gtktypebuiltins.c  \
752         && rm -f xgen-gtbc
753
754 # target platform:
755 lib_LTLIBRARIES = $(gtktargetlib)
756
757 gtkincludedir = $(includedir)/gtk-2.0/gtk
758 gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
759
760 gtkunixprintincludedir = $(includedir)/gtk-unix-print-2.0/gtk
761 gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)
762
763 libgtk_x11_2_0_la_SOURCES = $(gtk_c_sources)
764 libgtk_linux_fb_2_0_la_SOURCES = $(gtk_c_sources)
765 libgtk_win32_2_0_la_SOURCES = $(gtk_c_sources)
766 libgtk_quartz_2_0_la_SOURCES = $(gtk_c_sources)
767 libgtk_directfb_2_0_la_SOURCES = $(gtk_c_sources)
768
769 libgtk_x11_2_0_la_LDFLAGS = $(libtool_opts)
770 libgtk_linux_fb_2_0_la_LDFLAGS = $(libtool_opts)
771 libgtk_win32_2_0_la_LDFLAGS = $(libtool_opts)
772 libgtk_quartz_2_0_la_LDFLAGS = $(libtool_opts)
773 libgtk_directfb_2_0_la_LDFLAGS = $(libtool_opts)
774
775 libgtk_x11_2_0_la_LIBADD = $(libadd)
776 libgtk_linux_fb_2_0_la_LIBADD = $(libadd)
777 libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool
778 libgtk_win32_2_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res)
779 libgtk_quartz_2_0_la_LIBADD = $(libadd)
780 libgtk_directfb_2_0_la_LIBADD = $(libadd)
781
782 if USE_WIN32
783 libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
784 endif
785 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
786
787 install-exec-hook: 
788 if DISABLE_EXPLICIT_DEPS
789         $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$(gtktargetlib)
790 endif
791
792 # Install a RC file for the default GTK+ theme, and key themes
793 install-data-local: install-ms-lib install-def-file
794         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0
795         $(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
796         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key
797         $(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
798         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key
799         $(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
800
801 uninstall-local: uninstall-ms-lib uninstall-def-file
802         rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0/gtkrc
803         rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0-key/gtkrc
804         rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-2.0-key/gtkrc
805
806 # if srcdir!=builddir, clean out maintainer-clean files from builddir
807 # this allows dist to pass.
808 distclean-local:
809         if test $(srcdir) != .; then \
810           rm -f $(MAINTAINERCLEANFILES); \
811         fi
812
813 DEPS = $(gtktargetlib) $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(top_builddir)/gdk/$(gdktargetlib)
814
815 TEST_DEPS = $(DEPS) gtk.immodules
816
817 LDADDS =                                                                \
818         $(gtktargetlib)                                                 \
819         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
820         $(top_builddir)/gdk/$(gdktargetlib)
821
822 #
823 # Installed tools
824 #
825 bin_PROGRAMS = gtk-query-immodules-2.0 gtk-update-icon-cache
826
827 gtk_query_immodules_2_0_DEPENDENCIES = $(DEPS)
828 gtk_query_immodules_2_0_LDADD = $(LDADDS)
829
830 gtk_query_immodules_2_0_SOURCES = queryimmodules.c
831
832 gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
833
834 gtk_update_icon_cache_SOURCES = updateiconcache.c
835
836 .PHONY: files test test-debug
837
838 files:
839         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
840           echo $$p; \
841         done
842
843 STOCK_ICONS = \
844         stock-icons/16/gtk-about.png                    \
845         stock-icons/16/gtk-add.png                      \
846         stock-icons/16/gtk-cdrom.png                    \
847         stock-icons/16/gtk-connect.png                  \
848         stock-icons/16/gtk-convert.png                  \
849         stock-icons/16/gtk-copy.png                     \
850         stock-icons/16/gtk-cut.png                      \
851         stock-icons/16/gtk-delete.png                   \
852         stock-icons/16/gtk-directory.png                \
853         stock-icons/16/gtk-disconnect.png               \
854         stock-icons/16/gtk-edit.png                     \
855         stock-icons/16/gtk-execute.png                  \
856         stock-icons/16/gtk-file.png                     \
857         stock-icons/16/gtk-find-and-replace.png         \
858         stock-icons/16/gtk-find.png                     \
859         stock-icons/16/gtk-floppy.png                   \
860         stock-icons/16/gtk-fullscreen.png               \
861         stock-icons/16/gtk-go-back-ltr.png              \
862         stock-icons/16/gtk-go-down.png                  \
863         stock-icons/16/gtk-go-forward-ltr.png           \
864         stock-icons/16/gtk-goto-bottom.png              \
865         stock-icons/16/gtk-goto-first-ltr.png           \
866         stock-icons/16/gtk-goto-last-ltr.png            \
867         stock-icons/16/gtk-goto-top.png                 \
868         stock-icons/16/gtk-go-up.png                    \
869         stock-icons/16/gtk-harddisk.png                 \
870         stock-icons/16/gtk-help.png                     \
871         stock-icons/16/gtk-home.png                     \
872         stock-icons/16/gtk-indent-ltr.png               \
873         stock-icons/16/gtk-indent-rtl.png               \
874         stock-icons/16/gtk-index.png                    \
875         stock-icons/16/gtk-info.png                     \
876         stock-icons/16/gtk-jump-to-ltr.png              \
877         stock-icons/16/gtk-jump-to-rtl.png              \
878         stock-icons/16/gtk-justify-center.png           \
879         stock-icons/16/gtk-justify-fill.png             \
880         stock-icons/16/gtk-justify-left.png             \
881         stock-icons/16/gtk-justify-right.png            \
882         stock-icons/16/gtk-leave-fullscreen.png         \
883         stock-icons/16/gtk-media-forward-ltr.png        \
884         stock-icons/16/gtk-media-next-ltr.png           \
885         stock-icons/16/gtk-media-pause.png              \
886         stock-icons/16/gtk-media-play-ltr.png           \
887         stock-icons/16/gtk-media-play-rtl.png           \
888         stock-icons/16/gtk-media-previous-ltr.png       \
889         stock-icons/16/gtk-media-record.png             \
890         stock-icons/16/gtk-media-rewind-ltr.png         \
891         stock-icons/16/gtk-media-stop.png               \
892         stock-icons/16/gtk-missing-image.png            \
893         stock-icons/16/gtk-network.png                  \
894         stock-icons/16/gtk-new.png                      \
895         stock-icons/16/gtk-open.png                     \
896         stock-icons/16/gtk-paste.png                    \
897         stock-icons/16/gtk-preferences.png              \
898         stock-icons/16/gtk-print.png                    \
899         stock-icons/16/gtk-print-preview.png            \
900         stock-icons/16/gtk-properties.png               \
901         stock-icons/16/gtk-quit.png                     \
902         stock-icons/16/gtk-redo-ltr.png                 \
903         stock-icons/16/gtk-redo-rtl.png                 \
904         stock-icons/16/gtk-refresh.png                  \
905         stock-icons/16/gtk-remove.png                   \
906         stock-icons/16/gtk-revert-to-saved-ltr.png      \
907         stock-icons/16/gtk-revert-to-saved-rtl.png      \
908         stock-icons/16/gtk-save-as.png                  \
909         stock-icons/16/gtk-select-all.png               \
910         stock-icons/16/gtk-select-font.png              \
911         stock-icons/16/gtk-sort-ascending.png           \
912         stock-icons/16/gtk-sort-descending.png          \
913         stock-icons/16/gtk-spell-check.png              \
914         stock-icons/16/gtk-stop.png                     \
915         stock-icons/16/gtk-strikethrough.png            \
916         stock-icons/16/gtk-font.png                     \
917         stock-icons/16/gtk-undelete-ltr.png             \
918         stock-icons/16/gtk-undelete-rtl.png             \
919         stock-icons/16/gtk-underline.png                \
920         stock-icons/16/gtk-undo-ltr.png                 \
921         stock-icons/16/gtk-undo-rtl.png                 \
922         stock-icons/16/gtk-unindent-ltr.png             \
923         stock-icons/16/gtk-unindent-rtl.png             \
924         stock-icons/16/gtk-zoom-100.png                 \
925         stock-icons/16/gtk-zoom-fit.png                 \
926         stock-icons/16/gtk-zoom-in.png                  \
927         stock-icons/16/gtk-zoom-out.png                 \
928         stock-icons/16/gtk-italic.png                   \
929         stock-icons/16/gtk-bold.png                     \
930         stock-icons/20/gtk-apply.png                    \
931         stock-icons/20/gtk-cancel.png                   \
932         stock-icons/20/gtk-close.png                    \
933         stock-icons/20/gtk-no.png                       \
934         stock-icons/20/gtk-ok.png                       \
935         stock-icons/20/gtk-yes.png                      \
936         stock-icons/24/gtk-about.png                    \
937         stock-icons/24/gtk-add.png                      \
938         stock-icons/24/gtk-bold.png                     \
939         stock-icons/24/gtk-cdrom.png                    \
940         stock-icons/24/gtk-clear.png                    \
941         stock-icons/24/gtk-close.png                    \
942         stock-icons/24/gtk-color-picker.png             \
943         stock-icons/24/gtk-connect.png                  \
944         stock-icons/24/gtk-convert.png                  \
945         stock-icons/24/gtk-copy.png                     \
946         stock-icons/24/gtk-cut.png                      \
947         stock-icons/24/gtk-directory.png                \
948         stock-icons/24/gtk-disconnect.png               \
949         stock-icons/24/gtk-edit.png                     \
950         stock-icons/24/gtk-execute.png                  \
951         stock-icons/24/gtk-file.png                     \
952         stock-icons/24/gtk-find-and-replace.png         \
953         stock-icons/24/gtk-find.png                     \
954         stock-icons/24/gtk-font.png                     \
955         stock-icons/24/gtk-fullscreen.png               \
956         stock-icons/24/gtk-go-back-ltr.png              \
957         stock-icons/24/gtk-goto-top.png                 \
958         stock-icons/24/gtk-go-down.png                  \
959         stock-icons/24/gtk-goto-bottom.png              \
960         stock-icons/24/gtk-goto-first-ltr.png           \
961         stock-icons/24/gtk-goto-last-ltr.png            \
962         stock-icons/24/gtk-go-up.png                    \
963         stock-icons/24/gtk-harddisk.png                 \
964         stock-icons/24/gtk-help.png                     \
965         stock-icons/24/gtk-home.png                     \
966         stock-icons/24/gtk-indent-ltr.png               \
967         stock-icons/24/gtk-indent-rtl.png               \
968         stock-icons/24/gtk-index.png                    \
969         stock-icons/24/gtk-info.png                     \
970         stock-icons/24/gtk-italic.png                   \
971         stock-icons/24/gtk-jump-to-ltr.png              \
972         stock-icons/24/gtk-jump-to-rtl.png              \
973         stock-icons/24/gtk-justify-center.png           \
974         stock-icons/24/gtk-justify-fill.png             \
975         stock-icons/24/gtk-justify-left.png             \
976         stock-icons/24/gtk-justify-right.png            \
977         stock-icons/24/gtk-leave-fullscreen.png         \
978         stock-icons/24/gtk-media-forward-ltr.png        \
979         stock-icons/24/gtk-media-next-ltr.png           \
980         stock-icons/24/gtk-media-pause.png              \
981         stock-icons/24/gtk-media-play-ltr.png           \
982         stock-icons/24/gtk-media-play-rtl.png           \
983         stock-icons/24/gtk-media-previous-ltr.png       \
984         stock-icons/24/gtk-media-record.png             \
985         stock-icons/24/gtk-media-rewind-ltr.png         \
986         stock-icons/24/gtk-media-stop.png               \
987         stock-icons/24/gtk-missing-image.png            \
988         stock-icons/24/gtk-network.png                  \
989         stock-icons/24/gtk-new.png                      \
990         stock-icons/24/gtk-open.png                     \
991         stock-icons/24/gtk-orientation-reverse-landscape.png \
992         stock-icons/24/gtk-orientation-landscape.png    \
993         stock-icons/24/gtk-orientation-portrait.png     \
994         stock-icons/24/gtk-paste.png                    \
995         stock-icons/24/gtk-preferences.png              \
996         stock-icons/24/gtk-print.png                    \
997         stock-icons/24/gtk-print-preview.png            \
998         stock-icons/24/gtk-properties.png               \
999         stock-icons/24/gtk-quit.png                     \
1000         stock-icons/24/gtk-redo-ltr.png                 \
1001         stock-icons/24/gtk-redo-rtl.png                 \
1002         stock-icons/24/gtk-refresh.png                  \
1003         stock-icons/24/gtk-remove.png                   \
1004         stock-icons/24/gtk-revert-to-saved-ltr.png      \
1005         stock-icons/24/gtk-revert-to-saved-rtl.png      \
1006         stock-icons/24/gtk-select-font.png              \
1007         stock-icons/24/gtk-save-as.png                  \
1008         stock-icons/24/gtk-floppy.png                   \
1009         stock-icons/24/gtk-select-all.png               \
1010         stock-icons/24/gtk-select-color.png             \
1011         stock-icons/24/gtk-sort-ascending.png           \
1012         stock-icons/24/gtk-sort-descending.png          \
1013         stock-icons/24/gtk-spell-check.png              \
1014         stock-icons/24/gtk-stop.png                     \
1015         stock-icons/24/gtk-strikethrough.png            \
1016         stock-icons/24/gtk-delete.png                   \
1017         stock-icons/24/gtk-undelete-ltr.png             \
1018         stock-icons/24/gtk-undelete-rtl.png             \
1019         stock-icons/24/gtk-underline.png                \
1020         stock-icons/24/gtk-undo-ltr.png                 \
1021         stock-icons/24/gtk-undo-rtl.png                 \
1022         stock-icons/24/gtk-unindent-ltr.png             \
1023         stock-icons/24/gtk-unindent-rtl.png             \
1024         stock-icons/24/gtk-zoom-100.png                 \
1025         stock-icons/24/gtk-zoom-fit.png                 \
1026         stock-icons/24/gtk-zoom-in.png                  \
1027         stock-icons/24/gtk-zoom-out.png                 \
1028         stock-icons/24/gtk-go-forward-ltr.png           \
1029         stock-icons/32/gtk-dnd-multiple.png             \
1030         stock-icons/32/gtk-dnd.png                      \
1031         stock-icons/48/gtk-dialog-authentication.png    \
1032         stock-icons/48/gtk-dialog-error.png             \
1033         stock-icons/48/gtk-dialog-info.png              \
1034         stock-icons/48/gtk-dialog-question.png          \
1035         stock-icons/48/gtk-dialog-warning.png
1036
1037 GENERATED_ICONS = \
1038         stock-icons/16/gtk-go-back-rtl.png              \
1039         stock-icons/16/gtk-go-forward-rtl.png           \
1040         stock-icons/16/gtk-goto-first-rtl.png           \
1041         stock-icons/16/gtk-goto-last-rtl.png            \
1042         stock-icons/16/gtk-media-forward-rtl.png        \
1043         stock-icons/16/gtk-media-next-rtl.png           \
1044         stock-icons/16/gtk-media-previous-rtl.png       \
1045         stock-icons/16/gtk-media-rewind-rtl.png         \
1046         stock-icons/16/gtk-save.png                     \
1047         stock-icons/24/gtk-go-back-rtl.png              \
1048         stock-icons/24/gtk-go-forward-rtl.png           \
1049         stock-icons/24/gtk-goto-first-rtl.png           \
1050         stock-icons/24/gtk-goto-last-rtl.png            \
1051         stock-icons/24/gtk-media-forward-rtl.png        \
1052         stock-icons/24/gtk-media-next-rtl.png           \
1053         stock-icons/24/gtk-media-previous-rtl.png       \
1054         stock-icons/24/gtk-media-rewind-rtl.png         \
1055         stock-icons/24/gtk-save.png
1056
1057 stamp-icons: $(STOCK_ICONS)
1058         for i in 16 24; do                                                      \
1059            (cd $(srcdir)/stock-icons/$$i                                        \
1060            && rm -f gtk-go-back-rtl.png                                         \
1061            && $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png                \
1062            && rm -f gtk-go-forward-rtl.png                                      \
1063            && $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png                \
1064            && rm -f gtk-goto-first-rtl.png                                      \
1065            && $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png              \
1066            && rm -f gtk-goto-last-rtl.png                                       \
1067            && $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png              \
1068            && rm -f gtk-media-forward-rtl.png                                   \
1069            && $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png        \
1070            && rm -f gtk-media-next-rtl.png                                      \
1071            && $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png         \
1072            && rm -f gtk-media-previous-rtl.png                                  \
1073            && $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png         \
1074            && rm -f gtk-media-rewind-rtl.png                                    \
1075            && $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png        \
1076            && rm -f gtk-save.png                                                \
1077            && $(LN_S) gtk-floppy.png gtk-save.png)                              \
1078         done                                                                    \
1079         && touch stamp-icons
1080
1081 gtkbuiltincache.h: @REBUILD@ gtk-update-icon-cache$(EXEEXT) stamp-icons
1082         ./gtk-update-icon-cache --force --ignore-theme-index    \
1083            --source builtin_icons $(srcdir)/stock-icons > gtkbuiltincache.h
1084
1085 MAINTAINERCLEANFILES += stamp-icons
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: