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