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