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