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