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