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