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