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