]> Pileus Git - ~andy/gtk/blob - demos/Makefile.am
81e07f427a5fcdeb28cac7ffe140f6684805877c
[~andy/gtk] / demos / Makefile.am
1 ## Makefile.am for gtk+/demos
2 include $(top_srcdir)/Makefile.decl
3
4 SUBDIRS = gtk-demo
5
6 INCLUDES =                              \
7         -I$(top_srcdir)                 \
8         -I$(top_builddir)/gdk           \
9         -DGDK_DISABLE_DEPRECATED        \
10         -DGTK_DISABLE_DEPRECATED        \
11         $(GTK_DEBUG_FLAGS)              \
12         $(GTK_DEP_CFLAGS)
13
14 DEPS =                                                                  \
15         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
16         $(top_builddir)/gdk/$(gdktargetlib)                             \
17         $(top_builddir)/gtk/$(gtktargetlib)
18
19 LDADDS =                                                                \
20         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
21         $(top_builddir)/gdk/$(gdktargetlib)                             \
22         $(top_builddir)/gtk/$(gtktargetlib)
23
24 noinst_PROGRAMS =               \
25         testpixbuf-drawable     \
26         testanimation           \
27         testpixbuf-color        \
28         testpixbuf-save         \
29         testpixbuf-scale        \
30         pixbuf-demo
31
32 # Need to build test-inline-pixbufs.h for testpixbuf
33 if HAVE_PNG
34 noinst_PROGRAMS += testpixbuf
35 BUILT_SOURCES = test-inline-pixbufs.h
36 endif
37
38 if CROSS_COMPILING
39 pixbuf_csource=$(GDK_PIXBUF_CSOURCE)
40 pixbuf_csource_deps=
41 else
42 pixbuf_csource=GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders $(top_builddir)/gdk-pixbuf/gdk-pixbuf-csource
43 pixbuf_csource_deps=$(top_builddir)/gdk-pixbuf/gdk-pixbuf-csource $(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders 
44 endif
45
46 test-inline-pixbufs.h: $(pixbuf_csource_deps) apple-red.png gnome-foot.png
47         $(pixbuf_csource) --raw --build-list            \
48                 apple_red  $(srcdir)/apple-red.png      \
49                 gnome_foot $(srcdir)/gnome-foot.png     \
50         > test-inline-pixbufs.h                         \
51         || (rm -f test-inline-pixbufs.h && false)
52
53 testpixbuf_DEPENDENCIES = $(DEPS)
54 testpixbuf_drawable_DEPENDENCIES = $(DEPS)
55 testpixbuf_save_DEPENDENCIES = $(DEPS)
56 testpixbuf_color_DEPENDENCIES = $(DEPS)
57 testpixbuf_scale_DEPENDENCIES = $(DEPS)
58 testanimation_DEPENDENCIES = $(DEPS)
59 pixbuf_demo_DEPENDENCIES = $(DEPS)
60
61 testpixbuf_LDADD = $(LDADDS)
62 testpixbuf_drawable_LDADD = $(LDADDS)
63 testpixbuf_save_LDADD = $(LDADDS)
64 testpixbuf_color_LDADD = $(LDADDS)
65 testpixbuf_scale_LDADD = $(LDADDS)
66 testanimation_LDADD = $(LDADDS)
67 pixbuf_demo_LDADD = $(LDADDS)
68
69 testpixbuf_SOURCES = testpixbuf.c pixbuf-init.c
70 testpixbuf_drawable_SOURCES = testpixbuf-drawable.c pixbuf-init.c
71 testpixbuf_save_SOURCES = testpixbuf-save.c
72 testpixbuf_color_SOURCES = testpixbuf-color.c
73 testpixbuf_scale_SOURCES = testpixbuf-scale.c pixbuf-init.c
74 testanimation_SOURCES = testanimation.c pixbuf-init.c
75 pixbuf_demo_SOURCES = pixbuf-demo.c pixbuf-init.c
76
77 EXTRA_DIST +=                   \
78         apple-red.png           \
79         background.jpg          \
80         gnome-applets.png       \
81         gnome-calendar.png      \
82         gnome-foot.png          \
83         gnome-gimp.png          \
84         gnome-gmush.png         \
85         gnome-gsame.png         \
86         gnu-keys.png
87
88 DISTCLEANFILES = test-inline-pixbufs.h
89
90 -include $(top_srcdir)/git.mk